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

Fix zip index based mapping issue when unpacking repeat groups #1973

Merged
merged 7 commits into from
May 3, 2023

Conversation

maimoonak
Copy link
Collaborator

Fixes #1972

Description
The issue is that the zip index mapping for questionnaire and questionnaire-response item can not be used when unpacking the items while generating questionnaire-response. If items before the group are missed due to enablement it just skip the data entered into item embedded into groups.

Alternative(s) considered
zip index mapping for questionnaire and questionnaire-response item can not be used because there could be missing items from questionnaire-response due to enablement condition

Type
Choose one: Bug fix

Screenshots (if applicable)

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

@jingtang10 jingtang10 changed the title Fix zip index based mapping issue in uppack repeat groups extension Fix zip index based mapping issue in unpack repeat groups extension Apr 21, 2023
@jingtang10 jingtang10 changed the title Fix zip index based mapping issue in unpack repeat groups extension Fix zip index based mapping issue in unpack repeat groups Apr 21, 2023
@jingtang10 jingtang10 changed the title Fix zip index based mapping issue in unpack repeat groups Fix zip index based mapping issue when unpacking repeat groups Apr 21, 2023
Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

thanks for this @maimoonak.

about should not modify other items while unpacking repeated groups: i think the test is wrong, the link ids in the questionnaire response should be non-repeated... can you fix please? thanks!

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

thanks @maimoonak

…extensions/MoreQuestionnaireItemComponents.kt
@jingtang10 jingtang10 enabled auto-merge (squash) May 3, 2023 10:51
@jingtang10 jingtang10 merged commit 675237f into google:master May 3, 2023
@jingtang10 jingtang10 deleted the fix_unpack_rpt_grp branch May 3, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Items nested in group do not reflect in questionnaire-response with skip logic
3 participants