EyeSeeTea / malariapp

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

Investigate the process to remove a question avoiding Android conflicts #2450

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

@ifoche this is the final results of the investigation:

Context

Server: https://clone.psi-mis.org user: KEdemo1 Program: KE HNQIS Hypertension (u6pCofOY3O7) Data Element to Remove: KE HNQIS HT.HT-300-Applies BP cuff correctly (fFBBXYbUDr7)

Goals

  1. The removed question should not appear in the Android form
  2. The removed question should not count in the composite score
  3. Execute pending push in devices with old metadata should work without errors or conflicts

Server Options

  1. Remove the data element from the program stage section (create data entry form tab in web) and mark as non-mandatory if required. This currently provoke errors during the pull but changes in this branch avoid the error: feature/allow_data_elements_not_added_to_program_section
  2. Remove the data element from the program directly I have testing this scenario and dhis2 api does not fail sending an event with data element that not exist in the program

note: sometimes push is not executed turning from airplane mode on to off, then start the app again.

Testing for server option 1:

from feature/allow_data_elements_not_added_to_program_section branch

Case 1:

Case 2: Apply after case 1

Testing for server option 2:

from v1.6_hnqis branch

Case 1:

Case 2: Apply after case 1