-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Stateful sidenav] Don't fetch active space on unauthenticated routes #190408
[Stateful sidenav] Don't fetch active space on unauthenticated routes #190408
Conversation
/ci |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
/ci |
💚 Build Succeeded
Metrics [docs]Page load bundle
To update your PR or re-run it, just comment with: cc @sebelga |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The tests look great!
Thanks for the quick review @tsullivan ! 👍 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…elastic#190408) (cherry picked from commit 8dee365) # Conflicts: # src/plugins/navigation/public/plugin.test.ts # src/plugins/navigation/public/plugin.tsx # src/plugins/navigation/server/ui_settings.test.ts # src/plugins/navigation/server/ui_settings.ts
… routes (#190408) (#190487) # Backport This will backport the following commits from `main` to `8.15`: - [[Stateful sidenav] Don't fetch active space on unauthenticated routes (#190408)](#190408) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sébastien Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-08-13T16:00:08Z","message":"[Stateful sidenav] Don't fetch active space on unauthenticated routes (#190408)","sha":"8dee365bda57a324d18fbd9405a965f74f1c047f","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:SharedUX","backport:prev-minor","Feature:Chrome","v8.16.0","v8.15.1"],"number":190408,"url":"https://github.com/elastic/kibana/pull/190408","mergeCommit":{"message":"[Stateful sidenav] Don't fetch active space on unauthenticated routes (#190408)","sha":"8dee365bda57a324d18fbd9405a965f74f1c047f"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190408","number":190408,"mergeCommit":{"message":"[Stateful sidenav] Don't fetch active space on unauthenticated routes (#190408)","sha":"8dee365bda57a324d18fbd9405a965f74f1c047f"}},{"branch":"8.15","label":"v8.15.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
This PR fixes a bug where the
navigation
plugin tries to fetch the active space on unauthenticated routes (e.g. the login page). This created noise in the log and could mis lead users that something was wrong.For context, the navigation plugin fetches the active space on the client to decide which side navigation to render and on the server to decide which default route to redirect for the space home page.
Fixes #190135