added Client Migration for changing the validation status to Invalid#2109
added Client Migration for changing the validation status to Invalid#2109junaidwarsivd wants to merge 14 commits intomasterfrom
Conversation
opensrp-chw/build.gradle
Outdated
| buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000' | ||
| buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10000' | ||
| buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2' | ||
| buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '1' |
There was a problem hiding this comment.
it was not pulling the unique ids from source 2
There was a problem hiding this comment.
I believe this section is under ba and not DRC
There was a problem hiding this comment.
yes its under Ba it was originally '1' in BA (master branch) i've updated the correction
| case 12: | ||
| upgradeToVersion12(db); | ||
| break; | ||
| case 13: |
There was a problem hiding this comment.
Make these changes for all the flavours
- DB migrations
There was a problem hiding this comment.
@ekigamba different flavors use different DB versions for instance ba is at version 23 chad using 15 drc using 13 and so on should i upgrade all the versions to the same value?
There was a problem hiding this comment.
Yea, we should upgrade all the versions but to different values
changed the target sdk to 31
| versionCode 9 | ||
| versionName "1.0.2" | ||
| buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000' |
There was a problem hiding this comment.
I am not sure what's the difference between liberia and LMH
| } | ||
| upgradeTo++; | ||
| } | ||
| RepositoryUtils.updateClientValidateStatus(db); |
There was a problem hiding this comment.
Remove this since it is repetitive
| buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '5' | ||
| buildConfigField "int", "MAX_READ_TIMEOUT", '5' | ||
| buildConfigField "int", "DATABASE_VERSION", '8' | ||
| buildConfigField "int", "DATABASE_VERSION", '9' |
There was a problem hiding this comment.
| when(mockPatient.getColumnmaps()).thenReturn(map); | ||
| when(map.get(DBConstants.KEY.DOB)).thenReturn(dobString); | ||
| AllClientsUtils.goToChildProfile(mockActivity, mockPatient, mockBundle); | ||
| verify(mockActivity).startActivity(ArgumentMatchers.any()); |
There was a problem hiding this comment.
Kindly specify the specific activity called in this argument/param
added migration for invalidating the client to trigger a revalidation
issue ref https://github.com/opensrp/support/issues/234