Skip to content

[ENG-11457] require at least 1 subject for draft and usual registrations#11786

Merged
brianjgeiger merged 3 commits into
CenterForOpenScience:feature/pbs-26-13from
ihorsokhanexoft:fix/ENG-11457
Jun 29, 2026
Merged

[ENG-11457] require at least 1 subject for draft and usual registrations#11786
brianjgeiger merged 3 commits into
CenterForOpenScience:feature/pbs-26-13from
ihorsokhanexoft:fix/ENG-11457

Conversation

@ihorsokhanexoft

Copy link
Copy Markdown
Contributor

Ticket

https://openscience.atlassian.net/browse/ENG-11457

Purpose

Draft registrations and usual registration should have at least 1 subject

Changes

Added validation

@sh-andriy sh-andriy 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.

LGTM. Validation's in the right spot (register + both set_subjects paths) and the relationship endpoint is replace-only so there's no DELETE bypass. Error maps to a clean 400. Approving.

@brianjgeiger brianjgeiger changed the base branch from feature/pbs-26-9 to feature/pbs-26-13 June 26, 2026 14:38
@brianjgeiger

Copy link
Copy Markdown
Collaborator

@ihorsokhanexoft Please rebase onto feature/pbs-26-13 to get rid of the extra commits from feature/pbs-26-9

@brianjgeiger brianjgeiger merged commit cb10c39 into CenterForOpenScience:feature/pbs-26-13 Jun 29, 2026
8 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.

3 participants