-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fixes an NPE and other issues in ViewDefinition validator #1737
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1737 +/- ##
=========================================
Coverage 12.55% 12.56%
- Complexity 32416 32423 +7
=========================================
Files 2204 2204
Lines 674087 674118 +31
Branches 198717 198726 +9
=========================================
+ Hits 84657 84679 +22
- Misses 559352 559353 +1
- Partials 30078 30086 +8 ☔ View full report in Codecov by Sentry. |
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.
why the changes to acceptArrays, acceptComplexTypes, needsName ?
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.
I still have to figure out what to do with the test cases
If you mean the name changes, it is just to clarify what a |
the name changes are fine- an improvement. But it does make a difference to the validator whether the value of these attributes is known or not; sometimes the validation happens in the absence of a particular implementation, and so the validation changes |
also I sorted out what to do with the test cases, but that created more conflicts - sorry |
c439b2a
to
f040821
Compare
Okay, I reverted back to BTW, in the latest release of the publisher tool (after recent merged changes), now I see a lot more examples of mis-recognizing collections, e.g., the error below for this resource (I updated the collection TODO accordingly but did not debug further):
|
I talked to @dotasek about it, and we prefer a tri-state, though the tri-state is "yes | no | unknown" since the messages change more than just severity. Do you want to do this in this PR, or do you me to do it? As for the gender column, I'm not sure why that's being called a collection, but we need to split that issue out from this PR into a separate discussion. |
Okay I made some changes. I started by a tri-state enum but then it seemed to me using I also made the decision logic more consistent. For example before, And finally I made all three check flags similar in terms of being on/off (e.g., instead of PTAL and let me know if you prefer the tri-state approach and I add a new enum.
Right, I just mentioned that as an FYI; I saw those new errors after I synced my repo to HEAD. |
@grahamegrieve did you have a chance to look at my last commit? Is there anything else you like to be done for this change? |
you didn't do it the way we said. So closing this, see #1773 |
When adding new examples to the SQL-on-FHIR-v2 repo, the validator was failing with the NPE below. I have tried to fix this and some other minor issues in this PR. Also some TODOs are added for issues I found but did not fix.
To test, I built
publisher.jar
in fhir-ig-publisher locally and ran on my SoF changes.