-
Notifications
You must be signed in to change notification settings - Fork 113
fix: Correctly format workflow JSON when downloading from hub #3751
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
fix: Correctly format workflow JSON when downloading from hub #3751
Conversation
|
@mengw15 Please review it. After that, ask @aglinxinyuan to review it. |
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.
maybe upload a screenshot of the frontend page might make the pr clearer (letting people know which export has issue)
mengw15
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.
left one comment
core/gui/src/app/dashboard/service/user/download/download.service.ts
Outdated
Show resolved
Hide resolved
mengw15
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.
LGTM
aglinxinyuan
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.
LGTM!
Description
Fixes the incorrect JSON structure and formatting when downloading workflows from the hub's workflow list. Previously, the downloaded JSON had operators and other workflow properties incorrectly nested inside a
contentobject, which prevented the workflow from being re-uploaded and loaded properly. Workflow metadata was also removed from the download to keep the JSON consistent with workflow downloads using the "export workflow" button within an individual workflow canvas.Incorrect JSON Download Button:
Changes:
Edited the
downloadWorkflowfunction indownload.service.tsto correctly format the JSON file and bring workflow properties nested inside the content object up a level, as well as remove metadata from the download.Issues
Closes #3750