onaio / Reveal-Thailand

Repository to raise & track issues, share code and documentation, and manage the Reveal Thailand Handover and Support Project (2022-2023)
0 stars 0 forks source link

Root Cause Analysis - Data from plan is not syncing to web and dashboard #12

Closed AngelaKabari closed 1 year ago

AngelaKabari commented 1 year ago

Describe the issue

A user reported an error where they filled in the data, then sync completed, but the corresponding data was not displaying on Reveal Web dashboard. The aforementioned issue was resolved by manually uploading the data from a db dump created by the user before they logged out. See Issue #1 for more details.

We are now trying to establish whether the data not showing on the dashboard was caused by a user error or software issue.

How is this expected to work?

To evaluate the cause of the issue, we require an OpenSRP Engineer to write a query to check the Reveal Thailand DB for plans that don’t have any data synced to them and are expired plans. This will help us figure out if Issue #1 was a software or user problem, because once we identify such plans, we can ask the users on those plans to sync their data. If other users can successfully sync and have the information show up on the dashboard then it was a user problem. If they can’t, then it is likely a software issue that we will require to replicate and then undertake a deep dive to resolve.

Please share other relevant information about the issue

None

ekigamba commented 1 year ago

Queries used

ekigamba commented 1 year ago

Here are the tabulated results:

Both provide a completion percentage which is the a percentage of the completed tasks for a plan. One of the files has the results sorted by completion percentage while the other is sorted by plan end date.

The assumption is we do not have any tasks generated on the devices. The completion percentage should help review plans that were completed on ground but have little to no data available on the server

@AngelaKabari

AngelaKabari commented 1 year ago

Thanks for these @ekigamba. Is is possible for you to include a column with the username in the results? This will make it easier for DVBD to ask the health workers with plans that were completed on ground but have little to no data available on the server to sync their devices.

This will then let us test the hypothesis that Issue #1 was indeed a user error.

ekigamba commented 1 year ago

plan_tasks_count-order_by_perc_complete_2023-01-06-22_38.txt

plan_tasks_count-order_by_end_period_2023-01-06-19_58.txt

@AngelaKabari Here are the tabulated results with the task owner as the first column. Note that a plan can have multiple providers assigned/owners. I hope this helps

AngelaKabari commented 1 year ago

Indeed it does @ekigamba. Let me share this with the DVBD team...

pongthepm commented 1 year ago

I have sent the file plan_tasks_count-order_by_end_period_2023-01-06-19_58.txt with Namkang, the BVBD staff for checking. Last week, I asked her if BVBD still have the problem. She said "Yes", they still have. She will capture the screens of the problems for me (I have been waiting that). Also, she will ask the users to record a video when they sync the data next round of the plan.

AngelaKabari commented 1 year ago

Thanks @pongthepm. We shall wait to hear from Namkang.

pongthepm commented 1 year ago

She added she will tell the sites to change the plan status from inactive to cancelled. For the completed plans, they should be changed to completed.

pongthepm commented 1 year ago

Reported problem of the reveal web @AngelaKabari

plan: B1 ยายเภา (8606011901) 2023-01-23 กิจกรรม 29.055 M-Health id: 18fa167f-ae5f-5baf-9567-74e15c7835c6

user: 11.4.5-1

Detail: The user entered and sync the data successfully, but there is no information on the web. The user cannot check the work plan progress and activies. Howerver, the information is showing on the dashboard. Please see the attached files.

Thank you, Pongthep 1-pic 2-pic 3-pic 4-pic

AngelaKabari commented 1 year ago

I confirm receipt of this information @pongthepm - we shall review and get back to you in the course of tomorrow.

AngelaKabari commented 1 year ago

Hello @lincmba,

It seems that we are experiencing this error again.

Could you please take a look at the plan with the details below and re-run the ETL to update the raw_tasks in the canopy warehouse, and thereafter update the tasks data being served by the task_structures_materialized_view?

lincmba commented 1 year ago

@AngelaKabari, diognosed this with the help of @HusnaHariz and @p-netm. Found out the following.

This usually means that NiFi failed to sync the entity type (jurisdiction and plan). This was therefore resolved with the following steps

This seems to have resolved the issue. Kindly review

AngelaKabari commented 1 year ago

@lincmba I confirm that the work plan progress and activities are now displaying as they should on the dashboard.

@pongthepm please check with DVBD to confirm that the issue has been resolved satisfactorily?

pongthepm commented 1 year ago

I told her to check it. Still waiting her reply.

pongthepm commented 1 year ago

@AngelaKabari Namkang told me that the problem is now fixed for her. Thank you for your support. Pongthep

AngelaKabari commented 1 year ago

Great, I'm glad to hear that @pongthepm. Please could you check with Namkang if there are any other users having sync issues so we can fix those too?