Bug description
In the dataset editor, we have labels for columns and calculated columns that users can use as a nicer display name for columns. However, in Superset, we use the label some of the time and the original column name other times.
When the label exists, we should use it in the following places (that aren't currently using it)
- Drill to detail
- Drill to detail by
For reference, the label is used in these places: Charts Drill by results Downloads
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.11
Node version
18 or greater
Browser
Firefox
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
You're right—column labels (verbose_name) from the dataset editor aren't consistently shown in the "Drill to detail" and "Drill to detail by" menus. The menus are implemented in the frontend, mainly in DrillDetailMenuItems.tsx
and ChartContextMenu.tsx
. While the "Drill by" menu already uses the label if available, the "Drill to detail by" submenu currently displays filter.formattedVal
, which may just be the column name, not the label.
Superset has utilities like useVerboseMap
and columnChoices
that map column names to labels, but not all components use them. To make the drill menus consistent with charts and downloads, update the relevant menu components to resolve and display the column label (verbose_name) when it exists, falling back to the column name otherwise. Centralizing this logic (for example, always using useVerboseMap
) would help maintain consistency across the UI.
No existing tickets or docs cover this specific issue, so this would be a new improvement for the frontend codebase. For reference, see the current implementations in DrillDetailMenuItems.tsx
, ChartContextMenu.tsx
, and the label mapping utility useVerboseMap
.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
Comment From: developerzohaib786
Hi 👋, I'd like to work on this issue.
Could you please clarify if both "Drill to detail" and "Drill to detail by" are missing label support across all datasets, or only in specific cases? Any pointers to where this logic currently exists in the codebase would also be helpful.
If it's okay, @msyavuz kindly assign this issue to me. Thanks!
Comment From: msyavuz
Thank you for your interest @developerzohaib786 . I don't think it's specific to dataset. Logic likely sits around src/components/Chart/DrillDetail/DrillDetailPane.tsx
, React DevTools should point you to the right component. Good luck!
Comment From: developerzohaib786
please assign this issue to me. and can you point out the bounty info?
Comment From: msyavuz
@developerzohaib786 The bounty is not attached yet, if you want to work on this as part of the bounty program you need to wait for the bounty comments in the issues.