-
Notifications
You must be signed in to change notification settings - Fork 59
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 issue 2036 [Configuration-Filtering registers based on resources attributes ] #2070
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2070 +/- ##
=============================================
- Coverage 57.87% 44.34% -13.53%
+ Complexity 1038 20 -1018
=============================================
Files 219 5 -214
Lines 8462 230 -8232
Branches 1598 33 -1565
=============================================
- Hits 4897 102 -4795
+ Misses 2639 113 -2526
+ Partials 926 15 -911
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to rework this not have anything specific to a Practioner in it. The goal of the issue is to allow filtering or an arbitrary resource by arbitrary attributes in that resource. Looking through a code it looks this is mainly a naming problem the architecture looks like it's on the correct path overall.
I put some ideas towards that as suggested changes, I'm not sure how practitionerId generalizes, or if it's acutally needed
...ne/src/main/java/org/smartregister/fhircore/engine/data/local/register/RegisterRepository.kt
Outdated
Show resolved
Hide resolved
.../engine/src/main/java/org/smartregister/fhircore/engine/configuration/view/ListProperties.kt
Outdated
Show resolved
Hide resolved
.../engine/src/main/java/org/smartregister/fhircore/engine/configuration/view/ListProperties.kt
Outdated
Show resolved
Hide resolved
* Add Parcelizer and implement Parcelable RegisterViewModel * Add a hashmap to be used when interpolating over values and retrieve registerData ProfileViewModel * Add a hashmap to be used when interpolating over values and retrieve registerData ActionParamType *Add a Generic Data Pass identifier type
* Test load register with map containing params included * Test countRegisterData when params is passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome progress towards configurable filters! left some pretty straightforward comments, looks very close to merging.
one broader question, is there a name more specific than params
we can use throughout? What exactly do these params represent?
...ngine/src/main/java/org/smartregister/fhircore/engine/configuration/ConfigurationRegistry.kt
Outdated
Show resolved
Hide resolved
...ngine/src/main/java/org/smartregister/fhircore/engine/configuration/ConfigurationRegistry.kt
Outdated
Show resolved
Hide resolved
...ne/src/main/java/org/smartregister/fhircore/engine/data/local/register/RegisterRepository.kt
Outdated
Show resolved
Hide resolved
...ne/src/main/java/org/smartregister/fhircore/engine/data/local/register/RegisterRepository.kt
Show resolved
Hide resolved
...d/engine/src/main/java/org/smartregister/fhircore/engine/domain/model/ActionParameterType.kt
Outdated
Show resolved
Hide resolved
...rc/test/java/org/smartregister/fhircore/engine/data/local/register/RegisterRepositoryTest.kt
Outdated
Show resolved
Hide resolved
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/register/RegisterViewModel.kt
Outdated
Show resolved
Hide resolved
...oid/quest/src/main/java/org/smartregister/fhircore/quest/util/extensions/ConfigExtensions.kt
Outdated
Show resolved
Hide resolved
* Merge branch 'main' of github.com:opensrp/fhircore into issue_1965 * Resolve conflics
IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #2036
Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guide