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

OpenSRP number/registration form not available with new installs #152

Closed
1 task done
AnnieMungai opened this issue Jun 4, 2021 · 5 comments
Closed
1 task done

Comments

@AnnieMungai
Copy link
Contributor

AnnieMungai commented Jun 4, 2021

Preview v:0.0.12

  • The registration form is not available for new installs after the first 3 registrations. I synced data but this was still not available. I had to log-out and log in back again. This should not be the case. User should be able to register clients all throughout without the app having any issues or having to log-out and log back in.
    How to replicate the issue:
  • Install the application as a new install (for a new user- any user at the Western province Senanga district)
  • Register 4 clients and observe.

image

@ellykits ellykits self-assigned this Jun 7, 2021
@ellykits
Copy link
Collaborator

ellykits commented Jun 7, 2021

Unique IDs used to identify clients are synced from the server. I think this was a connection failure/server did not respond timely with the generated ids. I confirmed the IDs are configured correctly.

@ellykits ellykits added the cannot reproduce The bug reported cannot be reproduced label Jun 7, 2021
@AnnieMungai
Copy link
Contributor Author

AnnieMungai commented Jun 7, 2021

@ellykits you will need a fresh install of the app on a device. Then register 4-5 children and observe what happens at the 4th child.

I will also test this again.

@ellykits ellykits removed the cannot reproduce The bug reported cannot be reproduced label Jun 9, 2021
@ellykits
Copy link
Collaborator

ellykits commented Jun 9, 2021

I think I have a rough idea why this happened on Preview server. Here is the explanation however I also identified another bug. If you registered 4 children then they are all supposed to be displayed on the main register. I noticed missing mother details for the child whose record is not displayed.

@ellykits
Copy link
Collaborator

ellykits commented Jun 9, 2021

We configure within the app the number of unique ids to sync from the server then we have a task scheduled to periodically to pull more unique ids when the ones synced initially get used up. On preview, the initial batch is 10, then the periodic task is scheduled to run after every 180 mins (3hrs), meaning when all the unique ids are exhausted then they can only be synced after the 3hrs or manually via re-login.

@ellykits ellykits removed their assignment Jun 9, 2021
@AnnieMungai
Copy link
Contributor Author

v.0.0.13
Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants