Skip to content
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

Trigger column #447

Merged
merged 11 commits into from
Jun 8, 2020
Merged

Trigger column #447

merged 11 commits into from
Jun 8, 2020

Conversation

gushil
Copy link
Contributor

@gushil gushil commented Jun 4, 2020

Closes #438
Closes #70

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2020

Codecov Report

Merging #447 into master will increase coverage by 0.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #447      +/-   ##
==========================================
+ Coverage   82.93%   83.11%   +0.18%     
==========================================
  Files          25       25              
  Lines        3556     3595      +39     
  Branches      821      833      +12     
==========================================
+ Hits         2949     2988      +39     
  Misses        460      460              
  Partials      147      147              
Impacted Files Coverage Δ
pyxform/builder.py 77.18% <100.00%> (+1.79%) ⬆️
pyxform/question.py 93.17% <100.00%> (+0.57%) ⬆️
pyxform/survey.py 91.51% <100.00%> (+0.11%) ⬆️
pyxform/survey_element.py 90.17% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 245f5cd...0f1b6b9. Read the comment docs.

Copy link
Contributor

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did another pass through and everything is still looking reasonable to me. @MartijnR could you please look through the new failure case tests added and see if you think of any others? It'd also be great to get your thoughts on coverage for #70 and the inline question.

pyxform/question.py Outdated Show resolved Hide resolved
@lognaturel
Copy link
Contributor

Here's something else I wanted to mention -- there's no support added to xform2json and little thought has been given to the JSON representation. I think in general it's up to folks who rely on those tools to participate in review or submit the functionality after the fact if they need it.

@MartijnR
Copy link
Contributor

MartijnR commented Jun 4, 2020

Thank you! Will check it out and am aiming for tomorrow!

MartijnR
MartijnR previously approved these changes Jun 5, 2020
pyxform/question.py Outdated Show resolved Hide resolved
pyxform/tests_v1/test_trigger.py Show resolved Hide resolved
pyxform/tests_v1/test_typed_calculates.py Show resolved Hide resolved
@MartijnR
Copy link
Contributor

MartijnR commented Jun 5, 2020

there's no support added to xform2json and little thought has been given to the JSON representation. I think in general it's up to folks who rely on those tools to participate in review or submit the functionality after the fact if they need it

This makes sense to me. Didn't realize JSON wasn't used internally at all.

Thanks @lognaturel and @gushil!

@lognaturel
Copy link
Contributor

JSON wasn't used internally at all

It is as an intermediary step. If someone actually wanted to use the JSON for something directly, they might need to introduce an index from triggers to calculations. We did that after the JSON representation.

lognaturel
lognaturel previously approved these changes Jun 5, 2020
Copy link
Contributor

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phew, sorry about the force pushes! I'm feeling good about this and if @gushil and @MartijnR agree then I think we can merge. 🎉

@MartijnR
Copy link
Contributor

MartijnR commented Jun 5, 2020

Yes! :party: Thanks!

@gushil
Copy link
Contributor Author

gushil commented Jun 8, 2020

Yes, of course! Thanks @lognaturel @MartijnR

@lognaturel lognaturel merged commit ccab3ce into XLSForm:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "trigger" column to use value changes as triggers for calculations Add non-string calculation types
4 participants