Skip to content

fix: release volunteer ownership when reopening complaints - #234

Merged
Janani-bn merged 1 commit into
mainfrom
fix/reopen-complaint-ownership
Nov 15, 2026
Merged

Janani-bn merged 1 commit into
mainfrom
fix/reopen-complaint-ownership

Conversation

@Janani-bn

Copy link
Copy Markdown
Owner

What changed?

Changing a claimed complaint back to Pending kept its previous volunteer assignment, so another volunteer got 409 when trying to claim it. Reset the claimed-by and resolved-by fields in the same database update when a complaint is reopened. Other status updates keep their existing ownership fields.

Testing

  • Added 5 route-level regressions using real authentication middleware and SQLite: claiming after reopen, reopening a resolved complaint, active-claim protection, admin-only status changes, and unchanged ownership on other/invalid transitions.
  • Confirmed the 2 reopen regressions fail before the fix and pass after it.
  • Backend: 92 tests pass.
  • Frontend: 41 tests pass.
  • Production build passes; existing bundle-size warning remains.
  • git diff --check passes.

Copilot AI balanced review requested due to automatic review settings November 15, 2026 07:50
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
civic-fix Ready Ready Preview Nov 15, 2026 7:51am UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Janani-bn
Janani-bn merged commit bf5df97 into main Nov 15, 2026
5 checks passed
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.

2 participants