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

Maintenance/newly submitted survey not show in list #2449

Closed xurxodev closed 4 years ago

xurxodev commented 5 years ago

:pushpin: References

:gear: branches

app: Origin: maintenance/maintenance/newly_submitted_survey_not_show_in_list Target: v1.4_connect bugshaker-android: Origin: downgrade_gradle_version
EyeSeeTea-SDK: Origin: development

:tophat: What is the goal?

A problem reported by the Mozambique team (MZ test account: MZ_TEST_IPC / 1234). Basically some of the newly submitted records "never make it to the queue"

The problem is during the survey creation current survey in session is override by the push process. Then when navigate to review screen, really you are navigating to wrong survey review screen.

:memo: How is it being implemented?

Avoid reading the survey from session to open review:

Avoid reading the survey from session to complete survey process:

Avoid reading the survey from the session while you answer questions in survey:

Avoid writing survey in session from push process (quarantine check):

:boom: How can it be tested?

Configure emulator to poor connection

UseCase 1: step 1: Create a new survey fand complete all questions. After exiting from the review screen, click on the synchronize button and close the app. To open the app again the survey should be in quarantine. step 2: Click on the new survey and wait until the push process is realized (checking quarantine surveys). Then complete questions and to exit from review two surveys should be visible in the list and every survey should have the correct values.

:floppy_disk: Requires DB migration?

:art: UI changes?