Skip to content

B8 — declined assignment re-opens its slot - #215

Merged
tomqwu merged 1 commit into
mainfrom
overnight-B8-decline-reopen
May 19, 2026
Merged

tomqwu merged 1 commit into
mainfrom
overnight-B8-decline-reopen

Conversation

@tomqwu

@tomqwu tomqwu commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • A declined assignment no longer counts as filled in _open_shifts or the /v/open claim capacity re-check, so the freed role re-opens for self-serve.
  • The slot stays hidden from the volunteer who declined (still "on" the event via the declined row) and becomes claimable by anyone else.

Test plan

  • tests/web/test_decline_reopen.py — confirmed hides slot, declined reopens + is claimable, declined doesn't consume claim capacity
  • B1 regression: tests/web/test_open_shifts.py re-run clean
  • Committed e2e tests/e2e/test_decline_reopen.py — Alice claims → declines → Bob sees the reopened slot and claims it
  • Local: full tests/e2e/ 6 passed; black --check api tests + ruff check api tests clean; contract + OpenAPI snapshot unchanged
  • CI: lint/type/test + blocking e2e lane green

Closes #214 · part of #196 (Phase B).

🤖 Generated with Claude Code

A declined assignment now no longer counts toward filled capacity in
_open_shifts and the open-claim capacity re-check, so the freed slot
re-appears in /v/open for another volunteer to self-claim (it stays
hidden from the person who declined, who is still on the event).

Tests: tests/web/test_decline_reopen.py (confirmed hides slot,
declined reopens + claimable, declined doesn't consume claim capacity;
B1 open-shifts regression re-run clean) and committed e2e
tests/e2e/test_decline_reopen.py (Alice claims → declines → Bob sees
and claims the reopened slot).

Closes #214

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tomqwu tomqwu added this to the Overnight — e2e workflows milestone May 19, 2026
@tomqwu tomqwu mentioned this pull request May 19, 2026
16 tasks done
@tomqwu
tomqwu merged commit 2059e66 into main May 19, 2026
5 checks passed
@tomqwu
tomqwu deleted the overnight-B8-decline-reopen branch May 19, 2026 17:08
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.

B8 — decline reopens the slot for self-serve/swap

1 participant