opensrp / opensrp-client-reveal

OpenSRP Client Reveal App
Other
7 stars 8 forks source link

Task Generation Issue on Thailand Preview APK #1524

Closed samkanga closed 3 years ago

samkanga commented 3 years ago

There is inconsistent task generation (English APK version 5.3.26) when a plan has the Bednet Distribution Action and when it does not have the action. When the action is selected tasks appear for the different structures (See screenshot 1 below with pink structures) and when the action is removed, structures appear in grey and yellow colors. The latter suggests that there are tasks lost of structures not registering existence of household members. (See screenshot 2 below). This is based on the plans with ids 37379261-8b97-58eb-9cc5-22b0bc0a7c1d without bednet action and 50c4504c-4877-5c3b-afac-3f10e66ac2f7 - With Bednet Action.

Screenshot 1: image

Screenshot 2: image

However, one cannot select the pink structures and it's returning the error Failed to Fetch Family Details See screen 3 below. image

Rkareko commented 3 years ago

From the db both plans appear to have similar numbers of BCC, RACD Register Family and Blood Screening tasks

select count(*), code from core.task_metadata where plan_identifier = '37379261-8b97-58eb-9cc5-22b0bc0a7c1d' GROUP by 2 order by 1 ;
 count |         code         
-------+----------------------
     1 | BCC
    81 | RACD Register Family
  1051 | Blood Screening

select count(*), code from core.task_metadata where plan_identifier = '50c4504c-4877-5c3b-afac-3f10e66ac2f7' GROUP by 2 order by 1 ;
 count |         code         
-------+----------------------
     1 | BCC
    82 | RACD Register Family
   209 | Bednet Distribution
  1051 | Blood Screening

Next step is to investigate what is happening on the app

samkanga commented 3 years ago

This has been resolved.