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

Checking relevance of an inner repeat group should be possible even if its parent group does not exist yet #710

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Mar 3, 2023

Closes #5469

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

I've tested the fix manually with ODK Collect and added automated tests.

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

The problem was that in nested repeats we weren't able to check the relevance of an inner group if its parent group didn't exist yet. It caused an NPE. This is a small fix and probably there is nothing to discuss here.

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 fix the issue and have no side effects. It's a small fix so it's rather safe but it would be good to play with nested repeats more in the future. I will add that to the todo list that we use with the QA team.

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

The form from: getodk/collect#5264 for example

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

No.

@lognaturel lognaturel merged commit 83c9f2b into master Mar 13, 2023
@lognaturel lognaturel deleted the COLLECT-5264 branch March 13, 2023 21:16
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.

Removing one of the groups in nested repeats forms and clicking the back button causes the crash of the app
2 participants