Skip to content
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

"Unexpected Error" Dialog due to global database failure should not be optional #9725

Open
kennsippell opened this issue Jan 3, 2025 · 3 comments
Labels
Type: Improvement Make something better

Comments

@kennsippell
Copy link
Member

kennsippell commented Jan 3, 2025

What feature do you want to improve?
Image

This dialog box fires after a Global Database Failure.

When investigating user complaints for eCHIS Kenya Digital Payment, 9 different support requests were all due to the CHP having a global database failure, ignoring this dialog, and continuing to use the app. This manifests in a host of different ways which are difficult to distinguish from legitimate bugs.

There are errors saving forms, loading forms, loading tabs, selecting contacts, etc. The bugs are reported in every area of the app and it is very hard to distinguish these global database failures from legitimate problems. The net result is that our tech support team stops investigating a lot of problems.

It is a bit difficult to instruct CHPs to reload the app through their CHA. Often we tell them to restart their phone since it is an easy single step and it is easy to confirm it was done properly.

Describe the improvement you'd like
This dialog shouldn't be optional. Their session is over and unrecoverable. It should be a modal dialog with the only path forward being to reload.

Describe alternatives you've considered

Additional context

@kennsippell kennsippell added the Type: Improvement Make something better label Jan 3, 2025
@kennsippell kennsippell changed the title "Unexpected Error" Dialog should not be optional "Unexpected Error" Dialog due to global database failure should not be optional Jan 3, 2025
@dianabarsan
Copy link
Member

Do we have a notion of how often does this happens? This is unrelated to your suggestion of changing the options that the app is offering for the user.

@kennsippell
Copy link
Member Author

kennsippell commented Jan 7, 2025

Are you asking about the rate of global database failures for eCHIS? Or asking how often the user dismisses the dialog?

If you clarify, I can do something more interesting. But here is the number of feedback documents indicating that the IDBDatabase global database failure has occurred on some randomly sampled days on Nairobi instance:

Day Number of Feedback Docs
Nov 15, 2024 498
Dec 1, 2024 591
Jan 1, 2025 2292
Jan 2, 2025 2136
Jan 3, 2025 1324

curl -X POST "https://nairobi.echis.go.ke/medic-users-meta/_find" -H 'Content-Type: application/json' -d '{ "limit": 100000, "fields": ["_id"], "selector": { "type": { "$eq": "feedback" }, "meta.time": { "$gte": "2025-01-02T", "$lt": "2025-01-03T" }, "log": { "$elemMatch": { "arguments": { "$regex": ".*IDBDatabase.*" } } } } }'

@dianabarsan
Copy link
Member

Those numbers are quite alarming. Especially for days when I would assume no health workers would be active due to holidays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Make something better
Projects
None yet
Development

No branches or pull requests

2 participants