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

[Dashboard] Incompatibility with "store state in session storage" advanced setting #183930

Closed
teresaalvarezsoler opened this issue May 21, 2024 · 2 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@teresaalvarezsoler
Copy link

teresaalvarezsoler commented May 21, 2024

Problem
Users are reporting that they get the "Error Error restoring state from URL" each time they open their dashboard (even when they open the dashboard from the list view) and they don't know how to fix it.
Image

Investigation
I have been able to get the error by opening this dashboard from the list page in a 8.13.2 deployment. This is due to the URL appendix _g=h@2294574, if I skip that part of the URL, the error doesn't show.

It's likely that this is caused by some incompatibility between Dashboard and the "store state in session storage" advanced setting where state is not getting properly applied or fetched from the session store.

@botelastic botelastic bot added the needs-team Issues missing a team label label May 21, 2024
@teresaalvarezsoler teresaalvarezsoler added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas and removed needs-team Issues missing a team label labels May 21, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@teresaalvarezsoler teresaalvarezsoler added the bug Fixes for quality problems that affect the customer experience label May 21, 2024
@ThomThomson ThomThomson changed the title "Error restoring state from URL" is frequently appearing [Dashboard] Incompatibility with "store state in session storage" advanced setting May 22, 2024
@ThomThomson ThomThomson added loe:medium Medium Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. labels May 22, 2024
@eokoneyo eokoneyo self-assigned this Jun 4, 2024
@eokoneyo
Copy link
Contributor

It did take a while to get to this, it's worth clarifying that navigating from the dashboard list to any particular dashboard by following the link within the context of the app does work, however navigating directly to the dashboard link through a new tab with the hashed state value in the URL the error toast does get displayed and rightly so because of the backing mechanism used for the resolving the hash state value viz. session storage (for context; in the afore mentioned instance the newly opened tabs get a unique storage instance as such the data to resolve the hash will not exist).

I brought this to the team, and we decided that the decision to have the session storage disabled is the way to go, for users with this setting is turned on wishing to copy / share urls the dashboard share functionality should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:medium Medium Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

4 participants