opensrp / opensrp-client-reveal

OpenSRP Client Reveal App
Other
7 stars 8 forks source link

ADR forms are showing data from previous plans #1413

Open isabelcshaw opened 3 years ago

isabelcshaw commented 3 years ago

When a user selects Record ADR on a new plan for a child who had ADR recorded in a previous plan, the form opens with data from the previous plan. Children data on recorded ADRs should not persist across plans but should refresh with each new plan. It appears that the child's ADR information is being shared across plans (I had previously submitted adverse reactions for the children in an older plan).

Steps:

  1. Create a brand new plan (my most recent test plan: https://web.reveal-stage.smartregister.org/intervention/mda-point/report/ae60c93d-28eb-57f5-80bf-fe5181917cc8)
  2. Clear data and log into Android app
  3. See children with no tasks completed
  4. Complete tasks
  5. Open ADR form to record an ADR
  6. See form already populated
  7. Hit save and see an error popup at the bottom of the screen

Expectation is that every child's ADR form should be empty at the start of a new plan.

samkanga commented 3 years ago

@isabelcshaw I have not been able to reproduce this bug. I went through the steps provided above and the Record ADR form opened a blank form. Could you confirm if there is anything I may have missed? Below is a screenshot of the form I got when I clicked on the Record ADR form to a child I had completed the Record Dose form. image cc: @Naima-Bashir

isabelcshaw commented 3 years ago

@samkanga to which school was your plan assigned? it occurs when the children have a previously recorded ADR, so the test needs to take place on children who meet that criteria. The plan I shared was on "Test Lomahasha - Emafusini Nazarene" and you can see the children who have had an ADR there. CHAI also reported this same issue.

I think this may need @rkodev to provide some input.

samkanga commented 3 years ago

@isabelcshaw I have added a new plan to the area Test Lomahasha - Emafusini Nazarene see screenshot below. I completed a Record Dose task for a child named Virginia Woolf and then selected the AddADR form. It still returned an empty form. image

rkodev commented 3 years ago

@samkanga @isabelcshaw I've been able to reproduce this issue. I'm working in a new release to resolve it