-
Notifications
You must be signed in to change notification settings - Fork 32
CV3-85 Add device downtime to report data #518
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
base: develop
Are you sure you want to change the base?
Conversation
f90fb91
to
cbe26d5
Compare
7341118
to
8f9a314
Compare
Please update the "How to test" section of your PR. |
bookings = AllAnalyticsHelper.count_bookings_within_period(events, date_pattern, string_date) # noqa | ||
bookings = AllAnalyticsHelper.count_bookings_within_period( | ||
events, date_pattern, string_date | ||
) # noqa |
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.
You don't need the "# noqa" at the end of this line.
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.
Done. Thank you for the feedback @adafia
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.
Good job @raymond42, it looks good. Just attend to the comments I made and revert back to me.
8f9a314
to
8b6b93a
Compare
Oh yes. Done. Thank you @adafia |
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.
Good job @raymond42, it looks good. Just attend to the comments I made and revert back to me.
Thank you @adafia. All done
d95e13e
to
047a21d
Compare
- add helper function for getting devices analytics - add helper function for calculating downtime and convert it to human readable date time - add query that retrieves the devices analytics including downtime of the devices [Delivers CV3-85]
047a21d
to
0965a68
Compare
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.
Good work on the PR @raymond42. It looks fine to me.
Description
When the analytics report data are retrieved, it should also include the downtime of the device i.e the time the device has been not used.
Type of change
Please select the relevant option
How Has This Been Tested?
How to Test
code climate
report to see if any file from the fixtures folder violates thefile-line-limit
readme.md
file on running tests. Check to see if tests run successfullyChecklist
How to Test
URL:
http://localhost:8000/mrm
HTTP:
POST
JIRA
CV3-85