-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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(ui): add query string to workflow detail page. Fixes #11371 #11373
Conversation
1687b69
to
f01053e
Compare
@@ -352,6 +354,10 @@ export const WorkflowDetails = ({history, location, match}: RouteComponentProps< | |||
); | |||
}; | |||
useEffect(() => { | |||
// If a workflow is archived, we don't need watch. | |||
if (isWfInDB) { |
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 should do this here because workflows.watch
calls getWorkflow
in the serverside, which can cause error described in #11371 .
@@ -377,18 +385,19 @@ export const WorkflowDetails = ({history, location, match}: RouteComponentProps< | |||
); | |||
retryWatch.start(); | |||
return () => retryWatch.stop(); | |||
}, [namespace, name]); | |||
}, [namespace, name, isWfInDB]); |
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 different cases for workflow deletion still work as before?
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.
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.
I meant the workflow delete button:
- Delete only live workflow
- Also delete archived workflow (there will be a checkbox)
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.
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.
I'm thinking about a better way to make 'isInCluster=true'
This would depend on #11367 (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.
Yes, it should depends on a issue.
I'll submit a PR in Friday, or in this weekend.
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.
As commented below, I checked this point with/without a checkbox.
- Without checkbox -> delete only live workflow (
Archived
->Persisted
) - With checkbox -> delete live workflow and archived workflow
The workflow can still be displayed since an archived workflow still exists, right? |
@toyamagu-2021 I saw your thumbs-up to my comments and just wondering if that means "I have tested and everything looks good" or "I will be testing it". |
@terrytangyuan
|
Let me know when this is ready for another review once you've done testing on the scenarios we discussed before. |
OK, I had some refactoring and additional following checks on the delete button.
|
Signed-off-by: [email protected] [email protected]
Fixes #11371
Motivation
Modifications
uid
to the workflow detail page.uid
from the workflow list page.uid
in the following functionsgetArchived
resubmitArchived
Verification
Resubmit Workflow
Workflow GC
URL:
http://localhost:8080/workflows/argo/omniscient-dragon?tab=workflow
URL is set to:
http://localhost:8080/workflows/argo/omniscient-dragon?tab=summary&uid=4dd0192a-d976-4584-a13b-3e3a8eb196af