Skip to content

[Discover] Enable Discover tabs by default#235150

Merged
jughosta merged 17 commits intoelastic:mainfrom
davismcphee:discover-enable-tabs
Sep 30, 2025
Merged

[Discover] Enable Discover tabs by default#235150
jughosta merged 17 commits intoelastic:mainfrom
davismcphee:discover-enable-tabs

Conversation

@davismcphee
Copy link
Copy Markdown
Contributor

@davismcphee davismcphee commented Sep 16, 2025

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

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests 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
  • 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 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
  • Review the backport guidelines 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.

@davismcphee davismcphee self-assigned this Sep 16, 2025
@davismcphee davismcphee added backport:skip This PR does not require backporting release_note:feature Makes this part of the condensed release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// ci:cloud-deploy Create or update a Cloud deployment Project:OneDiscover Enrich Discover with contextual awareness labels Sep 16, 2025
@MiloszRadzynski
Copy link
Copy Markdown
Contributor

/ci

@davismcphee davismcphee force-pushed the discover-enable-tabs branch 3 times, most recently from 560ee7e to 339f0d0 Compare September 24, 2025 17:07
@davismcphee davismcphee marked this pull request as ready for review September 29, 2025 14:57
@davismcphee davismcphee requested review from a team as code owners September 29, 2025 14:57
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kertal
Copy link
Copy Markdown
Member

kertal commented Sep 30, 2025

/ci

Copy link
Copy Markdown
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

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

LGTM 👍

// 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);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After saving a discover session, _tab gets lost from the URL. Created a separate issue for it #236882

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 30, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #11 / Space awareness actions POST /agents/actions/{actionId}/cancel should return 404 if the action is in a different space
  • [job] [logs] FTR Configs #11 / Space awareness agents POST /agents/bulkUpdateAgentTags should only update tags of agents in the same space when passing a list of agent ids

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
discover 159 160 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 1.2MB 1.2MB +308.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
discover 37 38 +1
Unknown metric groups

API count

id before after diff
discover 210 211 +1

History

cc @davismcphee

@jughosta jughosta enabled auto-merge (squash) September 30, 2025 08:35
@jughosta jughosta merged commit 7108aef into elastic:main Sep 30, 2025
12 checks passed
VladimirFilonov pushed a commit to VladimirFilonov/kibana that referenced this pull request Sep 30, 2025
## 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>
jughosta added a commit that referenced this pull request Oct 6, 2025
- 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>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 6, 2025
- 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)
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## 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>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
- 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>
@davismcphee davismcphee deleted the discover-enable-tabs branch December 1, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:cloud-deploy Create or update a Cloud deployment needs_docs Project:OneDiscover Enrich Discover with contextual awareness release_note:feature Makes this part of the condensed release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v9.2.0

8 participants