-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch composition and config binaries on app login (#2981)
* Fix update data migration version Signed-off-by: Elly Kitoto <[email protected]> * Purge resources to be updated from LocalChangeEntity table Any operation applied to a resource is captured in the LocalChangeEntity table. The LocalChangeEntity accepts these action types, INSERT, UPDATE and DELETE. The types correspond to the following HttpVerbs PUT, PATCH and DELETE. PUT ensures the server performs upsert operation on the change made on the resources captured in the local cahnge entity table. The purge operation is configurable; defaults to false. Signed-off-by: Elly Kitoto <[email protected]> * Apply filter on selected data migration resource Signed-off-by: Elly Kitoto <[email protected]> * Reset configs cache on load Signed-off-by: Elly Kitoto <[email protected]> * Update logic for change managing entity for a Group resource Use the configured relationship code to retrieve the RelatedPerson resource representing the managing entity from the extracted resources. Signed-off-by: Elly Kitoto <[email protected]> * Fix condition Signed-off-by: Elly Kitoto <[email protected]> * Fix update managing entity Signed-off-by: Elly Kitoto <[email protected]> * Fix change managing entity for Group Only append organization info to the relevant Resource property if and only if the property is null. E.g. if Group.managingEntity is already set during extraction, do not override it. Signed-off-by: Elly Kitoto <[email protected]> * Set Practitioner if not exist Signed-off-by: Elly Kitoto <[email protected]> * Fetch composition and config binaries on app login * Show migrate data dialog * Clear config cache * Pass appId to fetchRemoteComposition function * Update unit tests * Refactor shared logic for processing composition components * Fix failing AppSettingViewModel and ConfigDownloadWorker tests * Fix failing ConfigurationRegistryTest * Update unit tests * Move SaveSyncSharedPreferencesShouldVerifyDataSave to ConfigurationRegistry tests * Update AppSettingViewModel test * Run spotless Apply * Update ConfigurationRegistry tests --------- Signed-off-by: Elly Kitoto <[email protected]> Co-authored-by: Elly Kitoto <[email protected]> Co-authored-by: Francis Odhiambo <[email protected]> Co-authored-by: Peter Lubell-Doughtie <[email protected]>
- Loading branch information
1 parent
304140b
commit 43b2d19
Showing
12 changed files
with
355 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.