-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] feat: Call should end explicitly instead of endCall date #668
base: develop
Are you sure you want to change the base?
Conversation
|
@bolmsten you can double check this now and confirm if the changes are correct. |
|
This looks good for ESS, can STFC verify that this would work for them as well? |
…om/UserOfficeProject/user-office-backend into SWAP-2465-end-call-after-cycle-end
| /** | ||
| * NOTE: We are comparing dates instead of using the call_ended flag, | ||
| * because the flag is set once per hour and we could have a gap. | ||
| * TODO: Maybe there is a need to use the timezone setting here but not quite sure about it. Discussion is needed here! |
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 would have thought this would be fine as new Date().toISOString() and start_call and end_call is all in UTC
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.
@simonfernandes thank you I can remove the comment then. 🙂
| * TODO: Maybe there is a need to use the timezone setting here but not quite sure about it. Discussion is needed here! | ||
| */ | ||
| const currentDate = new Date().toISOString(); | ||
| if (filter?.isEnded === true) { |
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.
Is the filter value isEnded used? If no service is using it we could consider removing it.
Description
Call should become inactive when the cycle ends not on call end date. Added
is_activeflag on the call to be able to explicitly deactivate/activate calls.Motivation and Context
Previously we were making a call inactive on the call ended date.
How Has This Been Tested
Fixes
https://jira.esss.lu.se/browse/SWAP-2465
Depends on
Frontend PR: UserOfficeProject/user-office-frontend#956
Tests included/Docs Updated?