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

IRONN-270 hotfix. #4423

Merged
merged 7 commits into from
Nov 13, 2024
Merged

IRONN-270 hotfix. #4423

merged 7 commits into from
Nov 13, 2024

Conversation

pbugni
Copy link
Collaborator

@pbugni pbugni commented Nov 8, 2024

See also https://movember.atlassian.net/browse/IRONN-270

The TimeoutLock used to prevent concurrent EMPRO trigger states overwrites was expiring prior to completion.

Elaborate chain of events needed to reproduce the problem, but the existing 60 second timeout for any single user's updates to their trigger_states->triggers data was inadequate when other jobs (such as update_patients_task) came in before completion of trigger processing.

The end result was an area of code intended to be locked in a critical section, would obtain a fresh lock even if one was in use, when it had been longer than the expiration time.

This PR gives more than adequate space (2 hours rather than 60 seconds).

ivan-c and others added 7 commits October 10, 2024 10:44
Address a stream of 400 errors (CSRF token is missing) related to saving
patientlist table preferences.
Cause:
I think the error stemmed from when an ajax request was first made to
retrieve patient data, which is precedes by a call to save table
preferences, the document DOM was not ready (which includes the value of
CSRF token in an hidden element) - hence the missing CSRF token error.
Fix:
To add check for DOM readiness before the request to save table
preferences is made.

---------

Co-authored-by: Amy Chen <clone@cesium.cirg.washington.edu>
accidentally merged
[this](#4413) into Master,
reverted that. Will merge this into the `develop` branch.

Co-authored-by: Amy Chen <clone@cesium.cirg.washington.edu>
#4419)

Same PR as #4414, but this one correctly merges into develop.
…ates overwrites was expiring prior to completion.
@pep8speaks
Copy link

Hello @pbugni! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 302:101: E501 line too long (108 > 100 characters)

@pbugni pbugni requested review from mcjustin and ivan-c November 8, 2024 00:08
Copy link
Member

@ivan-c ivan-c left a comment

Choose a reason for hiding this comment

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

Looks good; not a big deal, but should merge into master if it's a hotfix

@pbugni pbugni changed the base branch from develop to master November 13, 2024 19:45
@pbugni pbugni merged commit 89eb8ef into master Nov 13, 2024
2 checks passed
@pbugni pbugni deleted the hotfix/IRONN-270 branch November 13, 2024 20:35
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.

5 participants