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

[Visualize] Fixes wrong header menu when navigating from a dashboard to a by ref viz #117077

Merged
merged 5 commits into from
Nov 3, 2021

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Nov 2, 2021

Summary

Fixes #116927

This fixes the wrong menu that appears for the by reference visualizations (saved to the library).
This is broken on 7.15 but I can't find the PR that broke it. I added a unit test which will ensure that this won't break in the future.

Specifically:

  • For the by reference visualizations when I edit them from the dashboard:
    • The share button should be enabled
    • The save button label should be Save as
  • For the by value reference visualizations:
    • The share button should be disabled
    • The save button label should be Save to library
  • For all the visualizations that are created from the viz editor
    • The share button should be enabled
    • The save button label should be Save

Checklist

@stratoula stratoula changed the title [Visualize] fixes share inactive button when navigating from a dashboard to a by ref viz [Visualize] Fixes share inactive button when navigating from a dashboard to a by ref viz Nov 2, 2021
@stratoula stratoula changed the title [Visualize] Fixes share inactive button when navigating from a dashboard to a by ref viz [Visualize] Fixes wrong header menu when navigating from a dashboard to a by ref viz Nov 2, 2021
@stratoula stratoula added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v7.16.0 v8.0.0 v8.1.0 release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Nov 2, 2021
@stratoula stratoula marked this pull request as ready for review November 2, 2021 13:07
@stratoula stratoula requested a review from a team as a code owner November 2, 2021 13:07
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors (Team:VisEditors)

@mbondyra
Copy link
Contributor

mbondyra commented Nov 3, 2021

@elasticmachine merge upstream

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Tested on Chrome and all works as expected 👌🏼 Code LGTM 🆗

@stratoula stratoula added the auto-backport Deprecated - use backport:version if exact versions are needed label Nov 3, 2021
@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 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
visualize 49.7KB 49.7KB +5.0B

History

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

@stratoula stratoula merged commit 12c0075 into elastic:main Nov 3, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Nov 3, 2021
…to a by ref viz (elastic#117077)

* [Visualize] fixes share inactive button when navigating from a dashboard to a by ref vz

* Add unit test

* Remove the hardcoded 'dashboards'

Co-authored-by: Kibana Machine <[email protected]>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Nov 3, 2021
…to a by ref viz (elastic#117077)

* [Visualize] fixes share inactive button when navigating from a dashboard to a by ref vz

* Add unit test

* Remove the hardcoded 'dashboards'

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Nov 3, 2021
…to a by ref viz (#117077) (#117322)

* [Visualize] fixes share inactive button when navigating from a dashboard to a by ref vz

* Add unit test

* Remove the hardcoded 'dashboards'

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Stratoula Kalafateli <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 3, 2021
…to a by ref viz (#117077) (#117324)

* [Visualize] fixes share inactive button when navigating from a dashboard to a by ref vz

* Add unit test

* Remove the hardcoded 'dashboards'

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Stratoula Kalafateli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Share is inactive when I navigate to a viz on the edit mode
4 participants