Skip to content

Harden report rerun reset behavior in API v2 alpha#230

Closed
anth-volk wants to merge 2 commits intomainfrom
feat/enable-report-rerun
Closed

Harden report rerun reset behavior in API v2 alpha#230
anth-volk wants to merge 2 commits intomainfrom
feat/enable-report-rerun

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

Fixes #229

Summary

  • clear persisted simulation result state during report rerun by resetting household_result, output_dataset_id, and started_at
  • keep rerun returning reports and simulations to a clean pending state
  • add focused rerun coverage for both household and economy analyses, including result-row deletion and correct trigger-path assertions

Testing

  • cd /tmp/policyengine-api-v2-alpha-enable-report-rerun && uv run pytest tests/test_analysis_rerun.py

Notes

  • this hardens the existing POST /analysis/rerun/{report_id} route rather than introducing a new endpoint

@anth-volk
Copy link
Copy Markdown
Contributor Author

Superseded by the report-output run migration plan. Closing in favor of the staged run-table redesign.

@anth-volk anth-volk closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden report rerun for household and economy analyses

1 participant