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

[Stateful sidenav] Hide out solutions result in global search #194279

Merged
merged 18 commits into from
Oct 4, 2024

Conversation

sebelga
Copy link
Contributor

@sebelga sebelga commented Sep 27, 2024

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 the space.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.

@sebelga sebelga changed the title Fix security showing in result when siem is disabled [Stateful sidenav] Hide out solutions result in global search Sep 27, 2024
@sebelga
Copy link
Contributor Author

sebelga commented Sep 27, 2024

/ci

@sebelga sebelga force-pushed the stateful-sidenav/fix-globalsearch branch from 163a0e4 to e37f6f4 Compare September 30, 2024 12:35
@sebelga
Copy link
Contributor Author

sebelga commented Sep 30, 2024

/ci

1 similar comment
@sebelga
Copy link
Contributor Author

sebelga commented Oct 1, 2024

/ci

@sebelga sebelga force-pushed the stateful-sidenav/fix-globalsearch branch from bc0a547 to 352dcba Compare October 2, 2024 11:23
@sebelga
Copy link
Contributor Author

sebelga commented Oct 2, 2024

/ci

@sebelga sebelga force-pushed the stateful-sidenav/fix-globalsearch branch from 672d965 to 352dcba Compare October 2, 2024 13:48
@sebelga
Copy link
Contributor Author

sebelga commented Oct 2, 2024

/ci

@sebelga sebelga marked this pull request as ready for review October 2, 2024 16:05
@sebelga sebelga requested review from a team as code owners October 2, 2024 16:05
@sebelga sebelga requested a review from a team as a code owner October 2, 2024 16:05
@sebelga sebelga self-assigned this Oct 2, 2024
@sebelga sebelga added release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Oct 2, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Oct 2, 2024
Copy link
Contributor

@yngrdyn yngrdyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kibana-ci
Copy link
Collaborator

kibana-ci commented Oct 3, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: e88dc3e
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-194279-e88dc3e72b86

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @sebelga

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sebelga sebelga merged commit 3ea6b13 into elastic:main Oct 4, 2024
25 checks passed
@sebelga sebelga deleted the stateful-sidenav/fix-globalsearch branch October 4, 2024 10:59
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11178734170

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 4, 2024
…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>
tiansivive pushed a commit to tiansivive/kibana that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants