Skip to content
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

False deletion message when canceling workflow deletion in Argo UI #6859

Closed
yoichiwo7 opened this issue Oct 5, 2021 · 5 comments · Fixed by #6967
Closed

False deletion message when canceling workflow deletion in Argo UI #6859

yoichiwo7 opened this issue Oct 5, 2021 · 5 comments · Fixed by #6967
Assignees

Comments

@yoichiwo7
Copy link

Summary

When you cancel workflow deletion in Argo UI, false popup message "Performed 'DELETE' on selected workflows" shows up.

Following steps can reproduce the bug:

  1. Go to "Workflows" tab in Argo UI.
  2. Select one or more workflows.
  3. Click "DELETE" button and cancel it.
  4. After canceling it, the target workflows aren't deleted as expected. However, green popup message "Performed 'DELETE' on selected workflows"shows up on the bottom-right of the UI.

Argo Workflows Versions: 3.1.8 and 3.1.13

Diagnostics

-


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@alexec
Copy link
Contributor

alexec commented Oct 5, 2021

I think this probably happens for all of these, the bug is probably here:

https://github.com/argoproj/argo-workflows/blob/master/ui/src/app/workflows/components/workflows-toolbar/workflows-toolbar.tsx#L55

If that method exit due to cancel, the .then() is still executed on this line:

https://github.com/argoproj/argo-workflows/blob/master/ui/src/app/workflows/components/workflows-toolbar/workflows-toolbar.tsx#L85

So the notification appears.

If performActionOnSelectedWorkflows returned a boolean indicating if the action was executed, then the .then() could check it.

Would you like to submit a PR to fix?

FYI @rbreeze

@alexec alexec added good first issue Good for newcomers help wanted and removed triage labels Oct 5, 2021
@molar-volume
Copy link
Contributor

Hi @alexec @yoichiwo7,
if you are not working on this issue, I can give it a try :)

@molar-volume
Copy link
Contributor

molar-volume commented Oct 15, 2021

@alexec what do you think about using the popup window from workflow-details, to unify the styles?
In workflow-details, the confirm/cancel action is handled with .then(yes => ...), just like you suggested.

@alexec
Copy link
Contributor

alexec commented Oct 15, 2021

I don’t feel strongly. I’d just do whatever is easier.

molar-volume added a commit to molar-volume/argo-workflows that referenced this issue Oct 19, 2021
Signed-off-by: Miro Tomasik <mirotomasik@gmail.com>
@molar-volume
Copy link
Contributor

@alexec the PR is ready.

alexec pushed a commit that referenced this issue Oct 19, 2021
Signed-off-by: Miro Tomasik <mirotomasik@gmail.com>
@sarabala1979 sarabala1979 mentioned this issue Oct 21, 2021
24 tasks
kriti-sc pushed a commit to kriti-sc/argo-workflows that referenced this issue Oct 24, 2021
)

Signed-off-by: Miro Tomasik <mirotomasik@gmail.com>
Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
@alexec alexec mentioned this issue Nov 5, 2021
25 tasks
alexec pushed a commit that referenced this issue Nov 17, 2021
Signed-off-by: Miro Tomasik <mirotomasik@gmail.com>
@sarabala1979 sarabala1979 mentioned this issue Dec 15, 2021
73 tasks
@alexec alexec added area/ui and removed ui labels Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants