Skip to content
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

[Discover] Fix Discover breadcrumb losing context after page refresh or when opening in a new tab #136749

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

davismcphee
Copy link
Contributor

Summary

This PR fixes an issue in Surrounding documents and Single document where the breadcrumb back to Discover loses context after a page refresh or when opening in a new tab, causing the application state to reset when navigating back to Discover:

breadcrumb-fix

Fixes #136134.

Checklist

For maintainers

@davismcphee davismcphee added Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.4.0 labels Jul 20, 2022
@davismcphee davismcphee self-assigned this Jul 20, 2022
@davismcphee davismcphee marked this pull request as ready for review July 20, 2022 18:52
@davismcphee davismcphee requested a review from a team as a code owner July 20, 2022 18:52
Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

First quick test, issue fixed, thx a lot 👍 ... will have a closer look later on

@kertal
Copy link
Member

kertal commented Jul 21, 2022

Sorry, couldn't finish, to much SQL reviewing, will definitely finish tomorrow!

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested a-la-carte and works as expected 👍 thx for this fix.
Unrelated to this, while testing I've encountered that surrounding documents don't seem to support storing the URL in the session, something no to fix in this PR, but we should take care of later on
Bildschirmfoto 2022-07-22 um 11 30 40

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
discover 495.0KB 495.2KB +135.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @davismcphee

@davismcphee davismcphee merged commit 90091ba into elastic:main Jul 22, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 22, 2022
@davismcphee davismcphee deleted the fix-discover-breadcrumbs branch July 22, 2022 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] Discover breadcrumb link in Surrounding documents loses context after page refresh
4 participants