Repository navigation
fix(reports): look up fetched report schedules by the list API id fields - #43365
Conversation
91d8b41 to
bfd6e83
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43365 +/- ##
=======================================
Coverage 79.24% 79.25%
=======================================
Files 2888 2888
Lines 166448 166453 +5
Branches 38530 38535 +5
=======================================
+ Hits 131909 131917 +8
+ Misses 32045 32042 -3
Partials 2494 2494
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/review |
Code Review Agent Run #d606bbActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
The reducer matched fetched reports by dashboard/chart, but the list API returns dashboard_id/chart_id, so the schedule was dropped and the menu stayed on "Set up an email report" after a reload. Fixes apache#43344
bfd6e83 to
32a58aa
Compare
Code Review Agent Run #5903c5Actionable Suggestions - 0Filtered by Review RulesBito filtered these suggestions based on rules created automatically for your feedback. Manage rules.
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
👷 Deploy Preview for superset-docs-preview processing.
|
Code Review Agent Run #de5661Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Code Review Agent Run #3af7e0Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
When a dashboard or chart already has an email report, reloading the page makes the "Manage email report" menu fall back to "Set up an email report" (#43344). The same thing happens after toggling the schedule active. The fetch itself works, but the
SET_REPORTreducer drops the result because it matchesr.dashboard/r.chartwhile the list endpoint returnsdashboard_id/chart_id.This change matches fetched schedules using the list API fields and makes
DELETE_REPORTunderstand the same response shape. The list response also includesreport_format, so editing a fetched XLSX, CSV, text, or PNG report preserves its delivery format.Explore can carry a
dashboardIdas navigation context for a chart-scoped report. In that case, the modal now selects the existing schedule usingcreationMethodand sends only the matchingchartordashboardfield. This prevents editing the wrong schedule and avoids the API validation error caused by sending both IDs.The
usePreviousfetch gate and the unrelatedcustom_widthlist omission remain unchanged.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Same flow in both recordings: create a report through the menu (it switches to the manage entries), then reload the page.
Before (master): after the reload the menu falls back to "Set up an email report".

After (this branch): the manage entries persist across the reload.

TESTING INSTRUCTIONS
ALERT_REPORTSand create an email report on a dashboard through the three-dot menu.Automated checks:
ADDITIONAL INFORMATION
ALERT_REPORTS