EyeSeeTea / pictureapp

Mobile application designed to report cases of malaria (to a DHIS2 server)
GNU General Public License v3.0
4 stars 4 forks source link

Fix bug getting webview url from preferences #2421

Closed xurxodev closed 5 years ago

xurxodev commented 5 years ago

:pushpin: References

:tophat: What is the goal?

Alpha tester report

The app seems to always use: https://apps.psi-mis.org/connect/ even if the settings page shows something else.

The easiest way to test that is to edit the WebURL in the testing page (to an invalid url for instance) and try to load one of the embedded pages. Here it was loading successfully what seemed to be https://apps.psi-mis.org/connect/.

If we select the training environment at login time, the url in settings is: https://apps.psi-mis.org/connect-train/ but it is not the page loaded.

:gear: branches

app: Origin: maintenance/web_url_is_not_properly_used Target: v1.4_connect bugshaker-android: Origin: downgrade_gradle_version EyeSeeTea-sdk: Origin: Development

:memo: How is it being implemented?

After many tests, I have found the problem is retrieving saving preference webUrl.

:boom: How can it be tested?

Use Case 1: From login use train server and to enter in dashboard, the logcat should show traces the url loaded in web views and this one should be https://apps.psi-mis.org/connect-train/

:floppy_disk: Requires DB migration?

:art: UI changes?