Open
Conversation
3896f73 to
4425b3f
Compare
thomasleese
reviewed
Feb 24, 2026
4425b3f to
e602b73
Compare
Add support for sessions to support outbreaks. Jira-Issue: MAV-2073
This allows users to specify that the session should use outbreak-style notifications. Jira-Issue: MAV-2073
Jira-Issue: MAV-2073
When showing session details include consent request style if the session includes the MMR programme. Jira-Issue: MAV-2073
When a session is MMR and flagged as "outbreak", send consent requests specific to outbreaks. Jira-Issue: MAV-2073
This allows the code to check for sessions that support outbreak without having to be mmr-specific. It should allow us to support outbreaks for different programmes in the future. Jira-Issue: MAV-2073
a49b8dc to
5afa2dd
Compare
thomasleese
approved these changes
Feb 25, 2026
| class AddOutbreakToSessions < ActiveRecord::Migration[8.1] | ||
| def change | ||
| add_column :sessions, :outbreak, :boolean, default: false | ||
| Session.update_all(outbreak: false) |
Contributor
There was a problem hiding this comment.
For the migration to be reversible you'll need to add this:
Suggested change
| Session.update_all(outbreak: false) | |
| reversible do |dir| | |
| dir.up do | |
| Session.update_all(outbreak: false) | |
| end | |
| end |
Collaborator
Author
There was a problem hiding this comment.
Oh interesting. I tried a rollback locally and it worked. I wonder if I missed something or has this changed?
I'll have a look once I'm in the ofc.
Contributor
There was a problem hiding this comment.
Oh interesting, I'm surprised it worked, I wonder what it did about the update_all line 🤔
Collaborator
Author
There was a problem hiding this comment.
Ya, I was a little surprised too, tbh. I'll have a closer look, I probably missed something.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add ability to create an MMR(V) session that uses outbreak style consent requests, that is to say, consent requests that are more urgent in tone.
There is a branch with the same name in the testing repo with updated tests to match these changes.
MAV-2073
Screenshots