-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Incomplete node data in the backend #7864
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
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 PR fixes an issue where node data was incomplete in the backend by ensuring that the correct source objects are used when calculating and applying diffs across studies and workbenches.
- Refactored __getStudyDiffs to use a consolidated object (studyDiffs) for both the source study and its diffs.
- Updated patchWorkbenchDelayed to accept and use workbenchSource for node data.
- Renamed parameters in patchStudyDelayed for consistency, passing studySource to the workbench patch.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js | Refactored the diff generation to return a unified studyDiffs object. |
| services/static-webserver/client/source/class/osparc/data/model/Workbench.js | Updated patchWorkbenchDelayed to use workbenchSource instead of node.serialize(). |
| services/static-webserver/client/source/class/osparc/data/model/Study.js | Renamed parameter and updated calls to use studySource consistently. |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js:861
- [nitpick] Consider computing the diff value before constructing the studyDiffs object so that you can build and return the object in a single step, reducing the re-assignment of properties.
const studyDiffs = { sourceStudy, delta: {} }
services/static-webserver/client/source/class/osparc/data/model/Study.js:699
- Verify that the renaming from sourceStudy to studySource is consistently applied in both the function signature and the documentation to prevent any confusion.
/* updated doc comment with studySource */
services/static-webserver/client/source/class/osparc/data/model/Workbench.js
Show resolved
Hide resolved
|
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 8d96382 |
sanderegg
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.
thanks!



What do these changes do?
reported by @sanderegg , thanks!
Similar issue as in #7828, but this time in the node level
Related issue/s
How to test
Dev-ops