-
Notifications
You must be signed in to change notification settings - Fork 249
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
Implement inequality operators (<, >, <=, >=) in the enable when statement #848
Conversation
please update this PR now that #847 is merged |
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.
please udpate
Updating PR. |
Codecov Report
@@ Coverage Diff @@
## master #848 +/- ##
============================================
+ Coverage 88.55% 88.68% +0.13%
- Complexity 467 469 +2
============================================
Files 107 107
Lines 9137 9147 +10
Branches 609 614 +5
============================================
+ Hits 8091 8112 +21
+ Misses 715 704 -11
Partials 331 331
Continue to review full report at Codecov.
|
@jingtang10 |
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.
as discussed, merge the MoreTypes.kt
files and move it to the common
module and use the Type.compareTo
rather than defining the extension functions on the QuestionnaireItemEnableWhenComponent
.
datacapture/src/main/java/com/google/android/fhir/datacapture/MoreTypes.kt
Outdated
Show resolved
Hide resolved
Working on review comments. |
#923 (move moretypes file to common module) |
done. |
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.
In general we shouldn't be making any code change without unit test change.
If MoreTypes.kt
file is changed please add unit tests as well.
I don't believe the quantity type needs to be singled out in the unit test for the enablement evaluator -- that's an irrelevant detail in the code of enablement evaluator. but that's a relevant detail in the MoreTypes.kt
file, so the tests should reside there.
yes, quantity tests need to be moved to |
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
...ture/src/test/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluatorTest.kt
Outdated
Show resolved
Hide resolved
Updating code as per review comments. |
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.
Thanks @santosh-pingle!
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #818
Description
Implement inequality operators (<, >, <=, >=) in the enable when statement
Alternative(s) considered
no
Type
Choose one: Bug fix
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project./gradlew check
and./gradlew connectedCheck
to test my changes locally