Skip to content

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Aug 12, 2025

When viewing a patient outside the context of a session, this renders the information for a patient in the context of the pending academic year rather than the current one. This is to make the preparation period easier for users by showing year groups and sessions as they will be starting in September.

JIRA: MAV-1757

This updates the interface of the `Patient#year_group` method to ensure
an academic year is always specified, meaning we're explicit about which
academic year is being used to determine the year group.
This method was only being used in one place, in a controller, so this
moves the code closer to where it's being used which also allows us to
be more intentional about the academic year that is being used.
When viewing a patient outside the context of a session, this renders
the information for a patient in the context of the pending academic
year rather than the current one. This is to make the preparation period
easier for users by showing year groups and sessions as they will be
starting in September.
@thomasleese thomasleese added this to the v2.17.0 milestone Aug 12, 2025
@thomasleese thomasleese requested a review from a team as a code owner August 12, 2025 06:15
@thomasleese thomasleese added the design tweak Small update to content or layout label Aug 12, 2025
@thomasleese thomasleese enabled auto-merge August 12, 2025 06:15
Copy link

@tvararu tvararu temporarily deployed to mavis-pr-4244 August 12, 2025 06:17 Inactive
Copy link
Contributor

@jhenderson jhenderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasleese thomasleese merged commit e8f879d into next Aug 12, 2025
13 checks passed
@thomasleese thomasleese deleted the use-pending-academic-year branch August 12, 2025 08:37
MartinVanIJcken pushed a commit that referenced this pull request Aug 12, 2025
Use pending academic year instead of current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design tweak Small update to content or layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants