You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Explore] do not detect and auto select tab when switching dataset (#10807)
There is an issue when loading a saved explore, the active tab is set to Logs even when the saved explore has Visualization as active tab.
When loading a saved explore, the active tab should already been set by src/plugins/explore/public/application/utils/hooks/use_page_initialization.ts, the current DatasetChangeMiddleware also get triggered after loading a saved explore, but it should NOT detectAndSetOptimalTab any more in this case.
And for regular data set change, we don't need this detectAndSetOptimalTab as well, because data set change always reset the query to emtpy and the select tab should be Logs in this case.
This commit removed detectAndSetOptimalTab from DatasetChangeMiddleware
---------
Signed-off-by: Yulong Ruan <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
- Fix active tab not set when loading saved explore if no vis rule matched ([#10807](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/10807))
Copy file name to clipboardExpand all lines: src/plugins/explore/public/application/utils/state_management/middleware/dataset_change_middleware.test.ts
-9Lines changed: 0 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@ import { DEFAULT_DATA } from '../../../../../../data/common';
0 commit comments