-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(ui): Resubmit workflows with parameters. Fixes #4662 #11083
feat(ui): Resubmit workflows with parameters. Fixes #4662 #11083
Conversation
9b26bd8
to
57ca2ca
Compare
cea0c80
to
2177c0a
Compare
2177c0a
to
652362c
Compare
Flaky tests are failing, but I'd like to get community feedback before making these successes. |
I am working on #11121 so this should be implemented in workflows detail/list page once that's merged. |
Fair enough! |
#11121 has been merged |
return p.value; | ||
} | ||
} | ||
|
||
private submit() { | ||
this.setState({isSubmitting: true}); | ||
services.workflows | ||
.submit(this.props.kind, this.props.name, this.props.namespace, { |
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.
We can use an endpoint for Archived workflows here, but I think not necessary.
}; | ||
|
||
services.workflows | ||
.resubmit(this.props.workflow.metadata.name, this.props.workflow.metadata.namespace, opts) |
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.
Could you check if this works for archived workflow as well?
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.
This works basically (please see PR description), but I noticed an edge case where this logic will not work because there is more than one workflow that has the same name and namespace.
Could you comment on this issue #11371?
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.
This one looks good. We can discuss remaining issue separately.
Signed-off-by: [email protected] [email protected]
Fixes #4662
Motivation
Modifications
Verification
To check regression
manifest
Submit workflows
Submit workflows from workflow templates select entrypoint
Check to resubmit workflow
manifest
Resubmit to success
Resubmit to fail
Resubmit to success with memoized
Resubmit archived workflow
Pending
status means workflow is deleted by GC)