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

O3-2862 - Queue Module - validate that queue entry falls within visit… #52

Merged
merged 5 commits into from
Feb 15, 2024

Conversation

mseaton
Copy link
Member

@mseaton mseaton commented Feb 13, 2024

… when saving visit

ibacher
ibacher previously approved these changes Feb 14, 2024
@ibacher ibacher dismissed their stale review February 14, 2024 15:14

Only saw last commit

… when saving visit or when saving queue entry
@mseaton mseaton requested a review from ibacher February 14, 2024 20:40
Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mseaton ... nice that you can add in validators for existing objects this way.

Date stopDateTime = visit.getStopDatetime();

QueueEntrySearchCriteria criteria = new QueueEntrySearchCriteria();
criteria.setIsEnded(null);
Copy link
Member

Choose a reason for hiding this comment

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

I assume setting this to null means returns all queues, both those that are ended and those that aren't ended.

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, the default (which I don't love, but the way it is implemented) is to only return active entries by default. So to get all entries, you need to explicitly null out this property :/

…n a visit is stopped, any associated queue entries are ended on the visit stop datetime.
@mseaton mseaton requested a review from mogoodrich February 15, 2024 12:19
Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mseaton

@mseaton mseaton merged commit 6e8bbe9 into main Feb 15, 2024
1 check passed
@mseaton mseaton deleted the O3-2862 branch February 15, 2024 16:49
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.

3 participants