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

ADR forms are showing data from previous plans #1413

Open
isabelcshaw opened this issue May 13, 2021 · 4 comments
Open

ADR forms are showing data from previous plans #1413

isabelcshaw opened this issue May 13, 2021 · 4 comments
Assignees
Labels
bug Something isn't working Priority: High A High Priority Issue

Comments

@isabelcshaw
Copy link

isabelcshaw commented May 13, 2021

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.

@isabelcshaw isabelcshaw added bug Something isn't working Priority: High A High Priority Issue labels May 13, 2021
@samkanga
Copy link

samkanga commented May 17, 2021

@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
Copy link
Author

@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
Copy link

@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
Copy link

rkodev commented May 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: High A High Priority Issue
Projects
None yet
Development

No branches or pull requests

3 participants