Skip to content

fix(admin): finalize round via DAO close path#491

Open
userAdityaa wants to merge 1 commit intohatnote:masterfrom
userAdityaa:finalization-logic
Open

fix(admin): finalize round via DAO close path#491
userAdityaa wants to merge 1 commit intohatnote:masterfrom
userAdityaa:finalization-logic

Conversation

@userAdityaa
Copy link
Copy Markdown

Description

The admin finalize round endpoint was directly mutating round status, which skipped round-close side effects. This change introduces a dedicated DAO close-round method and delegates the endpoint to it.

Verification

  • Full pytest suite run
  • New regression test included and passing
  • Manual Validation

Solution directly follows the feedback given in #463 (comment)

Closes #462

Screenshots of UI Validation

Before Finalization After Finaliation
Screenshot 2026-04-11 at 10 39 01 PM Screenshot 2026-04-11 at 10 39 40 PM

@userAdityaa
Copy link
Copy Markdown
Author

@lgelauff, would appreciate your thoughts on the improvements.

ayushshukla1807 pushed a commit to ayushshukla1807/montage that referenced this pull request Apr 12, 2026
- Moved RoundResultsSummary creation from finalize_ranking_round to finalize_campaign as requested by maintainer.
- Created generic CoordinatorDAO.finalize_round method to ensure consistent status updates, close_date injection, and audit logging.
- Updated admin_endpoints.py to delegate to the new DAO method, resolving the bypass issue.
- Integrated regression test from PR hatnote#491 to ensure technical parity and future stability.
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.

[Bug]: finalize_round endpoint bypasses DAO finalization logic (missing close_date, audit log, result summary)

1 participant