[Discover] Enable Discover tabs by default#235150
Conversation
|
/ci |
560ee7e to
339f0d0
Compare
4977c83 to
84ad0e6
Compare
84ad0e6 to
19d8082
Compare
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
/ci |
| // Push the selected tab ID to the URL, which creates a new browser history entry. | ||
| // This must be done before setting other URL state, which replace the history entry | ||
| // in order to avoid creating multiple browser history entries when switching tabs. | ||
| await tabsStorageManager.pushSelectedTabIdToUrl(selectedTab.id); |
There was a problem hiding this comment.
nit: pushSelectedTabIdToUrl is not behind the feature flag so it will add _tab to the URL when tabs are disabled.
| // This must be done before setting other URL state, which replace the history entry | ||
| // in order to avoid creating multiple browser history entries when switching tabs. | ||
| await tabsStorageManager.pushSelectedTabIdToUrl(selectedTab.id); | ||
|
|
There was a problem hiding this comment.
After saving a discover session, _tab gets lost from the URL. Created a separate issue for it #236882
💔 Build Failed
Failed CI Steps
Test Failures
Metrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
History
cc @davismcphee |
## Summary This PR enables tabs in Discover by default. We will still read from the feature flag to determine if they should be shown, but the default value will now be `true`. Resolves elastic#235204. ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ## Release note You can now manage multiple data explorations simultaneously in Discover using tabs. Navigate between them seamlessly, duplicate them to build on previous queries, and save them into a single Discover session to retrieve your queries, filters, and data configurations untouched at a later time. --------- Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
- Closes #235320 ## Summary This PR updates the links which were created via Share functionality: - if it was one of tabs from a non-persisted discover session, the opened link will have a single tab with the label as before - if it was one of the saved tabs on a persisted session, the opened link will restore the persisted session tabs and preselect the same tab - if it was a new tab on a persisted session, the opened link will show the persisted session tabs + an appended shared tab with the label as before. Or all previous tabs if it's in the same session (if they are still in the local storage). To be merged after #235150 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: Davis McPhee <davismcphee@hotmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
- Closes elastic#235320 ## Summary This PR updates the links which were created via Share functionality: - if it was one of tabs from a non-persisted discover session, the opened link will have a single tab with the label as before - if it was one of the saved tabs on a persisted session, the opened link will restore the persisted session tabs and preselect the same tab - if it was a new tab on a persisted session, the opened link will show the persisted session tabs + an appended shared tab with the label as before. Or all previous tabs if it's in the same session (if they are still in the local storage). To be merged after elastic#235150 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: Davis McPhee <davismcphee@hotmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 8d7db59)
## Summary This PR enables tabs in Discover by default. We will still read from the feature flag to determine if they should be shown, but the default value will now be `true`. Resolves elastic#235204. ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ## Release note You can now manage multiple data explorations simultaneously in Discover using tabs. Navigate between them seamlessly, duplicate them to build on previous queries, and save them into a single Discover session to retrieve your queries, filters, and data configurations untouched at a later time. --------- Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
- Closes elastic#235320 ## Summary This PR updates the links which were created via Share functionality: - if it was one of tabs from a non-persisted discover session, the opened link will have a single tab with the label as before - if it was one of the saved tabs on a persisted session, the opened link will restore the persisted session tabs and preselect the same tab - if it was a new tab on a persisted session, the opened link will show the persisted session tabs + an appended shared tab with the label as before. Or all previous tabs if it's in the same session (if they are still in the local storage). To be merged after elastic#235150 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: Davis McPhee <davismcphee@hotmail.com> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR enables tabs in Discover by default. We will still read from the feature flag to determine if they should be shown, but the default value will now be
true.Resolves #235204.
Checklist
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Release note
You can now manage multiple data explorations simultaneously in Discover using tabs. Navigate between them seamlessly, duplicate them to build on previous queries, and save them into a single Discover session to retrieve your queries, filters, and data configurations untouched at a later time.