-
Notifications
You must be signed in to change notification settings - Fork 979
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
Polish Workflow Refactoring API #11005
Comments
Do you think it'd be possible to also extend this to check for invalid references ? E.g referring to |
Tracked that on #10989 - seems like a really good idea. I think the client has everything that would be needed - I think recovering the logic for how we reference nested inputs on the client would be the hardest part? |
What about a |
UpgradeWorkflow seems like a solid idea to me! I don't know if I'll have time to work on it in Q1 but it is a good thing to keep in mind. I think the hardest part would simply be fixing up the tool upgrade action to the point that we would want to expose it to users. The subworkflow upgrade logic for dropping connections and workflow outputs would need to be refactored to be reused when apply the upgrade tool action. After that was working, I think it would simply be a matter of looping over the workflow and executing these steps when needed. |
Maybe I could work on this?
Can you elaborate? I guess you are referring to this comment here:
|
Yeah - that comment. There is a bunch of code in the prior method that works on subworkflow modules that can be refactored and reused for tools. |
Post merge of #10988 which introduced this API.
{action: 'upgrade_subworkflow', step <StepReference>}
Implement edit & upgrade subworkflow buttons in workflow editor. #11032{action: 'upgrade_tool', step <StepReference>}
Implement edit & upgrade subworkflow buttons in workflow editor. #11032{action: 'fill_step_defaults', step: <StepReference>}
Implement edit & upgrade subworkflow buttons in workflow editor. #11032{action: 'fill_defaults'}
Implement edit & upgrade subworkflow buttons in workflow editor. #11032{action: 'update_output_label'}
Implement edit & upgrade subworkflow buttons in workflow editor. #11032 (not important, but helped with testing){action: 'restore_workflow_version'}
dry_run=true
, capture the messages and do some extra checking that could predict database problems (specifically, I'm sure we could catch label problems at this step and we probably don't.)) Implement edit & upgrade subworkflow buttons in workflow editor. #11032dry_run=true
should return the effective new state, so the UI can do stuff likeupgrade_subworkflow
orrestore_workflow_version
, render the results and display the messages but still require a "Save" before the new version is committed. Implement edit & upgrade subworkflow buttons in workflow editor. #11032hasChanges
tracking inIndex.vue
to track structured list of changes, use the refactoring API when possible.Workflow
object (something like editing the tags might be fine with the old API). (This would essentially implement Diff-based Workflow Updates #9166).The text was updated successfully, but these errors were encountered: