-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Kibana version: 7.7, 7.8
Browser version: Chrome 81
Original install method (e.g. download page, yum, from source, etc.): Source
Describe the bug:
When navigating to lens from a dashboard (e.g via the Create New button, or in 7.8 editing a lens visualization) a query param is added to track this status. addToDashMode in 7.7 and 'originatingApp' in 7.8. This query param persists through page reloads in lens, but does not in visualize.
Because this query param persists through page reloads, lens is still linked back to dashboard after a reload. If you return to the dashboard after a hard reload, the dashboard is broken and shows many console errors. The dashboard continues to be broken until you discard your changes. If you save the dashboard in this state the console error will show whenever the dashboard is loaded.
Steps to reproduce:
- Open a dashboard.
- Add a new lens visualization to that dashboard, using the create new link at the top of the page
- Once you are on lens refresh the page
- Save the lens visualization
- If in 7.8, ensure the 'add to dashboard on save' box is checked
- Keep an eye out for the console errors.
- Try reloading the dashboard now, the errors should come back.
- Try saving the dashboard, the errors persist.
Expected behavior:
Either of the following:
-
The query param is ephemeral in lens the same way it is in visualize, and after a hard reload, lens will be returned to it's natural state.
-
The query param persists after a refresh, but returning to dashboard in this state does not cause any errors.
