opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 39 forks source link

Download custom resources via sync configurations #3344

Open ellykits opened 1 week ago

ellykits commented 1 week ago

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #3308

Engineer Checklist

Code Reviewer Checklist

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 21.98582% with 110 lines in your changes missing coverage. Please review.

Project coverage is 27.6%. Comparing base (ac82739) to head (6fc9d66). Report is 104 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/graphs/tree.svg?width=650&height=150&src=pr&token=IJUTHZUGGH&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp)](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) ```diff @@ Coverage Diff @@ ## main #3344 +/- ## ========================================= - Coverage 29.6% 27.6% -2.1% - Complexity 658 694 +36 ========================================= Files 239 266 +27 Lines 11204 12692 +1488 Branches 1948 2256 +308 ========================================= + Hits 3323 3508 +185 - Misses 7447 8725 +1278 - Partials 434 459 +25 ``` | [Flag](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | Coverage Δ | | |---|---|---| | [engine](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | `63.3% <23.1%> (-3.0%)` | :arrow_down: | | [geowidget](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | `18.3% <ø> (-28.9%)` | :arrow_down: | | [quest](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | `4.8% <0.0%> (-0.6%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | Coverage Δ | | |---|---|---| | [...martregister/fhircore/engine/sync/AppSyncWorker.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Fsync%2FAppSyncWorker.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvc3luYy9BcHBTeW5jV29ya2VyLmt0) | `91.6% <100.0%> (ø)` | | | [...ter/fhircore/engine/sync/OpenSrpDownloadManager.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Fsync%2FOpenSrpDownloadManager.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvc3luYy9PcGVuU3JwRG93bmxvYWRNYW5hZ2VyLmt0) | `42.8% <100.0%> (ø)` | | | [...gister/fhircore/engine/util/SharedPreferenceKey.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Futil%2FSharedPreferenceKey.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvdXRpbC9TaGFyZWRQcmVmZXJlbmNlS2V5Lmt0) | `100.0% <ø> (ø)` | | | [...hircore/quest/ui/appsetting/AppSettingViewModel.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fquest%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fquest%2Fui%2Fappsetting%2FAppSettingViewModel.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9xdWVzdC9zcmMvbWFpbi9qYXZhL29yZy9zbWFydHJlZ2lzdGVyL2ZoaXJjb3JlL3F1ZXN0L3VpL2FwcHNldHRpbmcvQXBwU2V0dGluZ1ZpZXdNb2RlbC5rdA==) | `2.2% <ø> (+0.6%)` | :arrow_up: | | [...rcore/quest/ui/usersetting/UserSettingViewModel.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fquest%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fquest%2Fui%2Fusersetting%2FUserSettingViewModel.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9xdWVzdC9zcmMvbWFpbi9qYXZhL29yZy9zbWFydHJlZ2lzdGVyL2ZoaXJjb3JlL3F1ZXN0L3VpL3VzZXJzZXR0aW5nL1VzZXJTZXR0aW5nVmlld01vZGVsLmt0) | `7.6% <0.0%> (-0.1%)` | :arrow_down: | | [...ore/quest/util/extensions/WorkManagerExtensions.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fquest%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fquest%2Futil%2Fextensions%2FWorkManagerExtensions.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9xdWVzdC9zcmMvbWFpbi9qYXZhL29yZy9zbWFydHJlZ2lzdGVyL2ZoaXJjb3JlL3F1ZXN0L3V0aWwvZXh0ZW5zaW9ucy9Xb3JrTWFuYWdlckV4dGVuc2lvbnMua3Q=) | `0.0% <0.0%> (ø)` | | | [...gister/fhircore/engine/sync/SyncListenerManager.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Fsync%2FSyncListenerManager.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvc3luYy9TeW5jTGlzdGVuZXJNYW5hZ2VyLmt0) | `85.7% <0.0%> (-2.7%)` | :arrow_down: | | [...egister/fhircore/quest/ui/main/AppMainViewModel.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fquest%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fquest%2Fui%2Fmain%2FAppMainViewModel.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9xdWVzdC9zcmMvbWFpbi9qYXZhL29yZy9zbWFydHJlZ2lzdGVyL2ZoaXJjb3JlL3F1ZXN0L3VpL21haW4vQXBwTWFpblZpZXdNb2RlbC5rdA==) | `5.0% <0.0%> (+0.6%)` | :arrow_up: | | [...rtregister/fhircore/engine/sync/SyncBroadcaster.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Fsync%2FSyncBroadcaster.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvc3luYy9TeW5jQnJvYWRjYXN0ZXIua3Q=) | `0.0% <0.0%> (-15.3%)` | :arrow_down: | | [...tregister/fhircore/engine/sync/CustomSyncWorker.kt](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree&filepath=android%2Fengine%2Fsrc%2Fmain%2Fjava%2Forg%2Fsmartregister%2Ffhircore%2Fengine%2Fsync%2FCustomSyncWorker.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp#diff-YW5kcm9pZC9lbmdpbmUvc3JjL21haW4vamF2YS9vcmcvc21hcnRyZWdpc3Rlci9maGlyY29yZS9lbmdpbmUvc3luYy9DdXN0b21TeW5jV29ya2VyLmt0) | `0.0% <0.0%> (ø)` | | | ... and [1 more](https://app.codecov.io/gh/opensrp/fhircore/pull/3344?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp) | | ... and [37 files with indirect coverage changes](https://app.codecov.io/gh/opensrp/fhircore/pull/3344/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensrp)