Skip to content

Conversation

yousoph
Copy link
Member

@yousoph yousoph commented Jul 30, 2025

SUMMARY

Adds a new configuration option "Show query identifiers" to Mixed Timeseries charts, allowing users to control whether "(Query A)" and "(Query B)" identifiers appear in tooltips.
Following the implementation of query identifiers in #33519, some customers provided feedback that they prefer not to see these identifiers in their charts. This PR makes the feature configurable.

Changes
Added "Show query identifiers" checkbox control in the Customize tab
Default behavior: identifiers are hidden
When enabled: shows the existing "(Query A)" and "(Query B)" behavior

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

image image

TESTING INSTRUCTIONS

  • Create a mixed chart
  • Check that the default behavior is that the identifiers are hidden
  • Check that the control shows/hides the identifiers

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

yousoph and others added 3 commits July 29, 2025 23:50
- Add 'Show query identifiers' checkbox control to MixedTimeseries chart
- Control appears above Rich tooltip in the Tooltip section
- Default behavior: unchecked (no Query A/B identifiers shown)
- When checked: adds (Query A) and (Query B) to legend and series names
- Updates legend to use transformed series names instead of raw names
- Conditional logic based on show_query_identifiers form data

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
The form control uses snake_case but gets converted to camelCase when passed to transform function
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/plugins/plugin-chart-echarts/src/MixedTimeseries/types.ts
superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/controlPanel.tsx
superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/transformProps.ts

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

yousoph and others added 2 commits July 30, 2025 20:55
- Remove trailing whitespace
- Fix ESLint formatting issues
- Ensure code style consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add test for showQueryIdentifiers=false (no query identifiers in series names)
- Add test for showQueryIdentifiers=true (query identifiers included in series names)
- Remove debug console.log statements from transformProps.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 30, 2025
yousoph and others added 2 commits July 30, 2025 23:37
- Add proper type casting for echartOptions.series in transformProps.test.ts
- Ensures TypeScript compilation passes for CI checks

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Fix prettier formatting for map function in transformProps.test.ts
- Ensures frontend linting checks pass

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copy link
Contributor

@yousoph Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments

Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://44.252.93.11:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

❤️ ❤️ ❤️

@mistercrunch mistercrunch merged commit 70394e7 into master Jul 31, 2025
57 checks passed
@mistercrunch mistercrunch deleted the mixed-chart-tooltip-query-control branch July 31, 2025 19:16
},
},
],
...richTooltipSection.slice(1), // Skip the tooltip header since we added our own
Copy link
Member

Choose a reason for hiding this comment

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

Did claude add a tooltip header and then remove it, too?

Copy link
Member

Choose a reason for hiding this comment

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

@yousoph can you confirm this works as expected? If not we should follow through with a quick PR to fix the feature

Copy link
Member Author

Choose a reason for hiding this comment

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

It does function as expected but maybe this code needs to be fixed

My guess is it did something weird with the section header since the new control I added was at the top of the "Tooltip" section

LisaHusband pushed a commit to LisaHusband/superset that referenced this pull request Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants