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

Improved experience for editing a visualization from a cloned dashboard #36581

Closed
alexfrancoeur opened this issue May 15, 2019 · 6 comments
Closed
Labels
discuss enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@alexfrancoeur
Copy link

Because of our relationship approach to visualizations and dashboard, cloning a dashboard can become a complicated process. Especially if you're looking to clone a dashboard to tweak some of the visualizations available in that dashboard. As soon as you edit a visualization on a cloned dashboard, all other saved objects using that visualization are also tweaked.

One proposed option is similar to the experience of creating a new visualization from a dashboard. When you're done creating it, we add this directly to the dashboard. Basically, we know that the workflow came from a dashboard and not the visualize app.

You could imagine a similar experience when cloning a dashboard.

  1. Clone dashboard
  2. Edit existing visualization
  3. Save edited visualization
  4. Prompted with a choice to make
  • "Your visualization is linked to dashboard X,Y,Z, overwrite existing visualization?"
    *I "Save and replace existing visualization on cloned dashboard" (With option to rename)

We'd need to know (and probably persist) a few things to get this experience. This is an option that came to mind, but I'm sure there are other approaches.

cc: @AlonaNadler

@alexfrancoeur alexfrancoeur added discuss Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure labels May 15, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-design

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@alexfrancoeur
Copy link
Author

Seems to be related to a longstanding issue #8862

@timroes timroes added the Feature:Dashboard Dashboard related features label Mar 27, 2020
@AlonaNadler
Copy link

After the dashboard change we are currently working on with by value and by reference. Cloning dashboard might get more complex. After cloning there will be no easy way to know if a dashboard panel user edit will be changed only at that dashboard or also in the library.
In general, I think the clone dashboard was always problematic in the world where the dashboard is cloned but the visualizations are not.

After the by value-by reference change, I suggest clone dashboard will clone the dashboard and have all panels be by value.
@majagrubic @ThomThomson @timroes

@ThomThomson
Copy link
Contributor

I'm wondering if transforming all panels to 'by value' is the right direction when cloning a dashboard. It seems to me that once users get used to the new flow, that adding a visualization to the library involves a bit of extra work, and would only be done on purpose. In that case, it could be frustrating if the relationships are lost in situations where users didn't specifically ask to remove them.

I would suggest a confirmation similar to the one @alexfrancoeur originally wrote, though I would argue that it should not only appear when editing a panel from a cloned dashboard, but any time these three conditions are met:

  1. You have come to the editor from a dashboard
  2. The visualization is already saved to the library
  3. The visualization is used in more than one dashboard

The warning could read something like: "This visualization is linked to a library item. Your changes will appear in 2 other dashboards." with an option to "Update Library Item" or "Unlink from Library Item".

Additionally, a 'library' icon that shows up on panels in a dashboard in edit mode could further denote any panels that are 'by reference'.

Most likely my suggestions will be more desirable further down the road when / if embeddables by value becomes an accepted and widespread default.

@timroes timroes added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Oct 7, 2020
@ThomThomson
Copy link
Contributor

Closing this, as the by value feature added in 7.12 covers this use case. When you clone a Dashboard, panels that are by value have no linkage to the visualize library item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss enhancement New value added to drive a business result Feature:Dashboard Dashboard related features Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

5 participants