-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix(dashboard): Dashboard import commands not correctly replacing charts #25102
base: master
Are you sure you want to change the base?
Conversation
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.
Please fix pre-commit by running |
Done, sorry about that! |
Is there a plan to have this released anytime soon ? @lindenh @betodealmeida ? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #25102 +/- ##
==========================================
+ Coverage 60.48% 65.45% +4.96%
==========================================
Files 1931 533 -1398
Lines 76236 38609 -37627
Branches 8568 0 -8568
==========================================
- Hits 46114 25271 -20843
+ Misses 28017 13338 -14679
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
We can't merge it until tests are passing, but hopefully that can happen soon if @lindenh has bandwidth! |
This affecting us too. We distribute dashboards (with their charts) to different users, and when a user "installs" a new version of a dashboard by importing it with the "overwrite" option, and this new version of the dashboard contains modifications to one or some of the dashboard's charts, those charts are not updated at all. No need to add or remove charts, just any modifications like changes in the charts' queries will not be performed. Right now we are asking our users to manually delete the old dashboard plus all its related charts one by one before importing the new version, which is a very inconvenient operation for large dashboards. |
Sorry- I'll fix this right after #30887 gets in. Trying to avoid conflicts made by my own changes. |
SUMMARY
Similar to #22208, the dashboard import commands would not replace charts when the overwrite flag was true, charts would be merged into one dashboard. This change fixes the command in the exact same way as that PR.
Fixes #22127
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION