-
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] Hide out solutions result in global search #194279
[Stateful sidenav] Hide out solutions result in global search #194279
Conversation
/ci |
163a0e4
to
e37f6f4
Compare
/ci |
1 similar comment
/ci |
bc0a547
to
352dcba
Compare
/ci |
672d965
to
352dcba
Compare
/ci |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
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
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
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
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11178734170 |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…194279) (#194928) # Backport This will backport the following commits from `main` to `8.x`: - [[Stateful sidenav] Hide out solutions result in global search (#194279)](#194279) <!--- Backport version: 9.4.3 --> ### 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-10-04T10:59:46Z","message":"[Stateful sidenav] Hide out solutions result in global search (#194279)","sha":"3ea6b1327737f0fcf00ac31b43295f8737526500","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability","apm:review"],"title":"[Stateful sidenav] Hide out solutions result in global search","number":194279,"url":"https://github.com/elastic/kibana/pull/194279","mergeCommit":{"message":"[Stateful sidenav] Hide out solutions result in global search (#194279)","sha":"3ea6b1327737f0fcf00ac31b43295f8737526500"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194279","number":194279,"mergeCommit":{"message":"[Stateful sidenav] Hide out solutions result in global search (#194279)","sha":"3ea6b1327737f0fcf00ac31b43295f8737526500"}}]}] BACKPORT--> Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
In this PR I've fixed global search results from appearing when solutions are disabled.
With the new
space.solution
, we automatically disable solution apps that don't belong to the selected solution. We notice that, in some cases, even when the app is disabled, search results where still showing up. See linked issue for details.Fixes https://github.com/elastic/kibana-team/issues/1136
Note: The fixes for security were done in #191965
Changes in Security spaces
As discussed with @legrego I updated the spaces client to dynamically set the
disabledFeatures
array based on thespace.solution
. This is a follow up work of #191927 (see comment).This was needed in order to handle places in Kibana (like here) that depend on the
disabledFeatures
array. And in this concrete case it was needed for this PR to fix the global search issue.