-
Notifications
You must be signed in to change notification settings - Fork 239
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
Add user storage usage to user-devices API #9869
Comments
@andrablaj - in a call with @jkuester earlier today we agreed that this ticket, while satisfying to work on for me, would be PERFECT for a new comer to the CHT. I'm going to work on it a bit to add a section for the "Good first issue" label I've updated the labels , assignee and such accordingly! |
Hello @mrjones-plip , @andrablaj I would like to be assigned this issue |
Wonderful - thanks for your help @najuna-brian ! If you have any questions feel free to ask here or on the forums. |
Thanks @najuna-brian! Additionally, please review the development workflow and the style guide for extra guidance about contributing to the CHT Core. |
Alright please. Thank you |
Is your feature request related to a problem? Please describe.
CHWs can run out of disk space and not know why their device is not performing as expected. Giving administrators an easy way to monitor this would be really helpful
Describe the solution you'd like
Right now there's a user-devices API which has per user information, but does not include used and total storage space on the device. If we add this to this report, it would make an easy way to find this data!
Describe alternatives you've considered
Administrators could either manually check telemetry documents per user in Couch (see
deviceInfo.storage.free
) or they could set up a process like CHT Sync or couch2pg to sync this data to a Postgres database.These are either slow (manually checking) or hard to set up (syncing data), where as the API is built in.
Additional context
Good first issue
This ticket has the Good first issue label! This means it's been especially curated other CHT contributors to be easy to work on for first time contributors.
To succeed on this ticket, please:
test
in the administrative interfacecurl
call to the user-devices API and not it's output:http://medic:password@localhost:5988/api/v2/export/user-devices
- ensure you see the values from the document you created aboveapi/src/services/export/user-devices.js
andddocs/users-meta-db/users-meta/views/device_by_user/map.js
map.js
?Sample telemetry JSON
The text was updated successfully, but these errors were encountered: