-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Discover] When creating a new tab, use the same data source and query mode #229482
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
Conversation
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8964[✅] src/platform/test/functional/apps/discover/tabs/config.ts: 10/10 tests passed. |
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
cc @jughosta |
kertal
left a comment
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.
Code LGTM, tested locally and works as expected, it's a nice UX enhancement 👍
…y mode (elastic#229482) - Closes elastic#228793 ## Summary When user creates a new tab, depending on the last active tab we can define the initial state for it: - if last active tab was in ES|QL mode, the new tab will be also in ES|QL mode with the same data source as before - if last active tab was in Classic mode, the new tab will be also in Classic mode with the same selected data view as before. So this logic was mainly based on how "New" action works for Discover Sessions in general. Now same for new tabs. ### Testing To enable tabs in Discover, run `localStorage.setItem('discoverExperimental:tabs', 'true')` in browser Console and refresh the page. ### 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.
…y mode (elastic#229482) - Closes elastic#228793 ## Summary When user creates a new tab, depending on the last active tab we can define the initial state for it: - if last active tab was in ES|QL mode, the new tab will be also in ES|QL mode with the same data source as before - if last active tab was in Classic mode, the new tab will be also in Classic mode with the same selected data view as before. So this logic was mainly based on how "New" action works for Discover Sessions in general. Now same for new tabs. ### Testing To enable tabs in Discover, run `localStorage.setItem('discoverExperimental:tabs', 'true')` in browser Console and refresh the page. ### 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.
Summary
When user creates a new tab, depending on the last active tab we can define the initial state for it:
So this logic was mainly based on how "New" action works for Discover Sessions in general. Now same for new tabs.
Testing
To enable tabs in Discover, run
localStorage.setItem('discoverExperimental:tabs', 'true')in browser Console and refresh the page.Checklist
release_note:*label is applied per the guidelinesbackport:*labels.