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

Delayed Visualization Attaching #1825

Merged
merged 11 commits into from
Sep 23, 2021

Conversation

mwu-tow
Copy link
Contributor

@mwu-tow mwu-tow commented Aug 31, 2021

Pull Request Description

This PR:

  • adds notion of readiness to execution context and executed graph
  • delays attaching visualization until graph is ready;
  • refactors portion on visualization handling logic into a separate module.

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.

src/rust/ide/src/ide/integration/visualization.rs Outdated Show resolved Hide resolved
Comment on lines +115 to +126
pub fn handle_notification
(&self, notification: Notification) -> FallibleResult {
match notification {
Notification::Completed => {
if !self.model.is_ready.replace(true) {
WARNING!("Context {self.id} Became ready");
}
}
Notification::ExpressionUpdates(updates) => {
self.model.computed_value_info_registry.apply_updates(updates);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

If it is the ExecutionContext which both defines and handles the notification, why we cannot just create functions "handle_expression_updates" and "mark_as_ready"?

src/rust/ide/src/model/project.rs Outdated Show resolved Hide resolved
src/rust/ide/src/model/project.rs Outdated Show resolved Hide resolved
src/rust/ide/src/model/project/synchronized.rs Outdated Show resolved Hide resolved
@mwu-tow mwu-tow requested a review from wdanilo as a code owner August 31, 2021 14:06
CHANGELOG.md Outdated Show resolved Hide resolved
@MichaelMauderer MichaelMauderer merged commit 3985f1e into develop Sep 23, 2021
mwu-tow added a commit to enso-org/enso that referenced this pull request Oct 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants