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

Repository/Remote delete: wait for task before requery, redirect to list screen instead of 404 after delete on detail #4012

Merged
merged 5 commits into from
Jul 21, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jul 21, 2023

For both Ansible Repositories and Ansible Remotes,

before, on a list screen: delete triggers a pulp task and reloads the list - the list may update before the delete task finished
after: UI waits for pulp task to finish before reloading

before, on a detail screen: delete triggers a pulp task and reloads the detail - can either update before deletion or successfully 404
after: UI waits for pulp task to finish before redirecting to list screen

@github-actions github-actions bot added the backport-4.7 This PR should be backported to stable-4.7 (2.4) label Jul 21, 2023
@himdel
Copy link
Collaborator Author

himdel commented Jul 21, 2023

Cc @nixocio

@himdel himdel merged commit 584908b into ansible:master Jul 21, 2023
@himdel himdel deleted the remote-wait branch July 21, 2023 22:55
@patchback
Copy link

patchback bot commented Jul 21, 2023

Backport to stable-4.7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.7/584908b9de3091236757b6465502749da8e9bf99/pr-4012

Backported as #4017

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 21, 2023
…ist screen instead of 404 after delete on detail (#4012)

* add actionContext.listQuery to allow actions to requery on list or redirect to list

use for remote & repository delete

No-Issue

* Repository/Remote delete: waitForTask before reloading/redirecting to list

* handleHttpError - handle new Error, string, not just request

* repository test - move mode logic up for clarity

* collection test: increase timeout for copy_or_move_and_sign

(cherry picked from commit 584908b)
himdel added a commit that referenced this pull request Jul 21, 2023
…ist screen instead of 404 after delete on detail (#4012) (#4017)

* add actionContext.listQuery to allow actions to requery on list or redirect to list

use for remote & repository delete

No-Issue

* Repository/Remote delete: waitForTask before reloading/redirecting to list

* handleHttpError - handle new Error, string, not just request

* repository test - move mode logic up for clarity

* collection test: increase timeout for copy_or_move_and_sign

(cherry picked from commit 584908b)

Co-authored-by: Martin Hradil <mhradil@redhat.com>
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.7 This PR should be backported to stable-4.7 (2.4) backported-4.7 This PR has been backported to stable-4.7 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants