-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
… when saving visit
… when saving visit
… when saving visit or when saving queue entry
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @mseaton
… when saving visit