Skip to content

Conversation

farmerpaul
Copy link
Contributor

@farmerpaul farmerpaul commented Feb 13, 2025

  • Tests for the changes have been added

📝 Description

🔗 Jira Ticket M2-8688

This change updates function that evaluates what to send to the BE for the response data identifier (identifier string), supporting both Short Text and, now, Single Selection item types. It uses the value from the first item in the activity containing a response identifier, per existing behaviour.

🪤 Peer Testing

  1. Create an activity containing a Single Selection item with Response Data Identifier checked. Assign it two options with labels Option 1 and Option 2.
  2. Perform an assessment of that activity in the Web App, selecting Option 1, and submit your answers.
    Expected outcome: Answers should be submitted successfully.
  3. Perform a second assessment, selecting Option 2, and submit your answers.
    Expected outcome: Answers should be submitted successfully.
  4. In the Admin App, navigate to Dataviz for the respondent participant to view their submissions.
  5. Adjust the filter date range to be only today's date.
  6. Expand the More Filters section, then enable the Filter by identifier toggle:
  7. Open the Response Identifier dropdown.
    Expected outcome: It should contain Option 1 and Option 2 as possible response identifiers.
  8. Select the Option 1 response identifier from the dropdown.
    Expected outcome: Only your first submission should be shown.
  9. Deselect the Option 1 response identifier and select the Option 2 response identifier.
    Expected outcome: Only your second submission should be shown.

This change updates function that evaluates what to send to the BE for
the response data identifier (`identifier` string), now supporting both
Short Text and Single Selection item types. It uses the value from the
first item in the activity containing a response identifier, per
existing behaviour.
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-578.d15zn9do8xbzga.amplifyapp.com

@farmerpaul farmerpaul marked this pull request as ready for review February 13, 2025 23:45
@farmerpaul farmerpaul merged commit 023659f into dev Feb 19, 2025
4 checks passed
@farmerpaul farmerpaul deleted the feat/M2-8688-submit-answers-with-single-selection-response-data-identifier branch February 19, 2025 23:02
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.

3 participants