You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "madhushreeag (via GitHub)" <gi...@apache.org> on 2026/10/14 23:41:34 UTC

[PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

madhushreeag opened a new pull request, #45310:
URL: https://github.com/apache/superset/pull/45310

   ### 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.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   ### TESTING INSTRUCTIONS
   <!--- Required! What steps can be taken to manually verify the changes? -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #45310:
URL: https://github.com/apache/superset/pull/45310#issuecomment-6180950401

   ### <span aria-hidden="true">โœ…</span> Deploy Preview for *superset-docs-preview* ready!
   
   
   |  Name | Link |
   |:-:|------------------------|
   |<span aria-hidden="true">๐Ÿ”จ</span> Latest commit | 15d4562a8d7c6b9e212817113412f270d5319a40 |
   |<span aria-hidden="true">๐Ÿ”</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6ad0132ea3b81b328b94ba7d |
   |<span aria-hidden="true">๐Ÿ˜Ž</span> Deploy Preview | [https://deploy-preview-45310--superset-docs-preview.netlify.app](https://deploy-preview-45310--superset-docs-preview.netlify.app) |
   |<span aria-hidden="true">๐Ÿ“ฑ</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />![QR Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTQ1MzEwLS1zdXBlcnNldC1kb2NzLXByZXZpZXcubmV0bGlmeS5hcHAifQ.qE76ggc_Fsk3GnY-mbJz2S-ldyivofw3m73ckp_aBtU)<br /><br />_Use your smartphone camera to open QR code link._</details> |
   |<span aria-hidden="true">๐Ÿค–</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#DctRDoMgDADQu_TbZirL1N1gx2gtRhIQUjDBGO8-_t7PuyFpDKnAF6ADVjrWvTmQ7OdrcxVXjTnj5nyxisWGFJU8VqTqchtik4_XT9r5kPSDGS0Zngc248zLm2kSeP4) |
   ---
   <!-- [superset-docs-preview Preview](https://deploy-preview-45310--superset-docs-preview.netlify.app) -->
   _To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #45310:
URL: https://github.com/apache/superset/pull/45310#issuecomment-6183238521

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/45310?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 66.57%. Comparing base ([`44dbb00`](https://app.codecov.io/gh/apache/superset/commit/44dbb00d6a9050988f1e7f564065aee2f806fc68?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`15d4562`](https://app.codecov.io/gh/apache/superset/commit/15d4562a8d7c6b9e212817113412f270d5319a40?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 3 commits behind head on 7.0.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##              7.0   #45310      +/-   ##
   ==========================================
   - Coverage   66.57%   66.57%   -0.01%     
   ==========================================
     Files        2936     2936              
     Lines      176346   176348       +2     
     Branches    40928    40929       +1     
   ==========================================
   - Hits       117403   117397       -6     
   - Misses      56444    56452       +8     
     Partials     2499     2499              
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/45310/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage ฮ” | |
   |---|---|---|
   | [javascript](https://app.codecov.io/gh/apache/superset/pull/45310/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `76.70% <100.00%> (-0.01%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/45310?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "madhushreeag (via GitHub)" <gi...@apache.org>.
madhushreeag commented on code in PR #45310:
URL: https://github.com/apache/superset/pull/45310#discussion_r4278945863


##########
superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx:
##########
@@ -471,6 +471,10 @@ export default function EchartsTimeseries({
                       val: timeRange,
                     },
                   ],
+            // The backend rewrites every TEMPORAL_RANGE filter's value with the
+            // query's time_range, so without this override target charts would
+            // keep their own saved range and ignore the clicked bucket.
+            ...(values.length ? { time_range: timeRange } : {}),

Review Comment:
   This matches existing behavior rather than introducing new behavior: the native Time Range filter also emits only time_range, and QueryContextFactory._apply_filters rewrites every TEMPORAL_RANGE filter on the target chart from it. This change makes a temporal cross-filter behave the same as picking that range in the native Time Range filter; previously the clicked bucket was overwritten by the target's saved range and the cross-filter had no effect. Restricting the rewrite to the chart's primary temporal filter would be a backend change affecting native time filters as well, so I'd prefer to track that separately, if that is needed. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #45310:
URL: https://github.com/apache/superset/pull/45310#discussion_r4278947836


##########
superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx:
##########
@@ -471,6 +471,10 @@ export default function EchartsTimeseries({
                       val: timeRange,
                     },
                   ],
+            // The backend rewrites every TEMPORAL_RANGE filter's value with the
+            // query's time_range, so without this override target charts would
+            // keep their own saved range and ignore the clicked bucket.
+            ...(values.length ? { time_range: timeRange } : {}),

Review Comment:
   โœ… **Customized review instruction saved!**
   
   **Instruction:**
   > Do not flag query-level `time_range` propagation for temporal cross-filters; it intentionally matches native Time Range filter behavior, which rewrites target `TEMPORAL_RANGE` filters.
   
   **Applied to:**
     - `superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx`
   
   ---
   ๐Ÿ’ก *To manage or update this instruction, visit: [CodeAnt AI Settings](https://app.codeant.ai/org/settings/learnings)*



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #45310:
URL: https://github.com/apache/superset/pull/45310#issuecomment-6183141763

   ## CodeAnt PR Risk: Medium Risk
   
   - The PR needs attention before merging because the clicked bucket overrides target chartsโ€™ independent temporal ranges.
   - Confirm that replacing those ranges is intended, especially when a target chart has its own time filter.
   
   **Assessed commit:** `15d4562a8d7c`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "madhushreeag (via GitHub)" <gi...@apache.org>.
madhushreeag merged PR #45310:
URL: https://github.com/apache/superset/pull/45310


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] fix(dashboard): apply temporal x-axis cross-filters to target charts [superset]

Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #45310:
URL: https://github.com/apache/superset/pull/45310#discussion_r4278452906


##########
superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx:
##########
@@ -471,6 +471,10 @@ export default function EchartsTimeseries({
                       val: timeRange,
                     },
                   ],
+            // The backend rewrites every TEMPORAL_RANGE filter's value with the
+            // query's time_range, so without this override target charts would
+            // keep their own saved range and ignore the clicked bucket.
+            ...(values.length ? { time_range: timeRange } : {}),

Review Comment:
   **Suggestion:** When a target chart has an independent `TEMPORAL_RANGE` filter, this query-level `time_range` makes the backend replace that filterโ€™s value with the clicked bucket.
   
   **Assessment:** ๐ŸŸ  `Major` ยท ๐Ÿ” `Occurrence: Sometimes` ยท ๐Ÿท๏ธ `Logic error`
   
   [![Use CodeAnt Skill](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/use-codeant-skill-flat-v2.svg)](https://docs.codeant.ai/cli/resolve-pr-comments-skill) [![Fix in Cursor](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-cursor-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=561da79285e545fd8b45eaea8ff65e18&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [![Fix in VSCode Claude](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-vscode-claude-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=561da79285e545fd8b45eaea8ff65e18&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
   <details>
   <summary><b>Prompt for AI Agent ๐Ÿค– </b></summary>
   
   ```mdx
   This is a comment left during a code review.
   
   **Path:** superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx
   **Line:** 477:477
   **Comment:**
   	*Logic Error: When a target chart has an independent `TEMPORAL_RANGE` filter, this query-level `time_range` makes the backend replace that filterโ€™s value with the clicked bucket.
   
   Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
   Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
   ```
   </details>
   <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F45310&comment_hash=79a0831c48ad7e7c8bb35f6b3c431bb78f73d1176a0653b12eee71d3c4184721&reaction=like'>๐Ÿ‘</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F45310&comment_hash=79a0831c48ad7e7c8bb35f6b3c431bb78f73d1176a0653b12eee71d3c4184721&reaction=dislike'>๐Ÿ‘Ž</a>



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org