-
Notifications
You must be signed in to change notification settings - Fork 14
[OGUI-1840 & OGUI-1841] Refactor the response object of retrieveRunStatus
#3229
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
[OGUI-1840 & OGUI-1841] Refactor the response object of retrieveRunStatus
#3229
Conversation
…`retrieveRunInformation`
|
The failing test is resolved in: #3230 |
retrieveRunStatusretrieveRunStatus
graduta
left a comment
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.
Nice progress! I added some comments for you to review
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.
Given that Bookkeeping service is now returning more information, your tests should also be testing that.
Try to update the mock responses with fields that are not to be used so that you test here that your method only keeps fields that are intended
| * - RunStatus.ONGOING if the run is ongoing | ||
| * - RunStatus.ENDED if the run has completed (has timeO2End) | ||
| * - RunStatus.NOT_FOUND if there was an error or data is not available | ||
| * @returns {Promise<object>} - Returns a promise that resolves to the run information: |
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.
This return doc would go well in a typedef file
| definition, | ||
| runQuality, | ||
| lhcBeamMode, | ||
| detectorQualities, |
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.
As detectorQualities will probably be used with a map function to map to components, I think it would be good to add a default of [] in case bookkeeping fails to return you an expected value
…bject-of-retrieveRunStatus
I have JIRA issue created
retrieveRunStatusis renamed toretrieveRunInformationrunStatus: this is the field created right now by QCG and should be kept to ensure front-end compatibilitystartTimeendTimeenvironmentIddefinitionrunQualitylhcBeamModedetectorQualitiesFilterServiceFilterController