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:
AFTER;
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
- [ ] 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