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] Enable on-prem #203239

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

sebelga
Copy link
Contributor

@sebelga sebelga commented Dec 6, 2024

In this PR I've enabled the new space solution view (which renders the different solution side navigations) for on-prem users.

How to test

  • Make sure you don't have any yml setting that were previously used to activate the solution view
### Both those setting must **not** exist or be commented out ###

# xpack.spaces.experimental.forceSolutionVisibility
# xpack.cloud.id
  • Start Kibana
  • Edit the current space
  • You should see the solution view drop down

Release notes

The new space solution view is now available for on-prem users. The space solution views allows solution centric navigation similar to our serverless offering.

Fixes #203107

@sebelga sebelga self-assigned this Dec 6, 2024
@sebelga sebelga added release_note:enhancement Feature:Security/Spaces Platform Security - Spaces feature Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) Feature:Chrome Core's Chrome UI (sidenav, header, breadcrumbs) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Dec 6, 2024
@sebelga
Copy link
Contributor Author

sebelga commented Dec 6, 2024

/ci

@@ -72,6 +72,7 @@ export const SolutionViewTour: FC<Props> = ({ children, solution, isTourOpen, on
onFinish={onFinishTour}
step={1}
stepsTotal={1}
repositionOnScroll
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to fix an issue when scrolling the window when the tour is open

@sebelga sebelga force-pushed the stateful-sidenav/enable-onprem branch from fddc285 to 82e94af Compare December 9, 2024 17:28
@sebelga
Copy link
Contributor Author

sebelga commented Dec 9, 2024

/ci

@sebelga sebelga force-pushed the stateful-sidenav/enable-onprem branch from 82e94af to 3d80b56 Compare December 10, 2024 12:16
@sebelga
Copy link
Contributor Author

sebelga commented Dec 10, 2024

/ci

@sebelga
Copy link
Contributor Author

sebelga commented Dec 10, 2024

/ci

@sebelga sebelga marked this pull request as ready for review December 10, 2024 17:37
@sebelga sebelga requested review from a team as code owners December 10, 2024 17:37
@elasticmachine
Copy link
Contributor

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

@kc13greiner kc13greiner self-requested a review December 10, 2024 17:55
Copy link
Contributor

@kc13greiner kc13greiner left a comment

Choose a reason for hiding this comment

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

LGTM! Just one question!

@@ -236,129 +235,34 @@ describe('Spaces plugin', () => {
});

describe('isSolutionViewEnabled', () => {
it('when onCloud, not serverless and allowSolutionVisibility is "true"', () => {
it('when allowSolutionVisibility is "true"', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: should there also be a test for when allowSolutionVisibility is undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can't be undefined. It comes from the server yml config that has a default to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With that said, I added a test just in case the server would not provide a value
2fb0eec

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

codeowner changes lgtm

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Smoke check that it works 👍

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #101 / discover/group4 adhoc data views should support query and filtering
  • [job] [logs] x-pack/test_serverless/functional/test_suites/security/common_configs/config.group5.ts / discover/group6 discover sidebar field stats should work for regular and pinned filters

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
spaces 34.8KB 34.8KB -25.0B

History

cc @sebelga

@sebelga sebelga merged commit 771166b into elastic:main Dec 11, 2024
8 checks passed
@sebelga sebelga deleted the stateful-sidenav/enable-onprem branch December 11, 2024 13:12
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 11, 2024
@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 Dec 11, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Enable on-prem
(#203239)](#203239)

<!--- 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":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-11T13:12:15Z","message":"[Stateful
sidenav] Enable on-prem
(#203239)","sha":"771166bf7f95e95bc1e999919f6a75e26e157d0f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Feature:Security/Spaces","v9.0.0","Team:SharedUX","backport:prev-minor","Feature:Chrome"],"title":"[Stateful
sidenav] Enable
on-prem","number":203239,"url":"https://github.com/elastic/kibana/pull/203239","mergeCommit":{"message":"[Stateful
sidenav] Enable on-prem
(#203239)","sha":"771166bf7f95e95bc1e999919f6a75e26e157d0f"}},"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/203239","number":203239,"mergeCommit":{"message":"[Stateful
sidenav] Enable on-prem
(#203239)","sha":"771166bf7f95e95bc1e999919f6a75e26e157d0f"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Feature:Chrome Core's Chrome UI (sidenav, header, breadcrumbs) Feature:Security/Spaces Platform Security - Spaces feature release_note:enhancement Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Navigation] enable new navigation on stateful
8 participants