-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add support for csv-external #522
Conversation
Codecov Report
@@ Coverage Diff @@
## master #522 +/- ##
=======================================
Coverage 83.92% 83.92%
=======================================
Files 25 25
Lines 3713 3714 +1
Branches 865 865
=======================================
+ Hits 3116 3117 +1
Misses 452 452
Partials 145 145
Continue to review full report at Codecov.
|
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.
Very exciting feature! Thanks!
We should do jr://file-csv/name.csv
and this what we use with pulldata transformation in pyxform as well.
I completely forgot about that, you're absolutely right! 😬 |
7fe124c
to
dd036ed
Compare
Thanks for remembering that, @MartijnR. I'm a little shaken that https://github.com/XLSForm/pyxform/pull/522/files#diff-8ca5f58100688d382c2625d49faf9b321a0edd1f4dd98526bc8e71d0f11ab4e8R176 didn't catch that. I was thinking it would help us know the generated instance declarations would be identical. I now see there's only a check for an instance name conflict so it doesn't really cover us that much. |
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!
Also remove Validate runs from tests to speed up test suite
dd036ed
to
e9204c1
Compare
I rebased on master which auto fixed merge conflicts. |
Closes #271
Why is this the best possible solution? Were any other approaches considered?
Uses the same code paths as
xml-external
which reduces risk. I briefly considered treating them differently in some way but that seemed more complex for no payoff.I tried to come up with the minimal tests we needed to validate the addition. Since the same code is used as with
xml-external
, I think a lot of the cases are already handled but please be on the lookout for anything that might not be covered.I noticed some tests were configured to always run Validate. We've discussed not doing that to speed up the test suite so I removed that. We always run all tests with Validate before a release. I also added a commit to make sure all tests pass Validate because failures were mostly in the test file I was already in.
What are the regression risks?
This is an additive change and I don't see a regression risk. The only existing code that has changed has to do with
xml-external
and that has really good test coverage.Does this change require updates to documentation? If so, please file an issue here and include the link below.
XLSForm/xlsform.github.io#216
Before submitting this PR, please make sure you have:
tests_v1
nosetests
and verified all tests passblack pyxform
to format code