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

fix(explore): don't discard controls on deprecated #30447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justinpark
Copy link
Member

SUMMARY

Currently, if a column or metric name changes in Explore, any previously selected control items disappear. This can lead to confusion during debugging, as the control items mentioned in the error message are not actually displayed.
This commit modifies explore to display a warning message in such cases, allowing the user to manually delete and modify the control items.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

before--warning-markdown.mov

After:

after--warning-markdown.mov

TESTING INSTRUCTIONS

Create a chart with a dataset
Select a column / a metric in the control and then save
Edit the dataset and then change the name of the above selected column/metric
Revisit the chart and then see the error message

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added the explore:control Related to the controls panel of Explore label Sep 30, 2024
@mistercrunch
Copy link
Member

Minor comment from watching the screen caps, but I'm thinking an error exclamation-point-in-a-red-circle would be better than the yellow warning you used. That yellow warning is use to raise attention to something that's not breaking like the other place we use the warning is when we want to show that "this filter is inherited from the dashboard context and won't be saved ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explore:control Related to the controls panel of Explore packages size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants