Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sync Status: Harmonize FHIR and Custom Sync Completion for 'Sync Complete' #3650

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Lentumunai-Mark
Copy link
Contributor

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

Fixes [link to issue]

Engineer Checklist

  • I have written Unit tests for any new feature(s) and edge cases for bug fixes
  • I have added any strings visible on UI components to the strings.xml file
  • I have updated the CHANGELOG.md file for any notable changes to the codebase
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
  • I have built and run the FHIRCore app to verify my change fixes the issue and/or does not break the app
  • I have checked that this PR does NOT introduce breaking changes that require an update to Content and/or Configs? If it does add a sample here or a link to exactly what changes need to be made to the content.

Code Reviewer Checklist

  • I have verified Unit tests have been written for any new feature(s) and edge cases
  • I have verified any strings visible on UI components are in the strings.xml file
  • I have verifed the CHANGELOG.md file has any notable changes to the codebase
  • I have verified the solution has been implemented in a configurable and generic way for reuseable components
  • I have built and run the FHIRCore app to verify the change fixes the issue and/or does not break the app

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 10.85271% with 115 lines in your changes missing coverage. Please review.

Project coverage is 26.7%. Comparing base (0571c2d) to head (091fd8e).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...rcore/quest/ui/shared/components/SyncStatusView.kt 0.0% 52 Missing ⚠️
...core/engine/configuration/ConfigurationRegistry.kt 44.4% 8 Missing and 7 partials ⚠️
...rtregister/fhircore/engine/sync/SyncBroadcaster.kt 0.0% 15 Missing ⚠️
...egister/fhircore/quest/ui/main/AppMainViewModel.kt 12.5% 11 Missing and 3 partials ⚠️
...re/quest/ui/geowidget/GeoWidgetLauncherFragment.kt 0.0% 5 Missing ⚠️
...rtregister/fhircore/engine/sync/CustomSyncState.kt 0.0% 4 Missing ⚠️
...register/fhircore/engine/sync/CustomWorkerState.kt 0.0% 3 Missing ⚠️
...core/quest/ui/geowidget/GeoWidgetLauncherScreen.kt 0.0% 2 Missing ⚠️
...ter/fhircore/quest/ui/register/RegisterFragment.kt 0.0% 2 Missing ⚠️
...ister/fhircore/quest/ui/register/RegisterScreen.kt 0.0% 2 Missing ⚠️
... and 1 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main   #3650     +/-   ##
=========================================
- Coverage     26.8%   26.7%   -0.1%     
- Complexity     801     802      +1     
=========================================
  Files          284     286      +2     
  Lines        15053   15118     +65     
  Branches      2667    2690     +23     
=========================================
+ Hits          4036    4040      +4     
- Misses       10500   10554     +54     
- Partials       517     524      +7     
Flag Coverage Δ
engine 62.3% <24.0%> (-0.2%) ⬇️
geowidget 16.0% <ø> (ø)
quest 5.1% <2.5%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...tregister/fhircore/engine/sync/CustomSyncWorker.kt 56.2% <0.0%> (-1.9%) ⬇️
...core/quest/ui/geowidget/GeoWidgetLauncherScreen.kt 0.0% <0.0%> (ø)
...ter/fhircore/quest/ui/register/RegisterFragment.kt 0.0% <0.0%> (ø)
...ister/fhircore/quest/ui/register/RegisterScreen.kt 0.0% <0.0%> (ø)
...register/fhircore/engine/sync/CustomWorkerState.kt 0.0% <0.0%> (ø)
...rtregister/fhircore/engine/sync/CustomSyncState.kt 0.0% <0.0%> (ø)
...re/quest/ui/geowidget/GeoWidgetLauncherFragment.kt 0.0% <0.0%> (ø)
...egister/fhircore/quest/ui/main/AppMainViewModel.kt 3.8% <12.5%> (+0.6%) ⬆️
...core/engine/configuration/ConfigurationRegistry.kt 66.3% <44.4%> (-2.0%) ⬇️
...rtregister/fhircore/engine/sync/SyncBroadcaster.kt 16.6% <0.0%> (ø)
... and 1 more

... and 2 files with indirect coverage changes

@Lentumunai-Mark Lentumunai-Mark changed the title Register custom sync status. Fix Sync Status: Harmonize FHIR and Custom Sync Completion for 'Sync Complete' Dec 13, 2024
pld
pld previously approved these changes Dec 14, 2024
Copy link
Member

@pld pld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! can you please cover the new code paths with tests, thank you!

@pld pld added this pull request to the merge queue Dec 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 14, 2024
@Lentumunai-Mark Lentumunai-Mark marked this pull request as draft December 16, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants