-
Notifications
You must be signed in to change notification settings - Fork 14k
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): changing the chart title, except not #10527
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.
Nice, this is much cleaner 👍 I'm wondering if we could introduce a unit test for this, both in ChartHolder_spec.jsx
and potentially /tests/dashboards/dao_tests.py
?
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.
Looking at this with new eyes, I feel like adding a test will seem almost weird, as we're essentially just removing mutation logic. No point in adding a test for something that's not happening anymore. LGTM, kudos for net negative LOC PR! 🎉
* changing slice names in dashboard should not change chart title * comprehensions > loops
* changing slice names in dashboard should not change chart title * comprehensions > loops
SUMMARY
It often makes sense to have a different title for a chart in the context of a dashboard than the title used for the chart on its own. This change allows that. Title changes made from the dashboard will not affect the chart entity, and will instead be saved in the dashboard data.
TEST PLAN
Change the chart title in the dashboard, verify that it does not change the chart title. Change the chart title from explore view, verify that it does not change the custom title in the dashboard.
ADDITIONAL INFORMATION