Skip to content

#54 Filter nominees by active cycle on nomination form#59

Merged
b-at-neu merged 1 commit intodevfrom
54-filter-nominees-by-active-cycle
Apr 10, 2026
Merged

#54 Filter nominees by active cycle on nomination form#59
b-at-neu merged 1 commit intodevfrom
54-filter-nominees-by-active-cycle

Conversation

@b-at-neu
Copy link
Copy Markdown
Collaborator

Summary

  • Scopes the nominees list in getNominationFormData() to cycleId: activeCycle.id so only current-cycle applicants appear on the nomination form
  • Applies the same cycleId filter to the constituencies query in the same function
  • Moves getActiveCycle() before nominee validation in createNomination() and scopes the lookup to the active cycle, preventing cross-cycle nominee validation

Closes #54

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@b-at-neu b-at-neu self-assigned this Apr 10, 2026
@b-at-neu b-at-neu merged commit aa42efb into dev Apr 10, 2026
@b-at-neu b-at-neu deleted the 54-filter-nominees-by-active-cycle branch April 10, 2026 17:46
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.

Remove past nominees from previous cycle in current cycle

1 participant