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

[Lens] Add an unsaved changes badge in Lens editor, same as dashboards do #66531

Closed
majagrubic opened this issue May 14, 2020 · 11 comments
Closed
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@majagrubic
Copy link
Contributor

majagrubic commented May 14, 2020

Kibana version: 7.8

Browser version:
Chrome 81

Browser OS version:
Mac OS 10.14

Original install method (e.g. download page, yum, from source, etc.):
Cloud

Describe the bug:
When editing a Lens visualization, navigating away from it to another app (eg. Dashboard) and returning back to Visualize, visualization listing page is displayed, instead of a previous Lens visualization. Also, there is no Lens visualization in "recently viewed" items. This works for all other visualizations.

Steps to reproduce:

  1. Go to Visualize, Lens, create a new visualization or edit existing
  2. Select Dashboard from the new nav bar
  3. Select Visualize from the the new nav bar - visualize listing page is displayed

Expected behavior:
Previously edited Lens visualization is displayed.

@majagrubic majagrubic added the REASSIGN from Team:Core UI Deprecated label for old Core UI team label May 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core-ui (Team:Core UI)

@majagrubic majagrubic added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label May 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@majagrubic majagrubic added bug Fixes for quality problems that affect the customer experience v7.8.0 Feature:Lens labels May 14, 2020
@flash1293
Copy link
Contributor

I'm not sure whether there were discussions around this behavior, but it's expected - as Lens is a separate app it would have to handle these features itself, but it doesn't at the moment. I agree we should make the behavior more consistent here though.

@flash1293
Copy link
Contributor

I'm a little on the fence whether this is a bug or an enhancement :D It was never intended to work, but it's definitely not what a user would expect. I lean more towards enhancement, so I'm going to relabel, but no strong opinion.

@flash1293 flash1293 added enhancement New value added to drive a business result and removed REASSIGN from Team:Core UI Deprecated label for old Core UI team bug Fixes for quality problems that affect the customer experience labels May 14, 2020
@mbondyra mbondyra removed the v7.8.0 label May 19, 2020
@wylieconlon
Copy link
Contributor

Adding to Editing experience

@mbondyra
Copy link
Contributor

mbondyra commented May 27, 2020

How do we want to solve this problem? I see two possible solutions:

  • popup window about navigating away (maybe it can be the first step)
  • keeping state of unsaved lens visualisation somewhere, (local storage (would be aligned with undo/redo) or a 'ghost' saved object)

@flash1293
Copy link
Contributor

Option 1 seems like a very good short term solution, for option two we should think about the topic in context of whole Kibana how we want to make behavior consistent (currently it's a mess and I would like to avoid adding yet another inconsistent way of handling it).

@wylieconlon wylieconlon removed their assignment May 28, 2020
@ghudgins
Copy link
Contributor

use case where this could be useful - error cases where we link users off to settings to do something

we had trouble thinking of more use cases where the legacy visualizations / tsvb functionality is desirable. we do have concerns that the behavior can be annoying and a bit unexpected

@AlonaNadler has anyone ever complained about this in lens from your standpoint? we're aren't convinced this is a problem for people because lens has been missing this for some time

@AlonaNadler
Copy link

I haven't heard anything about this issue. Let's go with your judgment here

@ThomThomson
Copy link
Contributor

It's currently pretty easy for users to lose unsaved changes in lens. I think this will start to become more annoying as more complicated features and settings are added to lens. Formulas for instance, could be a pain to re-write when lost because the user navigates to another page and back.

Dashboard uses a pattern where unsaved changes are saved to session storage based on the dashboard id, so the latest 'unsaved changes' can always be restored when editing any dashboard, or creating a new one. I wonder if it would be worth eventually implementing something like this in Lens.

@stratoula stratoula changed the title [Navigation][Lens] When navigating back to Lens, visualization is not preserved [Lens] Add an unsaved changes badge in Lens editor, same as dashboards do Jun 2, 2023
@stratoula stratoula added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label Jan 24, 2024
@dej611
Copy link
Contributor

dej611 commented Aug 7, 2024

In order to provide better transparency of priorities, issues that will not be prioritized within the next 24 months are being closed.

@dej611 dej611 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

10 participants