Skip to content

[Dashboard] Fix Title BWC#95355

Merged
ThomThomson merged 2 commits intoelastic:masterfrom
ThomThomson:fix/titleHideBreakingChange
Mar 25, 2021
Merged

[Dashboard] Fix Title BWC#95355
ThomThomson merged 2 commits intoelastic:masterfrom
ThomThomson:fix/titleHideBreakingChange

Conversation

@ThomThomson
Copy link
Copy Markdown
Contributor

@ThomThomson ThomThomson commented Mar 24, 2021

Summary

Fixes #95135

This is a very small PR that fixes backwards compatibility for hidden panel titles. Before 7.10.0, hidden titles were saved as a blank string, and this partially recreates that behaviour. Now setting a panel's title to a blank string, or loading a hidden panel from pre 7.10 will make it hidden in view mode.

How to test?
a) You can test by simply giving any panel on a dashboard a custom title of an empty string. Previously this would revert to the saved object title, but now it will count as a valid title, and will be hidden if you switch to view mode.

b) A more drastic test would be to create a dashboard in any version before 7.10, hide some panel titles using the switch, then export that dashboard and import it in this branch. All the panels that were configured to have a hidden title should still be hidden in view mode. Switching to edit mode, you should see [No Title]

@ThomThomson ThomThomson added Feature:Dashboard Dashboard related features release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort v8.0.0 impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. v7.10.3 v7.12.1 v7.11.3 labels Mar 24, 2021
@ThomThomson ThomThomson requested a review from a team as a code owner March 24, 2021 19:28
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dashboard 309.1KB 309.0KB -34.0B

History

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

Copy link
Copy Markdown
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍 The title is properly hidden on the panel in view mode when the title is an empty string.

@ThomThomson ThomThomson merged commit 50bdbfc into elastic:master Mar 25, 2021
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Mar 25, 2021
* allow saving blank string to panel title
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Mar 25, 2021
* allow saving blank string to panel title
ThomThomson added a commit that referenced this pull request Mar 25, 2021
* allow saving blank string to panel title
ThomThomson added a commit that referenced this pull request Mar 25, 2021
* allow saving blank string to panel title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Dashboard Dashboard related features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.10.3 v7.11.3 v7.12.1 v7.17.3 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]Hide panel title ignored after update

4 participants