-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display component evaluating status #12126
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🧪 Storybook is successfully deployed!📊 Dashboard:
|
farmaazon
reviewed
Jan 24, 2025
Comment on lines
85
to
88
const evaluating = computed(() => { | ||
const status = graphDb.getExpressionInfo(toValue(externalId))?.payload.type | ||
return status === 'Pending' || status === undefined | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Task specs states, that we should display node as "evaluating" only when payload.progress > 0
.
Engine does not send us progress (yet), but we may test it in integration tests (we already have mockExpressionUpdate
)
farmaazon
approved these changes
Jan 27, 2025
TimedDemo.webm |
mergify bot
pushed a commit
that referenced
this pull request
Feb 27, 2025
Defines _Progress API_ - a way to start long running actions and report their progress: ```ruby type Progress advance self amount:Standard.Base.Data.Numbers.Integer= -> Standard.Base.Logging.Progress log self detail:Standard.Base.Data.Text.Text -> Standard.Base.Logging.Progress run label:Standard.Base.Data.Text.Text up_to:Standard.Base.Data.Numbers.Integer action:Standard.Base.Any.Any -> Standard.Base.Any.Any ``` The reported information is then collected in language server and delivered to the IDE to display the progress via #12126 & co. # Important Notes The _"Enso facing API"_ consists of `type Progress` with its static method to execute a _progress reporting_ operations. The operation is a function that gets `Progress` instance as a callback and can use its methods to report the `advance` as well as `log` details of the actual operation in progress. This is all very similar to _logging_: - hence the `Progress` type is placed into logging - logging is used to report the operation progress - `LoggedMessage.observe` is used to collect the messages in the language server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Components being evaluated show loading animation in icon position.
Gravacao.do.ecra.2025-01-23.as.14.07.19.mov
(Video demonstrates UI, but progress updates triggering this state are not sent by backend yet.)
Fixes #7577.
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.