-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Change the scale factor when upgrading panels with margins #20684
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
code review, tested in chrome by creating a dashboard with margins. Simulated 6.2.0 dashboards by modifying saved object panelsJSON
for each panel by setting version to 6.2.0 and dividing x and w attributes by 4 and dividing y and h attributes by 5. I then loaded the dashboard objects to view their appearance.
Nice reviewing @nreese . I did something similar but created dashboard in 6.2, then exported and imported in 6.3, once without this PR, then once with. 6.3 with this PR (ignore the not found errors, didn't bother with data): Def a lot closer with this PR. Code lgtm too. |
retest |
💔 Build Failed |
Looks like a legitimate test failure in dashboard_grid_container.test.js
|
That test was using useMargins = true because it is the default value in the store. I added a second test to check when useMargins = false and fixed the expected value. |
retest |
💚 Build Succeeded |
…0684) * Change the scale factor when upgrading panels with margins * Add test for dashboard_grid_container with and without margins
) (#20727) * merge conflicts * remove grid_container test with margins
Fixes #20635
This reduces the scale factor to 4 when migrating panels that are in a dashboard with margins.