-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cold chain: Temperature logs synced to central server are incompatible with existing Dashboard and Notify #2686
Comments
There is om_datetime field, which should be a UTC timestamp string, we should be using that in dashboards etc.. There are quite a few layers to the cake, cca -> omsupply -> msupply -> dashboard, and on top of that msupply stores date and time separately, and in it's own 4d format that's hard to truly understand. |
Thanks @andreievg - yeah we probably need to make sure that anything that uses those Open mSupply temperature datetimes are working correctly - off the top of my head:
Although I think the last 2 are edge cases as hopefully we won't have to support hybrid Open mSupply / mSupply Desktop systems for too long |
@jmbrunskill - Notify will need to be updated to be able to cater for both CCA > mSupply Desktop and CCA > Open mSupply > mSupply Desktop. How should we approach that? |
It should probably use the om_datetime if available, once that field exists is it set for every record? Or only on records from open-mSupply? I've created a ticket in notify for this msupply-foundation/notify#282 |
triage: Preference for mSupply to also populate that field when cold chain app sync the data to it. And then updated Dashboards/Notify to reflect this. I think this would be a more reliable and aligned solution going forward. TODO: Create issue in mSupply for this + Dashboard, update existing servers. |
What went wrong? 😲
Temperature logs display on a remote server with the correct time zone, but after being synced to the central server they are displaying with an incorrect time zone (think perhaps no time zone is being applied)
Temperature logs on Cold Chain App:
Temperature logs on Open mSupply remote server:
Temperature logs on central server:
Expected behaviour 🤔
Time zone should be preserved from CCA through to central server.
How to Reproduce 🔨
Steps to reproduce the behaviour:
Your environment 🌱
Trello: https://trello.com/c/AjKVZuTh/242-temperature-logs-coming-across-from-oms-to-central-server-with-incorrect-timezone
The text was updated successfully, but these errors were encountered: