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 loading related resources data for LIST #3539

Merged
merged 14 commits into from
Oct 18, 2024
Merged

Conversation

ellykits
Copy link
Collaborator

@ellykits ellykits commented Oct 4, 2024

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

Fixes https://github.com/ona-health/hisp-wdf-fhir-resources/issues/513, #2356, #3527

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

@ellykits ellykits self-assigned this Oct 4, 2024
@ellykits ellykits added the Work In Progress Describes an items that is not complete. Mostly used for scoping issues of discussions label Oct 4, 2024
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 23.29317% with 191 lines in your changes missing coverage. Please review.

Project coverage is 27.4%. Comparing base (6014982) to head (5afd714).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...ter/fhircore/quest/ui/main/components/AppDrawer.kt 0.0% 39 Missing ⚠️
...ster/fhircore/quest/ui/profile/ProfileViewModel.kt 10.3% 26 Missing ⚠️
...ister/fhircore/quest/ui/shared/components/Image.kt 0.0% 22 Missing ⚠️
...ircore/quest/ui/shared/components/ViewGenerator.kt 0.0% 17 Missing ⚠️
...egister/fhircore/quest/ui/profile/ProfileScreen.kt 0.0% 11 Missing ⚠️
...re/engine/rulesengine/ResourceDataRulesExecutor.kt 79.5% 8 Missing and 2 partials ⚠️
...rcore/quest/ui/main/components/TopScreenSection.kt 0.0% 9 Missing ⚠️
...ter/fhircore/quest/ui/register/RegisterFragment.kt 0.0% 9 Missing ⚠️
...ister/fhircore/quest/ui/profile/ProfileFragment.kt 0.0% 6 Missing ⚠️
...fhircore/quest/ui/shared/components/ServiceCard.kt 0.0% 5 Missing ⚠️
... and 19 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main   #3539     +/-   ##
=========================================
+ Coverage     27.2%   27.4%   +0.1%     
- Complexity     756     774     +18     
=========================================
  Files          278     278             
  Lines        14239   14329     +90     
  Branches      2582    2583      +1     
=========================================
+ Hits          3883    3935     +52     
- Misses        9818    9855     +37     
- Partials       538     539      +1     
Flag Coverage Δ
engine 63.8% <77.4%> (+<0.1%) ⬆️
geowidget 15.4% <ø> (ø)
quest 5.8% <1.6%> (+0.1%) ⬆️

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

Files with missing lines Coverage Δ
...core/engine/configuration/ConfigurationRegistry.kt 68.2% <ø> (-0.1%) ⬇️
...core/engine/configuration/view/ButtonProperties.kt 87.0% <100.0%> (+0.2%) ⬆️
...core/engine/configuration/view/ColumnProperties.kt 100.0% <ø> (ø)
...ngine/configuration/view/CompoundTextProperties.kt 100.0% <ø> (ø)
...ore/engine/configuration/view/DividerProperties.kt 89.4% <100.0%> (+0.5%) ⬆️
...rcore/engine/configuration/view/ImageProperties.kt 83.3% <100.0%> (+0.9%) ⬆️
...ircore/engine/configuration/view/ListProperties.kt 92.3% <100.0%> (+0.6%) ⬆️
...ngine/configuration/view/PersonalDataProperties.kt 0.0% <ø> (ø)
...hircore/engine/configuration/view/RowProperties.kt 0.0% <ø> (ø)
...ircore/engine/configuration/view/ViewProperties.kt 86.3% <ø> (ø)
... and 31 more

