Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Engine updates after adding node: send import first, then the new node #1332

Merged
merged 9 commits into from
Mar 23, 2021

Conversation

s9ferech
Copy link
Contributor

@s9ferech s9ferech commented Mar 16, 2021

Pull Request Description

This solves issue #1326. When the user creates a node through the searcher that needs additional imports, those imports should be added before or simultaneously to the node content to avoid an invalid intermediate state. This was done in the wrong order before this commit.

Important Notes

Checklist

Please include the following checklist in your PR:

  • The CHANGELOG.md was updated with the changes introduced in this PR.
  • The documentation has been updated if necessary.
  • All code conforms to the Rust style guide.
  • All code has automatic tests where possible.
  • All code has been profiled where possible.
  • All code has been manually tested in the IDE.
  • All code has been manually tested in the "debug/interface" scene.
  • All code has been manually tested by the PR owner against our test scenarios.
  • All code has been manually tested by at least one reviewer against our test scenarios.

When the user creates a node through the searcher that needs additional imports, those imports should be added before or simultaneously to the node content to avoid an invalid intermediate state. This was done in the wrong order before this commit.
@s9ferech s9ferech self-assigned this Mar 16, 2021
@s9ferech s9ferech added Category: Controllers The Application layer not bound to visual part Priority: High Should be scheduled as soon as possible Type: Bug A bug in Enso IDE labels Mar 16, 2021
@s9ferech s9ferech marked this pull request as ready for review March 17, 2021 07:15
@s9ferech s9ferech requested a review from wdanilo as a code owner March 17, 2021 13:11
CHANGELOG.md Outdated
Comment on lines 40 to 43
- [Inform the engine about new imports before they are used][#1332]. When the
user adds or changes a node through the searcher, the necessary imports are
added first, the node content afterwards. This avoids an invalid intermediate
state.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog should be more user-facing: most users do not know what is the Engine. Probably it should be like "Fix flashing import error after adding a node".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not even know what the exact problem for the user was. Could you write the changelog then?

@farmaazon farmaazon self-requested a review March 19, 2021 08:21
@s9ferech s9ferech merged commit da6d66f into develop Mar 23, 2021
@s9ferech s9ferech deleted the wip/fr/import-first branch March 23, 2021 16:38
mwu-tow pushed a commit to enso-org/enso that referenced this pull request Oct 30, 2021
enso-org/ide#1332)

When the user creates a node through the searcher that needs additional imports, those imports should be added before or simultaneously to the node content to avoid an invalid intermediate state. This was done in the wrong order before this commit.

Original commit: enso-org/ide@da6d66f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Controllers The Application layer not bound to visual part Priority: High Should be scheduled as soon as possible Type: Bug A bug in Enso IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants