Skip to content

Conversation

thomasleese
Copy link
Contributor

This extracts a number of commits related to delegation from #4393 so they can be used in a number of different delegation PRs. This should have no user-facing changes to the service.

This ensures that when running locally it's possible to log in as a
healthcare assistant.
This makes it possible to sign in as a healthcare assistant using the
mock CIS2 authentication method for testing.
This adds a method and a scope on the programme and session models
that can be used in various parts of the service to decide whether
to display options related to delegation. At the moment only flu
programmes support delegation, but in the future this may change.
This adds a method which can be used to determine whether PGD supply is
enabled for a session. At the moment this works the same as whether
delegation is supported, as we know that every SAIS team supports PGD
supply delegation, however by having this method it allows us to change
this in the future easily.
@thomasleese thomasleese added this to the v3.3.0 milestone Aug 26, 2025
@thomasleese thomasleese requested a review from a team as a code owner August 26, 2025 11:29
@thomasleese thomasleese added the refactor Improving maintainability label Aug 26, 2025
@thomasleese thomasleese enabled auto-merge August 26, 2025 11:29
Copy link

@thomasleese thomasleese merged commit 2bfd795 into next Aug 26, 2025
13 checks passed
@thomasleese thomasleese deleted the common-delegation-functionality branch August 26, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improving maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants