LevisNgigi opened a new pull request, #36955: URL: https://github.com/apache/superset/pull/36955
<!--- fix(dynamic-group-by): scope chart refreshes to affected charts only --> ### SUMMARY This change prevents request storms caused by Dynamic Group By chart customizations by aligning chart refresh behavior with the existing native filters pattern. Previously, applying or saving chart customizations triggered a forced re-query of all charts on the dashboard, regardless of whether they were affected. This caused unnecessary request fan-out and excessive /api/v1/chart/data traffic on dashboards with many charts. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF BEFORE: <img width="1288" height="837" alt="Screenshot from 2026-01-07 20-47-03" src="https://github.com/user-attachments/assets/c03c786f-f290-4bc1-81e2-6a14e9b9b30f" /> AFTER; <img width="1288" height="837" alt="Screenshot from 2026-01-07 21-02-31" src="https://github.com/user-attachments/assets/9d642c8e-d254-4969-9e73-170d02b40d23" /> ### TESTING INSTRUCTIONS 1)Open a dashboard with multiple charts (ideally 10+). 2)Configure Dynamic Group By / Chart Customization for one or more charts. 3)Open the browser DevTools → Network tab (filter by /api/v1/chart/data). 4)Apply the chart customization. Verify: 1)Only charts affected by the customization issue /api/v1/chart/data requests. 2)Unaffected charts do not re-query. 3)Each affected chart triggers only one request per apply action. 4)No repeated or cascading requests are observed. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
