Skip to content

Comments

fix: Use labels in Drill to Detail#34620

Merged
Vitor-Avila merged 3 commits intomasterfrom
fix/use-labels-drill-detail-modal
Aug 11, 2025
Merged

fix: Use labels in Drill to Detail#34620
Vitor-Avila merged 3 commits intomasterfrom
fix/use-labels-drill-detail-modal

Conversation

@Vitor-Avila
Copy link
Contributor

@Vitor-Avila Vitor-Avila commented Aug 8, 2025

SUMMARY

This PR improves the Drill to Detail / Drill to Detail By flows to use the column labels.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

image

After

image

TESTING INSTRUCTIONS

  1. Define labels to columns in a dataset.
  2. Create a chart using it.
  3. Confirm that drill to detail render using the column labels.
    Fixes Show dataset column labels in drilling menus #34402

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 dashboard:drill-down Related to drill-down functionality of the Dashboard label Aug 8, 2025
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues.

Files scanned
File Path Reviewed
superset-frontend/src/hooks/apiResources/datasets.ts
superset-frontend/src/components/Chart/DrillDetail/DrillDetailPane.tsx
superset-frontend/src/components/Chart/ChartContextMenu/ChartContextMenu.tsx
superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment on lines 166 to 169
const dataset =
datasetResource.status === ResourceStatus.Complete
? datasetResource.result
: undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this defaulting to undefined correct here? I don't think it makes sense to do this if we are going to assert types below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch! I improved this flow in my last commit @msyavuz -- could you please review it again?

@Vitor-Avila Vitor-Avila requested a review from msyavuz August 8, 2025 22:05
@Vitor-Avila
Copy link
Contributor Author

Hey @michael-s-molina would you be able to quickly test both #34319 and also this one? I'm asking it because I don't have any custom extension for 'load.drillby.options' loaded, but I believe that's the case for Airbnb so I just want to make sure these changes are not affecting that flow.

Copy link
Member

@msyavuz msyavuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Vitor-Avila Vitor-Avila merged commit 732506b into master Aug 11, 2025
59 checks passed
@Vitor-Avila Vitor-Avila deleted the fix/use-labels-drill-detail-modal branch August 11, 2025 13:25
LisaHusband pushed a commit to LisaHusband/superset that referenced this pull request Aug 17, 2025
@github-actions github-actions bot added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 6.0.0 First shipped in 6.0.0 labels Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels dashboard:drill-down Related to drill-down functionality of the Dashboard size/L 🚢 6.0.0 First shipped in 6.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show dataset column labels in drilling menus

2 participants