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

R&R detail - show NotFound instead of spinner when not found #3560

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Apr 11, 2023

Fixes AAH-2282

The R&R detail screens load the item using the list API .. so we never get a 404, only an empty list -> handle that.
And handle the "no items, not loading" state by rendering the NotFound component.

@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels Apr 11, 2023
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label Apr 11, 2023
@himdel himdel merged commit 6fdf151 into ansible:master Apr 13, 2023
@himdel himdel deleted the notfound branch April 13, 2023 21:18
@patchback
Copy link

patchback bot commented Apr 13, 2023

Backport to stable-4.7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.7/6fdf1519826fdcf2830561b7a1b223ab68404d05/pr-3560

Backported as #3587

🤖 @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 Apr 13, 2023
* NotFound - convert to functional, export also as component

* Repos & Remotes - treat empty list on detail query as 404

* PageWithTabs - show NotFound when item fails to load

* Show NotFound instead of spinner for nonexistent Repository/Remote detail

Issue: AAH-2282
(cherry picked from commit 6fdf151)
himdel added a commit that referenced this pull request Apr 13, 2023
…3587)

* NotFound - convert to functional, export also as component

* Repos & Remotes - treat empty list on detail query as 404

* PageWithTabs - show NotFound when item fails to load

* Show NotFound instead of spinner for nonexistent Repository/Remote detail

Issue: AAH-2282
(cherry picked from commit 6fdf151)

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 Apr 13, 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.

1 participant