Skip to content

feat(candidate): add registration cohort support - #11181

Merged
driusan merged 7 commits into
aces:mainfrom
Montekkundan:montek/11133-registration-cohort
Oct 26, 2026
Merged

driusan merged 7 commits into
aces:mainfrom
Montekkundan:montek/11133-registration-cohort

Conversation

@Montekkundan

@Montekkundan Montekkundan commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Brief summary of changes

  • Adds a configurable Registration Cohort field when creating a new candidate.
  • Validates that the selected registration cohort belongs to the candidate’s registration project.
  • Stores the registration cohort as an optional candidate field.
  • Exposes registration project and cohort information through the Candidates API and Candidate Parameters.
  • Displays the registration cohort in Access Profile, including when no visit has been started for that cohort.
  • Adds the database schema updates, upgrade patch, Raisinbread defaults, translations, documentation, and automated test coverage.
image image

Testing instruction

  • Enable the useRegistrationCohort configuration setting and open /new_profile/.
  • Select a project and confirm Registration Cohort only lists cohorts belonging to that project.
  • Change the selected project and confirm the cohort selection resets and its options update.
  • Create a candidate with a registration cohort and confirm the value is saved.
  • Open Candidate Parameters and confirm Registration Project and Registration Cohort are displayed.
  • Open Access Profile for the candidate and confirm the registration cohort appears even when no visit has been started for that cohort.
  • Disable useRegistrationCohort and confirm the Registration Cohort field is hidden from New Profile.
  • Run the Candidate, Candidates API, New Profile, Candidate Parameters, and Candidate List tests.

Link(s) to related issue(s)

@github-actions github-actions Bot added Language: SQL PR or issue that update SQL code RaisinBread PR or issue introducing/requiring improvements to the Raidinbread dataset Language: PHP PR or issue that update PHP code Language: Javascript PR or issue that update Javascript code Module: api PR or issue related to api module Module: candidate_list PR or issue related to candidate_list module Module: candidate_parameters PR or issue related to candidate_parameters module Module: new_profile PR or issue related to new_profile module labels Aug 25, 2026
@skarya22 skarya22 added the State: Needs work PR awaiting additional work by the author to proceed label Aug 26, 2026
@github-actions github-actions Bot added the Module: dashboard PR or issue related to dashboard module label Aug 27, 2026
@skarya22 skarya22 removed the State: Needs work PR awaiting additional work by the author to proceed label Aug 31, 2026
@skarya22 skarya22 assigned GeorgeMurad and unassigned Montekkundan Aug 31, 2026
@skarya22
skarya22 requested a review from GeorgeMurad September 3, 2026 15:05

@GeorgeMurad GeorgeMurad 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

Comment thread raisinbread/test/api/LorisApiCandidates_v0_0_3_Test.php Outdated
Comment thread modules/new_profile/locale/new_profile.pot Outdated
@github-actions github-actions Bot added the Multilingual Any tasks related to making LORIS multilingual label Oct 7, 2026
@Montekkundan
Montekkundan requested a review from driusan October 7, 2026 15:36
Comment thread raisinbread/test/api/LorisApiCandidatesTest.php Outdated
@Montekkundan
Montekkundan requested a review from driusan October 14, 2026 18:15
@driusan

driusan commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

@Montekkundan This has conflicts

@driusan
driusan merged commit 8452bb4 into aces:main Oct 26, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Language: PHP PR or issue that update PHP code Language: SQL PR or issue that update SQL code Module: api PR or issue related to api module Module: candidate_list PR or issue related to candidate_list module Module: candidate_parameters PR or issue related to candidate_parameters module Module: dashboard PR or issue related to dashboard module Module: new_profile PR or issue related to new_profile module Multilingual Any tasks related to making LORIS multilingual RaisinBread PR or issue introducing/requiring improvements to the Raidinbread dataset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Candidate_parameters/new_profile/candidate_list] Add Registration Cohort Functionality

4 participants