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

jr:count value should always be coerced to number #789

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Aug 1, 2024

Closes #783

What has been done to verify that this works as intended?

I've improved automated tests and performed manual ones using the form attached below.

Why is this the best possible solution? Were any other approaches considered?

This improved AnswerDataUtil#answerDataToInt so that it supports parsing StringData to integers. It was a missing piece and that's why it was not possible to use numbers from an external CSV in repeat_count.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

It should just add support for using numbers from an external CSV in repeat_count, nothing else should be affected.

Do we need any specific form for testing your changes? If so, please attach one.

I've used this:
families.csv
families_form.xlsx

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

@grzesiek2010 grzesiek2010 marked this pull request as ready for review August 1, 2024 19:34
@grzesiek2010 grzesiek2010 requested a review from seadowg August 1, 2024 19:35
@seadowg seadowg merged commit 8b6e745 into getodk:master Aug 9, 2024
3 checks passed
@grzesiek2010
Copy link
Member Author

I think this should be tested, do you agree @seadowg?

@seadowg
Copy link
Member

seadowg commented Aug 9, 2024

@grzesiek2010 yup sounds good!

eyelidlessness added a commit to getodk/web-forms that referenced this pull request Dec 11, 2024
eyelidlessness added a commit to getodk/web-forms that referenced this pull request Dec 12, 2024
eyelidlessness added a commit to getodk/web-forms that referenced this pull request Dec 12, 2024
eyelidlessness added a commit to getodk/web-forms that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jr:count value should always be coerced to number
2 participants