Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug found in qb_timeline overlap check #4368

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

pbugni
Copy link
Collaborator

@pbugni pbugni commented Mar 12, 2024

between protocol v3 and v5, additional months were added, i.e. month 33.

if v3 month 36 didn't have any committed work and it's time to change protocols for the user, v5 month 33 should follow v3 month 30.

the code looking for this case had an extra check which prevented the above from functioning, in the rare case where v3 month 30 ended before v5 month 33 starts.

this was discovered with the new withdrawal handling in adherence data, as the insertion of the withdrawal row could not predictably insert before the time point just after withdrawal, when the timeline was found to have such an overlap.

33) added by v5.  the assumption that the resulting month 33 would start
before the v3 month 30 is not always the case.
@pbugni pbugni requested review from ivan-c and mcjustin March 12, 2024 14:56
@pbugni pbugni merged commit 851cf44 into develop Mar 12, 2024
2 checks passed
@pbugni pbugni deleted the bugfix/overlap-detail-v3v5 branch March 12, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants