mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [Remember tab choice between logs explorer and discover (#194930)](https://github.com/elastic/kibana/pull/194930) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Abdul Wahab Zahid","email":"awahab07@yahoo.com"},"sourceCommit":{"committedDate":"2024-10-14T09:26:24Z","message":"Remember tab choice between logs explorer and discover (#194930)\n\nCloses #193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when \"Discover\" menu item is clicked\r\non the sidenav in serverless (or solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or \"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point to that app/tab. Previously, \"Discover\"\r\nwould always point to \"Logs Explorer\" on serverless and to \"Discover\" on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app `last-used-logs-viewer` is\r\nregistered in `observability-logs-explorer` plugin whose only job is to\r\nread the last stored value in local storage and perform the redirection.\r\n\r\nDoing the redirection from a temporary app should help prevent\r\ntriggering unnecessary telemetry and history entries. And it should be\r\nfairly easy to undo once context aware redirection is in place.\r\n\r\n~With this implementation, only the behavior of user clicking \"Discover\"\r\non the sidenav and clicking the tabs is affected and any deeplinks from\r\nother apps or direct links should work as is.~ The tab choice will be\r\nupdated even if the apps are visited via url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs","Team:obs-ux-management"],"title":"Remember tab choice between logs explorer and discover","number":194930,"url":"https://github.com/elastic/kibana/pull/194930","mergeCommit":{"message":"Remember tab choice between logs explorer and discover (#194930)\n\nCloses #193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when \"Discover\" menu item is clicked\r\non the sidenav in serverless (or solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or \"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point to that app/tab. Previously, \"Discover\"\r\nwould always point to \"Logs Explorer\" on serverless and to \"Discover\" on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app `last-used-logs-viewer` is\r\nregistered in `observability-logs-explorer` plugin whose only job is to\r\nread the last stored value in local storage and perform the redirection.\r\n\r\nDoing the redirection from a temporary app should help prevent\r\ntriggering unnecessary telemetry and history entries. And it should be\r\nfairly easy to undo once context aware redirection is in place.\r\n\r\n~With this implementation, only the behavior of user clicking \"Discover\"\r\non the sidenav and clicking the tabs is affected and any deeplinks from\r\nother apps or direct links should work as is.~ The tab choice will be\r\nupdated even if the apps are visited via url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac"}},"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/194930","number":194930,"mergeCommit":{"message":"Remember tab choice between logs explorer and discover (#194930)\n\nCloses #193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when \"Discover\" menu item is clicked\r\non the sidenav in serverless (or solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or \"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point to that app/tab. Previously, \"Discover\"\r\nwould always point to \"Logs Explorer\" on serverless and to \"Discover\" on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app `last-used-logs-viewer` is\r\nregistered in `observability-logs-explorer` plugin whose only job is to\r\nread the last stored value in local storage and perform the redirection.\r\n\r\nDoing the redirection from a temporary app should help prevent\r\ntriggering unnecessary telemetry and history entries. And it should be\r\nfairly easy to undo once context aware redirection is in place.\r\n\r\n~With this implementation, only the behavior of user clicking \"Discover\"\r\non the sidenav and clicking the tabs is affected and any deeplinks from\r\nother apps or direct links should work as is.~ The tab choice will be\r\nupdated even if the apps are visited via url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac"}}]}] BACKPORT--> Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com> |
||
---|---|---|
.. | ||
locators | ||
constants.ts | ||
deep_links.ts | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/deeplinks-observability
Empty package generated by @kbn/generate