Repository navigation
fix(explore): open new semantic-view charts without the field re-pick banner - #45832
Open
mikebridge wants to merge 2 commits into
Open
mikebridge wants to merge 2 commits into
mikebridge wants to merge 2 commits into
Conversation
added 2 commits
October 28, 2026 17:50
Stamp only identity-only unsaved input before hydration builds controls and query snapshots. Keep retained selections and datasource switches behind explicit reselection, and use product-neutral banner copy.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #45832 +/- ##
===========================================
+ Coverage 65.50% 84.63% +19.12%
===========================================
Files 3070 3069 -1
Lines 205500 205444 -56
Branches 48306 48313 +7
===========================================
+ Hits 134614 173874 +39260
+ Misses 67803 28280 -39523
- Partials 3083 3290 +207
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
mikebridge
marked this pull request as ready for review
October 29, 2026 05:59
Contributor
aminghadersohi
approved these changes
Oct 29, 2026
aminghadersohi
left a comment
Contributor
There was a problem hiding this comment.
The new-chart stamp excludes saved and field-bearing inputs and runs before the control and query snapshots are built.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
TL;DR: A new chart on a semantic view no longer opens behind the "re-pick your fields" banner. The banner, which saved charts with older field names still see, now uses plain wording.
Background: Semantic views record which naming format a chart's fields use (
semantic_selection_version). When a chart's format is missing or older than the view's current one, Explore shows a banner asking the user to re-pick fields, because an old display title can't be safely mapped to a current field ID.Problem: A brand-new chart has no format recorded yet, so every new chart on a versioned semantic view opened behind that banner, even though it had no fields to lose. The banner copy also used internal terms ("member IDs", "display titles").
What this changes:
datasource,viz_type, an emptyadhoc_filters, an emptyapplied_time_extras, andurl_paramslimited todatasource_id,datasource_type,viz_type,slice_idandform_data_key(string values). Anything else, such as a filter, a metric, a column, or a URL parameter that could name a field, leaves today's behaviour in place.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: opening a new chart on a versioned semantic view shows "Choose current semantic fields" instead of the query controls. After: the controls show straight away. Saved legacy charts show the banner with the new copy.
TESTING INSTRUCTIONS
npm run test -- src/explore/actions/hydrateExplore.test.ts src/explore/components/ControlPanelsContainer.test.tsx src/explore/reducersSEMANTIC_LAYERSon:ADDITIONAL INFORMATION
SEMANTIC_LAYERSNo backend, provider or migration change. Saved charts are never upgraded automatically.