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

fix(ui): hide Workflow gone message when workflow is archived #13308

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Jul 5, 2024

Fixes #13305

Motivation

In workflows version 3.5 the workflow and archived views were merged.

When a workflow is deleted from the cluster the Workflow gone message is shown in the UI to a user who is viewing the workflow. It is still possible to interact with the workflow if it is archived as though it was in cluster. This message is confusing to users.

Modifications

Moved the notification to be an alternative to archivalStatus on "DELETED" instead of always shown.

Verification

With archiving on, delete a workflow which is archived. See that the message is not shown.
With archiving on, allow the controller to delete a workflow which is archived. See that the message is not shown
With archiving off, delete a workflow. See that the message is shown.

Fixes argoproj#13305

In workflows version 3.5 the workflow and archived views were merged.

When a workflow is deleted from the cluster the `Workflow gone`
message is shown in the UI to a user who is viewing the workflow. It
is still possible to interact with the workflow if it is archived as
though it was in cluster. This message is confusing to users.

With archiving on, delete a workflow which is archived. See that the
message is not shown.
With archiving on, allow the controller to delete a workflow which is
archived. See that the message is not shown
With archiving off, delete a workflow. See that the message is shown.

Signed-off-by: Alan Clucas <alan@clucas.org>
@Joibel Joibel marked this pull request as ready for review July 5, 2024 15:11
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 16, 2024
@Joibel Joibel added this to the v3.5.x patches milestone Jul 16, 2024
@Joibel Joibel merged commit efb52e5 into argoproj:main Jul 16, 2024
16 checks passed
@Joibel Joibel deleted the 13305-workflow-gone branch July 25, 2024 20:29
Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #13305

It's a little unclear to me that this solves the root cause of the issue, since per #13305 (comment), it shouldn't be getting a DELETED event at all, as it has yet to be deleted (it's only been archived, meaning it exists both in etcd and the archive DB).

I'm not really sure how a DELETED event is occurring if it's not deleted though 🤔 The back-end API code seems to purely retrieve k8s events

agilgur5 pushed a commit that referenced this pull request Jul 30, 2024
Signed-off-by: Alan Clucas <alan@clucas.org>
(cherry picked from commit efb52e5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui lgtm This PR has been approved by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow Archiving: Workflow gone error shortly after Workflow completion
3 participants