-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Fix: show support id when pipeline fails to start #7874
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
🐛 [Frontend] Fix: show support id when pipeline fails to start #7874
Conversation
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.
Pull Request Overview
This pull request refines the error logging behavior on the frontend when starting a pipeline fails, ensuring that a support ID is displayed to aid in debugging. Key updates include:
- Unifying error logging in StudyEditor.js by replacing conditional branches with a single logError call.
- Refactoring FlashMessenger.js to improve clarity by extracting the current study before assembling clipboard data.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js | Replaces conditional logging for error status "402" with a unified error logging approach using logError. |
| services/static-webserver/client/source/class/osparc/FlashMessenger.js | Introduces a local currentStudy variable to retrieve study UUID, making the clipboard data assembly more explicit. |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js:622
- The change to unified error logging simplifies the logic, but please verify that removing the explicit handling for error status '402' does not affect any specialized behavior expected for payment-related errors.
osparc.FlashMessenger.logError(err);
services/static-webserver/client/source/class/osparc/FlashMessenger.js:115
- [nitpick] The refactoring to use the currentStudy variable improves clarity; however, please confirm that using currentStudy.getUuid() uniformly returns the correct and expected UUID format across all usage scenarios.
studyId: currentStudy ? currentStudy.getUuid() : "",
|
pcrespov
left a comment
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.
nice! Thx



What do these changes do?
Related issue/s
supportIDmust always be shown in the error dialog #7762How to test
Dev-ops