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): remove unnecessary hard reload after delete #12930

Merged

Conversation

agilgur5
Copy link
Member

Fixes #11121 (comment)

Motivation

Modifications

  • remove the window.location.reload() and comments about it
    • navigation.goto is already there and already works properly

Verification

Tested deletion locally without the window.location.reload() and it worked fine.

Screenshots:

Before deletion -- coinflip-794pg exists:
Screenshot 2024-02-17 at 1 37 37 PM

After deletion -- clicked into coinflip-794pg and clicked Delete -- coinflip-794pg no longer exists:
Screenshot 2024-02-17 at 1 37 13 PM

Notes to Reviewers

Might notice that my screenshots are nearly 2 months old 😅 I haven't gotten back to UI work in a bit and this was leftover code that I had in my git stash

- remove the hard `window.location.reload()` on deletion b/c the WorkflowsList page _does_ handle deletions
  - not sure what didn't work about it before, the code has improved but is largely semantically equivalent
    - I suspect it might have been the same root cause as the bug fixed by 9e7dc25

Signed-off-by: Anton Gilgur <[email protected]>
@agilgur5 agilgur5 added this to the v3.5.x patches milestone Apr 12, 2024
@agilgur5 agilgur5 changed the title fix(ui): remove unnecessary hard reload fix(ui): remove unnecessary hard reload after delete Apr 13, 2024
Copy link
Member

@tczhao tczhao left a comment

Choose a reason for hiding this comment

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

make sense,
Verified server deletes the resource before returning a response

@isubasinghe isubasinghe merged commit b1c3768 into argoproj:main Apr 22, 2024
17 checks passed
@agilgur5 agilgur5 deleted the fix-ui-remove-unnecessary-window-reload branch April 22, 2024 05:21
agilgur5 added a commit that referenced this pull request Apr 24, 2024
Signed-off-by: Anton Gilgur <[email protected]>
(cherry picked from commit b1c3768)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants