Skip to content

Conversation

thomasleese
Copy link
Contributor

This makes a number of changes to support end-to-end testing of the rollover process in training. See individual commits for more details.

The overall plan to perform the end-to-end testing would be to:

  • Deploy this branch to QA, which disables the preparation period.
  • Run script/rollover_training/set_up.sh
  • Test it's possible to log in as nurse.rollover@example.com
  • Run script/rollover_training/generate.sh to create a cohort import
  • Import the cohort and test it looks right
  • Deploy a new branch to QA which enables the preparation period
  • Run script/rollover_training/create_sessions.sh to set up the sessions for the next academic year

This replaces the Rake task with a command, part of the Mavis CLI,
that allows users to onboard new teams using a path to a YAML
configuration file.
The ODS code now belongs in an `organisation` block and the `team` block
needs a workgroup.
This adds an onboarding configuration file that can be used to set up a
team for end to end testing the rollover functionality.
This will temporarily turn off the preparation period in QA to allow us
to end-to-end test rollover by starting with the preparation period
disabled. We could temporarily set the value in AWS, but this allows us
to continue deploying changes to QA while the testing is happening.
By defining the classes as `Generate::Class`, we can avoid the
indentation caused by the `module Generate` line.
This updates the interface of the `Generate::CohortImports` class to
match the other classes in the `Generate` module. Specifically it's
updated to take a team and a programme, and the CLI class is responsible
for parsing these values.
This allows testing cohorts that cut across multiple programmes enabling
a more complete end to end test.
This ensures that when printed at the end of the command it matches the
time exactly and therefore the right path is printed.
This adds a script that makes it possible to create cohort imports for
the rollover training team.
This adds a script that makes it possible to create sessions for
the rollover training team.
@thomasleese thomasleese added this to the v2.16.0 milestone Aug 10, 2025
@thomasleese thomasleese added the operations Improving live support label Aug 10, 2025
@thomasleese thomasleese requested review from a team as code owners August 10, 2025 15:10
@thomasleese thomasleese enabled auto-merge August 10, 2025 15:10
Copy link

@tvararu tvararu temporarily deployed to mavis-pr-4226 August 10, 2025 15:13 Inactive
@thomasleese thomasleese merged commit fb4a605 into next Aug 11, 2025
13 checks passed
@thomasleese thomasleese deleted the training-rollover-preparation branch August 11, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operations Improving live support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants