EyeSeeTea / malariapp

Android app to help with health center assessments (development repository)
GNU General Public License v3.0
6 stars 3 forks source link

Fix bug with authority changing the server #2457

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

:pushpin: References

:gear: branches

app: Origin: fix/bug_with_authority_changing_of_server Target: v1.6_hnqis bugshaker-android: Origin: downgrade_gradle_version
EyeSeeTea-SDK: Origin: development SDK: Origin: feature-2.30_upgrade_gradle

:tophat: What is the goal?

the problem was that the api service (Retrofit) was not recreated when the url change, the solution is to recreate retrofit and api service when the server url and last server url are different

:memo: How is it being implemented?

:boom: How can it be tested?

Case 1

  1. Try to login with the following credentials: server (https://clone.psi-mis.org), user(KEdemo1), password (Kenyademo1!) You should not be able to log in.
  2. Change server to https://data.psi-mis.org
  3. You should be able to log in.

    Case 2

  4. Login with the following credentials: server (https://data.psi-mis.org), user(KEdemo1), password (Kenyademo1!)
  5. You should be able to log in
  6. Log out
  7. Login with the following credentials: server (https://clone.psi-mis.org), user(KEdemo1), password (Kenyademo1!)
  8. You should not be able to log in

:floppy_disk: Requires DB migration?

:art: UI changes?