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

Add a 404 Dispatch page, handle some old galaxy URLs #4090

Merged
merged 7 commits into from
Aug 14, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Aug 4, 2023

Issue: AAH-2342

old galaxy UI base path is /, /{namespace}/{name}/ is a valid old galaxy URL

new galaxy UI base path is /ui/, and URLs for collections are different from URLs for legacy roles

we still want to support old URLs, so, when navigating to (new-galaxy)/foo/bar/:

  • backend will just serve the UI for unknown urls
  • UI entry-standalone will notice URLs outside the /ui/ base path, and redirect to /ui/dispatch?pathname=/foo/bar
  • /dispatch is a new route, renders a 404-like Dispatch container
  • Dispatch container can query the APIs and show links to either the foo/bar collection or the foo/bar role, or both.

20230811010510
20230811010520
20230811010622

@himdel himdel added the community comunity mode feature label Aug 4, 2023
@github-actions github-actions bot added the backport-4.7 This PR should be backported to stable-4.7 (2.4) label Aug 4, 2023
@himdel himdel force-pushed the beta-url-2342 branch 4 times, most recently from 11482bb to badb824 Compare August 11, 2023 00:39
@himdel himdel marked this pull request as ready for review August 11, 2023 01:08
old galaxy UI base path is /, /{namespace}/{name}/ is a valid old galaxy URL

new galaxy UI base path is /ui/, and URLs for collections are different from URLs for legacy roles

we still want to support old URLs, so, when navigating to `(new-galaxy)/foo/bar/`:
* backend will just serve the UI for unknown urls
* UI entry-standalone will notice URLs outside the `/ui/` base path, and redirect to `/ui/dispatch?pathname=/foo/bar`
* /dispatch is a new route, renders a 404-like Dispatch container
* Dispatch containers can query the APIs and show links to either the foo/bar collection or the foo/bar role, or both.

Issue: AAH-2342
@himdel himdel merged commit e0265b4 into ansible:master Aug 14, 2023
18 of 20 checks passed
@himdel himdel deleted the beta-url-2342 branch August 14, 2023 16:56
@patchback

This comment was marked as outdated.

himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Aug 14, 2023
* Add a 404 Dispatch page, handle some old galaxy URLs

old galaxy UI base path is /, /{namespace}/{name}/ is a valid old galaxy URL

new galaxy UI base path is /ui/, and URLs for collections are different from URLs for legacy roles

we still want to support old URLs, so, when navigating to `(new-galaxy)/foo/bar/`:
* backend will just serve the UI for unknown urls
* UI entry-standalone will notice URLs outside the `/ui/` base path, and redirect to `/ui/dispatch?pathname=/foo/bar`
* /dispatch is a new route, renders a 404-like Dispatch container
* Dispatch containers can query the APIs and show links to either the foo/bar collection or the foo/bar role, or both.

Issue: AAH-2342

* fix Documentation link duplicate key

* list collections and roles, show as list items

* simplify standalone redirect

* add/use feature flags, links to all collections/role when none found

* dispatch empty state top bullseye

* dispatch - use EmptyStateNoData

(cherry picked from commit e0265b4)
himdel added a commit that referenced this pull request Aug 14, 2023
* Add a 404 Dispatch page, handle some old galaxy URLs

old galaxy UI base path is /, /{namespace}/{name}/ is a valid old galaxy URL

new galaxy UI base path is /ui/, and URLs for collections are different from URLs for legacy roles

we still want to support old URLs, so, when navigating to `(new-galaxy)/foo/bar/`:
* backend will just serve the UI for unknown urls
* UI entry-standalone will notice URLs outside the `/ui/` base path, and redirect to `/ui/dispatch?pathname=/foo/bar`
* /dispatch is a new route, renders a 404-like Dispatch container
* Dispatch containers can query the APIs and show links to either the foo/bar collection or the foo/bar role, or both.

Issue: AAH-2342

* fix Documentation link duplicate key

* list collections and roles, show as list items

* simplify standalone redirect

* add/use feature flags, links to all collections/role when none found

* dispatch empty state top bullseye

* dispatch - use EmptyStateNoData

(cherry picked from commit e0265b4)
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Aug 14, 2023
@himdel himdel mentioned this pull request Sep 11, 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) community comunity mode feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant