This pull request resolves #575 by fully implementing and testing the [GET] assessments/assessmentId/submissions route. The [GET] assessments/assessmentId/submissions retrieve the list of submissions in the assessment_submissions table.
If the current principal is a facilitator, retrieve all of the submissions from all participants.
If the current principal is a participant, only retrieve all of the submissions from the current principal_id.
This issue continues the work from issue #515
Checklist
[x] Related issue appears at beginning of pull request title with pound sign, and title describes the changes being proposed.
[x] Related issue is linked in pull request description using closing keywords.
[x] The appropriate label has been chosen for this pull request.
[x] The correct project has been selected for this pull request.
[x] All commits in this branch, including merge commits, begin with the issue number and a pound sign.
[x] Tests have been added, where appropriate; or, no tests are relevant for this pull request.
[x] This pull request contains UI changes, and screenshots of those UI images appear below; or, this pull request contains no UI changes.
Proposed changes
This pull request resolves #575 by fully implementing and testing the [GET] assessments/assessmentId/submissions route. The [GET] assessments/assessmentId/submissions retrieve the list of submissions in the assessment_submissions table.
If the current principal is a facilitator, retrieve all of the submissions from all participants. If the current principal is a participant, only retrieve all of the submissions from the current principal_id.
This issue continues the work from issue #515
Checklist