Repository navigation
fix(dashboard): show one labelled drill choice per semantic dimension #46374
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
Changes from 3 commits
3576714
4bf038e
c63983f
177fe1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -324,6 +324,7 @@ def structure(self, pk: int) -> Response: | |||||||
| "definition": dim.definition, | ||||||||
| "description": dim.description, | ||||||||
| "grain": dim.grain.name if dim.grain else None, | ||||||||
| "verbose_name": dim.verbose_name, | ||||||||
| } | ||||||||
| for dim in sorted( | ||||||||
| view.implementation.get_dimensions(), key=lambda d: d.name | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium — Without a raw variant, the label depends on hash order
Also needs
Suggested change
I checked it with a regression test that feeds Day/Week/Month/Year variants as a real
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applied in 177fe1e. The structure response now sorts variants by member name and the shared grain preference, matching Explore's raw and finest-grain selection. A regression using a real set failed under three hash seeds before the change and passes under all three after it. The focused API tests and semantic-layer 100% coverage gate pass. |
||||||||
|
|
||||||||
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.
🟢 Low (optional) — The fallback adds a redundant tooltip
With
|| dim.name, unlabelled dimensions getverbose_name === column_name, sogetColumnTooltipNodeshows "Column name: X / Label: X" in the pre-filter column picker, where there was no tooltip before. Explore sendsverbose_name: null, and every consumer already falls back toverbose_name || column_name, so keepingdim.verbose_name ?? undefinedwould be enough. The mapper test'sverbose_name: 'Orders.order_ts'expectation would need updating too. Non-blocking.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.
Applied in 177fe1e. An unlabelled dimension now keeps
verbose_nameabsent in the mapped column. Drill by and the other inspected consumers still display the member name through their existing fallbacks. The mapper test failed before this change and passes afterward; both focused Jest suites and frontend type checking pass.