-
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
Fetch Practioner Location Id using Rules on the Configs from the SharedPreferences #3281
Fetch Practioner Location Id using Rules on the Configs from the SharedPreferences #3281
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3281 +/- ##
=========================================
- Coverage 29.6% 28.0% -1.7%
- Complexity 658 690 +32
=========================================
Files 239 264 +25
Lines 11204 12396 +1192
Branches 1948 2164 +216
=========================================
+ Hits 3323 3477 +154
- Misses 7447 8460 +1013
- Partials 434 459 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ReflectionHelpers.callInstanceMethod<LoginViewModel>( | ||
loginViewModel, | ||
"writePractitionerDetailsToShredPref", | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf("")), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf("")), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf("")), | ||
ReflectionHelpers.ClassParameter.from(PractitionerDetails::class.java, PractitionerDetails()), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf("")), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf("")), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf(locationId)), | ||
ReflectionHelpers.ClassParameter.from(List::class.java, listOf(LocationHierarchy())), |
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.
You can just make the function public instead of using reflections here.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3281 +/- ##
=========================================
- Coverage 29.6% 28.0% -1.7%
- Complexity 658 690 +32
=========================================
Files 239 264 +25
Lines 11204 12396 +1192
Branches 1948 2164 +216
=========================================
+ Hits 3323 3477 +154
- Misses 7447 8460 +1013
- Partials 434 459 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…edPreferences (#3281) * Load practitioner location Id from the shared prefs via rules engine service * Add unit test for writing practitioner location id to shared preferences * Run spotlessApply * Update unit test * Run spotless Apply
IMPORTANT: Where possible all PRs must be linked to a Github issue
Part of the fixes for #2900
Adds the functionality for fetching the current practitioner's location Id.
Engineer Checklist
strings.xml
file./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the project's style guideCode Reviewer Checklist
strings.xml
file