Skip to content

WAIT: Accept "additional_age_groups" as a legacy age-group field identifier#1879

Open
maebeale wants to merge 1 commit into
mainfrom
maebeale/age-groups-legacy-identifier
Open

WAIT: Accept "additional_age_groups" as a legacy age-group field identifier#1879
maebeale wants to merge 1 commit into
mainfrom
maebeale/age-groups-legacy-identifier

Conversation

@maebeale

Copy link
Copy Markdown
Collaborator

🤖 PR, suggested 👤 review level: 📖 Read — small, contained identifier-recognition change

What & why

Production forms whose age field used the pluralized identifier additional_age_groups silently failed — the field rendered no options, rejected submissions, and never tagged age groups, because the code only knew the singular additional_age_group.

Approach

  • Lift the age-group identifiers into PRIMARY/ADDITIONAL_AGE_GROUP_FIELD_IDENTIFIERS constants on FormField (mirroring the sector legacy-coverage pattern) and derive DYNAMIC_FIELD_CATEGORY_TYPES from them, so both singular and plural resolve.
  • EventHelper and Person reference the shared constant; PublicRegistration collects age IDs across the identifier list.

No migration — purely additive identifier recognition.

Some production registration forms carry the pluralized identifier
"additional_age_groups" on the additional age-group field. The code only
ever recognized the canonical singular "additional_age_group", so on those
forms the field rendered with no options, rejected submissions, and never
tagged age groups — failing silently end to end.

Lift the hardcoded age-group identifiers into PRIMARY/ADDITIONAL identifier-
list constants (mirroring the sector legacy-coverage pattern) and accept the
plural alias everywhere they resolve: dynamic options, submission validation,
tagging, profile display, and the form-submission show page.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@maebeale maebeale marked this pull request as ready for review June 23, 2026 10:09
@maebeale maebeale changed the title Accept "additional_age_groups" as a legacy age-group field identifier WAIT: Accept "additional_age_groups" as a legacy age-group field identifier Jun 23, 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.

1 participant