ellykits and others added 4 commits October 7, 2024 13:22
* Add date service to rules engine facts map (#3519)

* Add summary mode (#3500)

Co-authored-by: Elly Kitoto <[email protected]>

* Refactor PDF config properties in QuestionnaireConfig (#3498)

* Refactor to use PdfConfig

Initially using QuestionnaireConfig for simplicity.

* Process multi QRs in HtmlPopulator

* Add new tag to check if Questionnaire has been submitted

* Remove subjectType since subjectReference is used

* Fix test and spotless

* Address review

* spotless

* Cleanup

* spotless

* Fix test

---------

Co-authored-by: Elly Kitoto <[email protected]>

* Fix error validation highlighting not working when submit button is clicked bug (#3525)

* Change progress bar color to blue (#3428)

* update in-progress color on the map view. (#3529)

      Signed-off-by: Lentumunai-Mark <[email protected]>

* Add medication sort custom search param (#3534)

* Add medication sort custom search param

* Run spotlessApply

* Fix failing time based test

* Pld docs adjustment (#3540)

* sync typo

* correct heading title

* update header definition for p2p

* upgrade packages

* Update Geowidget to only show the Set Location dialog if no Locations to sync by have been selected (#3526)

* Don't show no results dialogue on map when locations selected on multiselect.

Signed-off-by: Lentumunai-Mark <[email protected]>

* Fix failing tests.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>

* Add Exit Dialog (#3487)

* Add exit dialog

* Fix a typo

* Show Dialog only when Map or Register is visible

* PR feedback changes

* Fix failing check

* Remove incorrect test

* Refactor dialog condition logic

---------

Co-authored-by: Benjamin Mwalimu <[email protected]>

* Refactor working with bitmap images

Signed-off-by: Elly Kitoto <[email protected]>

* Add the EUSM Burundi flavour and Rename the existing EUSM flavour (#3548)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* Configure submit anyway button (#3535)

* Update the Burundi EUSM flavor (#3553)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* - Update the flavor naming
- Update the documentation

* - Update the flavors section of the documentation to clarify on the naming convention

* Bum p up data capture version (#3547)

* Map search bug fixes (#3516)

* - Updating the infinite scroll paging
- Updating the behaviour after clearing search bar on the maps

* - spotless apply

* - Fix breaking tests on geo widget module

* - Fix tests

* - Run spotless

* - Import `LazyPagingItems`

* - Adding tests

* - Update the APK naming

* Ignore test to be refactored later

Signed-off-by: Elly Kitoto <[email protected]>

* - Run spotless

* Update kujaku version.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Lentumunai-Mark <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>

* Fix loading related resources

Signed-off-by: Elly Kitoto <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Rkareko <[email protected]>
Co-authored-by: FikriMilano <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Peter Lubell-Doughtie <[email protected]>
Co-authored-by: Hamza Ahmed Khan <[email protected]>
Co-authored-by: Benjamin Mwalimu <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>
@ellykits ellykits marked this pull request as ready for review October 15, 2024 07:18
@ellykits
Copy link
Collaborator Author

Introduced changes

isRevInclude - A new property added to forward include List resource just like registers.
fhirPathExpression - Now required to retrieve specific related resources for the list resources
id - Id on List resources are now fully functional, when defined they MUST be used in the rules otherwise the rules will not work.

ellykits and others added 3 commits October 15, 2024 10:32
Signed-off-by: Elly Kitoto <[email protected]>
To pass in evaluated rule variables

Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>
@ellykits ellykits removed the Work In Progress Describes an items that is not complete. Mostly used for scoping issues of discussions label Oct 15, 2024
pld
pld previously approved these changes Oct 16, 2024
Signed-off-by: Lentumunai-Mark <[email protected]>
@dubdabasoduba
Copy link
Member

@Lentumunai-Mark Please the test here as directed by @ellykits on this PR

Copy link
Contributor

@f-odhiambo f-odhiambo left a comment

Choose a reason for hiding this comment

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

LGTM

@ellykits ellykits merged commit 8f2c558 into main Oct 18, 2024
4 of 5 checks passed
@ellykits ellykits deleted the fix-loading-nested-list-data branch October 18, 2024 13:36
qiarie pushed a commit that referenced this pull request Jan 15, 2025
* Include listRepositoryResourceDataMap to nested list widgets

Signed-off-by: Elly Kitoto <[email protected]>

* Fix loading related resources data for List widget

Signed-off-by: Elly Kitoto <[email protected]>

* Refactor loading bitmap images (#3546)

* Add date service to rules engine facts map (#3519)

* Add summary mode (#3500)

Co-authored-by: Elly Kitoto <[email protected]>

* Refactor PDF config properties in QuestionnaireConfig (#3498)

* Refactor to use PdfConfig

Initially using QuestionnaireConfig for simplicity.

* Process multi QRs in HtmlPopulator

* Add new tag to check if Questionnaire has been submitted

* Remove subjectType since subjectReference is used

* Fix test and spotless

* Address review

* spotless

* Cleanup

* spotless

* Fix test

---------

Co-authored-by: Elly Kitoto <[email protected]>

* Fix error validation highlighting not working when submit button is clicked bug (#3525)

* Change progress bar color to blue (#3428)

* update in-progress color on the map view. (#3529)

      Signed-off-by: Lentumunai-Mark <[email protected]>

* Add medication sort custom search param (#3534)

* Add medication sort custom search param

* Run spotlessApply

* Fix failing time based test

* Pld docs adjustment (#3540)

* sync typo

* correct heading title

* update header definition for p2p

* upgrade packages

* Update Geowidget to only show the Set Location dialog if no Locations to sync by have been selected (#3526)

* Don't show no results dialogue on map when locations selected on multiselect.

Signed-off-by: Lentumunai-Mark <[email protected]>

* Fix failing tests.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>

* Add Exit Dialog (#3487)

* Add exit dialog

* Fix a typo

* Show Dialog only when Map or Register is visible

* PR feedback changes

* Fix failing check

* Remove incorrect test

* Refactor dialog condition logic

---------

Co-authored-by: Benjamin Mwalimu <[email protected]>

* Refactor working with bitmap images

Signed-off-by: Elly Kitoto <[email protected]>

* Add the EUSM Burundi flavour and Rename the existing EUSM flavour (#3548)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* Configure submit anyway button (#3535)

* Update the Burundi EUSM flavor (#3553)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* - Update the flavor naming
- Update the documentation

* - Update the flavors section of the documentation to clarify on the naming convention

* Bum p up data capture version (#3547)

* Map search bug fixes (#3516)

* - Updating the infinite scroll paging
- Updating the behaviour after clearing search bar on the maps

* - spotless apply

* - Fix breaking tests on geo widget module

* - Fix tests

* - Run spotless

* - Import `LazyPagingItems`

* - Adding tests

* - Update the APK naming

* Ignore test to be refactored later

Signed-off-by: Elly Kitoto <[email protected]>

* - Run spotless

* Update kujaku version.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Lentumunai-Mark <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>

* Fix loading related resources

Signed-off-by: Elly Kitoto <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Rkareko <[email protected]>
Co-authored-by: FikriMilano <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Peter Lubell-Doughtie <[email protected]>
Co-authored-by: Hamza Ahmed Khan <[email protected]>
Co-authored-by: Benjamin Mwalimu <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>

* Fix failing UI tests

Signed-off-by: Elly Kitoto <[email protected]>

* Interpolate conditionalFhirPathExpressions in listResource (#3538)

To pass in evaluated rule variables

Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>

* Fix apply stack tint.

Signed-off-by: Lentumunai-Mark <[email protected]>

* Apply opacity on view properties. (#3564)

Signed-off-by: Lentumunai-Mark <[email protected]>

* Fix duplication of List view item

Signed-off-by: Elly Kitoto <[email protected]>

---------

Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Lentumunai-Mark <[email protected]>
Co-authored-by: Rkareko <[email protected]>
Co-authored-by: FikriMilano <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Peter Lubell-Doughtie <[email protected]>
Co-authored-by: Hamza Ahmed Khan <[email protected]>
Co-authored-by: Benjamin Mwalimu <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>
Co-authored-by: L≡ZRS <[email protected]>
asad-zaman pushed a commit to Mpower-social/fhircore-smart-health-bd that referenced this pull request Jan 20, 2025
* Include listRepositoryResourceDataMap to nested list widgets

Signed-off-by: Elly Kitoto <[email protected]>

* Fix loading related resources data for List widget

Signed-off-by: Elly Kitoto <[email protected]>

* Refactor loading bitmap images (opensrp#3546)

* Add date service to rules engine facts map (opensrp#3519)

* Add summary mode (opensrp#3500)

Co-authored-by: Elly Kitoto <[email protected]>

* Refactor PDF config properties in QuestionnaireConfig (opensrp#3498)

* Refactor to use PdfConfig

Initially using QuestionnaireConfig for simplicity.

* Process multi QRs in HtmlPopulator

* Add new tag to check if Questionnaire has been submitted

* Remove subjectType since subjectReference is used

* Fix test and spotless

* Address review

* spotless

* Cleanup

* spotless

* Fix test

---------

Co-authored-by: Elly Kitoto <[email protected]>

* Fix error validation highlighting not working when submit button is clicked bug (opensrp#3525)

* Change progress bar color to blue (opensrp#3428)

* update in-progress color on the map view. (opensrp#3529)

      Signed-off-by: Lentumunai-Mark <[email protected]>

* Add medication sort custom search param (opensrp#3534)

* Add medication sort custom search param

* Run spotlessApply

* Fix failing time based test

* Pld docs adjustment (opensrp#3540)

* sync typo

* correct heading title

* update header definition for p2p

* upgrade packages

* Update Geowidget to only show the Set Location dialog if no Locations to sync by have been selected (opensrp#3526)

* Don't show no results dialogue on map when locations selected on multiselect.

Signed-off-by: Lentumunai-Mark <[email protected]>

* Fix failing tests.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>

* Add Exit Dialog (opensrp#3487)

* Add exit dialog

* Fix a typo

* Show Dialog only when Map or Register is visible

* PR feedback changes

* Fix failing check

* Remove incorrect test

* Refactor dialog condition logic

---------

Co-authored-by: Benjamin Mwalimu <[email protected]>

* Refactor working with bitmap images

Signed-off-by: Elly Kitoto <[email protected]>

* Add the EUSM Burundi flavour and Rename the existing EUSM flavour (opensrp#3548)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* Configure submit anyway button (opensrp#3535)

* Update the Burundi EUSM flavor (opensrp#3553)

* - Add the EUSM Burundi flavour
- Rename the exisiting EUSM flavour

* - Update the app naming

* - update the flavour naming

* - Update the flavor naming
- Update the documentation

* - Update the flavors section of the documentation to clarify on the naming convention

* Bum p up data capture version (opensrp#3547)

* Map search bug fixes (opensrp#3516)

* - Updating the infinite scroll paging
- Updating the behaviour after clearing search bar on the maps

* - spotless apply

* - Fix breaking tests on geo widget module

* - Fix tests

* - Run spotless

* - Import `LazyPagingItems`

* - Adding tests

* - Update the APK naming

* Ignore test to be refactored later

Signed-off-by: Elly Kitoto <[email protected]>

* - Run spotless

* Update kujaku version.

Signed-off-by: Lentumunai-Mark <[email protected]>

---------

Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Lentumunai-Mark <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>

* Fix loading related resources

Signed-off-by: Elly Kitoto <[email protected]>

---------

Signed-off-by: Lentumunai-Mark <[email protected]>
Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Rkareko <[email protected]>
Co-authored-by: FikriMilano <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Peter Lubell-Doughtie <[email protected]>
Co-authored-by: Hamza Ahmed Khan <[email protected]>
Co-authored-by: Benjamin Mwalimu <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>

* Fix failing UI tests

Signed-off-by: Elly Kitoto <[email protected]>

* Interpolate conditionalFhirPathExpressions in listResource (opensrp#3538)

To pass in evaluated rule variables

Signed-off-by: Elly Kitoto <[email protected]>
Co-authored-by: Elly Kitoto <[email protected]>

* Fix apply stack tint.

Signed-off-by: Lentumunai-Mark <[email protected]>

* Apply opacity on view properties. (opensrp#3564)

Signed-off-by: Lentumunai-Mark <[email protected]>

* Fix duplication of List view item

Signed-off-by: Elly Kitoto <[email protected]>

---------

Signed-off-by: Elly Kitoto <[email protected]>
Signed-off-by: Lentumunai-Mark <[email protected]>
Co-authored-by: Rkareko <[email protected]>
Co-authored-by: FikriMilano <[email protected]>
Co-authored-by: Lentumunai Mark <[email protected]>
Co-authored-by: Peter Lubell-Doughtie <[email protected]>
Co-authored-by: Hamza Ahmed Khan <[email protected]>
Co-authored-by: Benjamin Mwalimu <[email protected]>
Co-authored-by: Lentumunai-Mark <[email protected]>
Co-authored-by: L≡ZRS <[email protected]>
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.

6 participants