Skip to content

feat(reports): gate retry functionality behind ALERT_REPORTS_RETRY flag - #43553

Merged
rusackas merged 5 commits into
masterfrom
alexandrusoare/feat/report-retry-feature-flag
Aug 26, 2026
Merged

rusackas merged 5 commits into
masterfrom
alexandrusoare/feat/report-retry-feature-flag

Conversation

@alexandrusoare

Copy link
Copy Markdown
Contributor

SUMMARY

  • Places the report retry feature behind a new ALERT_REPORTS_RETRY feature flag, defaulting to False
  • When the flag is off: retry UI is hidden, retry fields are stripped from API writes, and _handle_retry_or_error is a no-op
  • When the flag is on: full retry functionality works as implemented

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

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

@github-actions github-actions Bot added doc Namespace | Anything related to documentation packages labels Aug 26, 2026
@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 081950e
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a8ed53f5b3ba10008e2c77f
😎 Deploy Preview https://deploy-preview-43553--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.

@codecov

codecov Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.08%. Comparing base (e7ca8b8) to head (b11483d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #43553   +/-   ##
=======================================
  Coverage   79.08%   79.08%           
=======================================
  Files        2877     2877           
  Lines      165451   165470   +19     
  Branches    38235    38245   +10     
=======================================
+ Hits       130849   130868   +19     
  Misses      32121    32121           
  Partials     2481     2481           
Flag Coverage Δ
hive 37.99% <33.33%> (-0.01%) ⬇️
javascript 74.54% <100.00%> (+<0.01%) ⬆️
mysql 57.77% <55.55%> (-0.01%) ⬇️
postgres 57.80% <55.55%> (-0.01%) ⬇️
presto 39.91% <33.33%> (-0.01%) ⬇️
python 83.65% <100.00%> (+<0.01%) ⬆️
sqlite 57.49% <55.55%> (-0.01%) ⬇️
unit 73.74% <96.29%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexandrusoare
alexandrusoare marked this pull request as ready for review August 26, 2026 12:46
@dosubot dosubot Bot added alert-reports Namespace | Anything related to the Alert & Reports feature change:backend Requires changing the backend change:frontend Requires changing the frontend labels Aug 26, 2026
Comment thread superset/commands/report/execute.py Resolved
Comment thread superset/reports/schemas.py Resolved
@bito-code-review

bito-code-review Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #b7a3f9

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset/reports/schemas.py - 1
    • Missing flag-off test coverage · Line 201-216
      The new `RetryFieldStripMixin` at line 201 strips `_RETRY_FIELD_KEYS` from the raw payload before validation when `ALERT_REPORTS_RETRY` is disabled. All 7 existing retry-field tests mock `return_value=True` via `_PATCH_RETRY_FLAG`, but zero tests cover the `return_value=False` path. This means the early-exit guard at line 213 and its downstream effects (field-level validators skipped, cross-field constraint bypassed) are never exercised in unit tests. Add tests that patch `_PATCH_RETRY_FLAG` to `False` and assert that retry fields are absent from the load result and that validators do not fire.
Filtered by Review Rules

Bito filtered these suggestions based on rules created automatically for your feedback. Manage rules.

  • superset-frontend/src/features/alerts/AlertReportModal.tsx - 1
Review Details
  • Files reviewed - 11 · Commit Range: 081950e..b11483d
    • superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts
    • superset-frontend/src/features/alerts/AlertReportModal.tsx
    • superset-frontend/src/features/reports/ReportModal/ReportModal.test.tsx
    • superset-frontend/src/features/reports/ReportModal/index.tsx
    • superset/commands/report/execute.py
    • superset/commands/report/update.py
    • superset/config.py
    • superset/reports/schemas.py
    • tests/integration_tests/reports/commands_tests.py
    • tests/unit_tests/commands/report/update_test.py
    • tests/unit_tests/reports/schemas_test.py
  • Files skipped - 1
    • docs/static/feature-flags.json - Reason: Filter setting
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers an incremental AI Review.

  • /review full - Manually triggers a full AI Review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@rusackas rusackas 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.

Thanks @alexandrusoare, and thanks for the review @msyavuz! Codeant's stale-counter and pre_load-ordering findings both look fixed on the current head. LGTM, approving and merging.

@rusackas
rusackas merged commit 455e660 into master Aug 26, 2026
80 checks passed
@rusackas
rusackas deleted the alexandrusoare/feat/report-retry-feature-flag branch August 26, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alert-reports Namespace | Anything related to the Alert & Reports feature change:backend Requires changing the backend change:frontend Requires changing the frontend doc Namespace | Anything related to documentation packages size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants