Skip to content

Conversation

thomasleese
Copy link
Contributor

This replaces the foreign key association between session attendances and patient sessions to instead link directly to the patient. This is needed as we eventually want to replace the PatientSession model and to do that we need to make sure all foreign keys to it have been replaced.

The functionality should be the same before and after.

Jira Issue - MAV-1820

@thomasleese thomasleese added this to the v3.5.0 milestone Aug 21, 2025
@thomasleese thomasleese requested a review from a team as a code owner August 21, 2025 15:06
@thomasleese thomasleese added the refactor Improving maintainability label Aug 21, 2025
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 816b3ea to 3ea3b89 Compare August 21, 2025 15:18
@thomasleese thomasleese changed the base branch from next to pre-screening-patient-session-foreign-key August 21, 2025 17:11
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 3ea3b89 to 9bf9b77 Compare August 21, 2025 17:11
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 6d90838 to 9a357e9 Compare August 22, 2025 11:56
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 9bf9b77 to 28d20ff Compare August 22, 2025 11:56
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 9a357e9 to a7060f5 Compare August 22, 2025 11:59
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 28d20ff to 1decfc7 Compare August 22, 2025 12:00
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from a7060f5 to dcc2b06 Compare August 22, 2025 13:05
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 1decfc7 to 8cd8065 Compare August 22, 2025 13:14
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from dcc2b06 to 2de8f31 Compare August 22, 2025 13:54
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 2 times, most recently from fc9999e to 2204f0a Compare August 22, 2025 16:21
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 2de8f31 to 758a18e Compare August 26, 2025 11:56
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 2 times, most recently from 5ed15cc to a31eaeb Compare August 26, 2025 12:19
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 758a18e to 9bb24b1 Compare August 26, 2025 14:33
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from a31eaeb to 13808af Compare August 26, 2025 14:34
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 9bb24b1 to fc20fe8 Compare August 26, 2025 14:38
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 13808af to 0b2d95e Compare August 26, 2025 14:38
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from fc20fe8 to 88d2b1a Compare August 27, 2025 12:41
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 2 times, most recently from ee09bce to e6072bb Compare August 27, 2025 12:54
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from 88d2b1a to ae58634 Compare August 27, 2025 13:22
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 2 times, most recently from 8230b95 to a7ca0ce Compare August 27, 2025 13:55
@thomasleese thomasleese force-pushed the pre-screening-patient-session-foreign-key branch from ae58634 to a4e1ce9 Compare August 29, 2025 14:48
Base automatically changed from pre-screening-patient-session-foreign-key to next August 29, 2025 15:02
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 4 times, most recently from f3ac393 to ea672a4 Compare September 4, 2025 13:28
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch 3 times, most recently from 97ec054 to 805bacc Compare September 5, 2025 15:42
This replaces the foreign key association between session attendances
and patient sessions to instead link directly to the patient. This is
needed as we eventually want to replace the PatientSession model and to
do that we need to make sure all foreign keys to it have been replaced.

The functionality should be the same before and after.

Jira-Issue: MAV-1820
@thomasleese thomasleese force-pushed the session-attendance-patient-session-foreign-key branch from 805bacc to 7539761 Compare September 5, 2025 15:42
Copy link

sonarqubecloud bot commented Sep 5, 2025

@thomasleese thomasleese merged commit 6ab1ef8 into next Sep 5, 2025
13 checks passed
@thomasleese thomasleese deleted the session-attendance-patient-session-foreign-key branch September 5, 2025 15:57
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