Skip to content

fix(dashboard): apply temporal x-axis cross-filters to target charts - #45310

Merged
madhushreeag merged 2 commits into
masterfrom
madhu/fix-cross-filter-temporal-x-axis
Oct 16, 2026
Merged

madhushreeag merged 2 commits into
masterfrom
madhu/fix-cross-filter-temporal-x-axis

Conversation

@madhushreeag

@madhushreeag madhushreeag commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

SUMMARY

On a dashboard, clicking a date point or x-axis label on a line or bar chart shows "1 filter applied" on the other charts, but their data doesn't change.

There were two causes:

  1. Backend overwrite: the click sends the clicked bucket as a TEMPORAL_RANGE filter. Before running the query, the backend replaces every TEMPORAL_RANGE value with the chart's saved time_range, so the clicked range was lost.
  2. Native Time Range wins: on dashboards with a native Time Range filter, that filter's time_range was applied after the cross-filter and replaced it. Cross-filters are stored under chart IDs, and JavaScript orders number-like keys before "NATIVE_FILTER-…".

The fix, across 4 files:

  • EchartsTimeseries.tsx: the click also sends time_range for the clicked bucket, the same way the native Time Range filter does. The TEMPORAL_RANGE filter stays, so the filter indicator still works.
  • getFormDataWithExtraFilters.ts: native filters are applied first and cross-filters last, so the user's click takes precedence.
  • Two test files: updated assertions and a new test. The new test fails without the second fix and passes with it.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

Screen.Recording.2026-10-14.at.7.25.05.PM.mov

After

Screen.Recording.2026-10-14.at.7.22.30.PM.mov

TESTING INSTRUCTIONS

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

@madhushreeag
madhushreeag requested a review from villebro October 14, 2026 23:41
@github-actions github-actions Bot added i18n Namespace | Anything related to localization risk:db-migration PRs that require a DB migration i18n:spanish Translation related to Spanish language i18n:italian Translation related to Italian language i18n:french Translation related to French language i18n:chinese Translation related to Chinese language i18n:japanese Translation related to Japanese language i18n:russian Translation related to Russian language i18n:korean Translation related to Korean language api Related to the REST API doc Namespace | Anything related to documentation embedded plugins dependencies:npm github_actions Pull requests that update GitHub Actions code packages i18n:dutch i18n:slovak i18n:ukrainian i18n:portuguese i18n:brazilian dependencies:python i18n:traditional-chinese i18n:persian risk:ci-script PR modifies scripts that execute in CI (supply chain risk) i18n:czech i18n:latvian risk:chart-metadata labels Oct 14, 2026
@netlify

netlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 7e04666
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6ad266b793f5ef7050b72332
😎 Deploy Preview https://deploy-preview-45310--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@madhushreeag
madhushreeag changed the base branch from 7.0 to master October 16, 2026 05:01
@madhushreeag madhushreeag removed i18n Namespace | Anything related to localization risk:db-migration PRs that require a DB migration i18n:spanish Translation related to Spanish language i18n:italian Translation related to Italian language i18n:french Translation related to French language i18n:chinese Translation related to Chinese language i18n:japanese Translation related to Japanese language i18n:russian Translation related to Russian language i18n:korean Translation related to Korean language api Related to the REST API labels Oct 16, 2026

@villebro villebro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Agree with the bug definition + proposed change, LGTM.

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