Skip to content

Conversation

@AdityaKBhadragond14
Copy link
Collaborator

@AdityaKBhadragond14 AdityaKBhadragond14 commented Sep 13, 2023

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes google#2162

Description
The issue was for "unpackrepeatedgroups" when there is only group item in the questionnaire response. If the questionnaire response has only one group item in the questionnaire response then the answer will be empty in the questionnaire response else if the questionnaire response has more than one repeated group then the items will be in the answer. To fix these in the code if the questionnaire response has answer then do the unpacking because then the questionnaire response will have repeated groups else if there is only one group item in the questionnaire response it does not make sense to do the unpack logic.

Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type
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).

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.

1 participant