Skip to content

feat: Add configurable query identifiers for Mixed Timeseries charts #34200

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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

yousoph
Copy link
Member

@yousoph yousoph commented Jul 17, 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 and legends.
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
  • Control appears between "Rich tooltip" and "Tooltip sort by metric" options
  • Default behavior: identifiers are hidden (maintaining cleaner appearance)
  • When enabled: shows the existing "(Query A)" and "(Query B)" behavior
  • Control only visible when rich tooltip is enabled

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  • Verify default behavior hides query identifiers
  • Verify enabling the option shows identifiers as expected
  • Test with both grouped and ungrouped metrics
  • Confirm control positioning and visibility conditions

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

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.

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Performance Inline Visibility Function ▹ view 🧠 Not in scope
Files scanned
File Path Reviewed
superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/controlPanel.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

description: t('Adds Query A and Query B identifiers to metrics to help differentiate series'),
default: false,
renderTrigger: true,
visibility: ({ controls }) => Boolean(controls?.rich_tooltip?.value),

This comment was marked as resolved.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Jul 17, 2025
@sadpandajoe sadpandajoe force-pushed the query-identifier-control branch from a289b43 to 12dd4a7 Compare July 17, 2025 17:22
@sadpandajoe sadpandajoe requested review from justinpark and geido July 17, 2025 18:10
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jul 17, 2025
@yousoph yousoph marked this pull request as draft July 18, 2025 00:25
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.

2 participants