[WIP] Fix issue with multiple responses for a single user returned by generate_report_data

Description

The current problem response code has a bug that causes it to only return a response for each user for each block.

The following code is generating a dictionary keyed on username for the report generated for each block. If a block contains multiple responses per user, then later responses will overwrite older responses.

https://github.com/edx/edx-platform/blob/8593d4dc711c67535a0a0a98fa32b84ce6abc0c1/lms/djangoapps/instructor_task/tasks_helper/grades.py#L674-L678

*JIRA tickets*: TBD

*Discussions*: TBD

*Sandbox URL*: TBD - sandbox is being provisioned.

*Testing instructions*:

1. Generate a problem response report for a block containing multiple questions and responses.
2. The generated report should include all responses.

*Author notes and concerns*:
Since there are multiple responses for each user state, I am not entirely sure how this should be handled. Currently, it just duplicates the state for each row, however, there may be a good argument for not doing that if it breaks current flows that use the state. (I remember there were concerns when the original PR for this removed the state entirely).

*Reviewers*

  • [ ] TBD

  • [ ] edX reviewer[s] TBD

Assignee

David Ormsbee

Reporter

Open Source Pull Request Bot

Contributor Name

Kshitij Sobti

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

Educator Experiences - Course Operations

Platform Map Area (Levels 3 & 4)

Course Data Download

Blended Hour Utilization Percentage

None

Priority

Unset
Configure