The GET /program/:programAssessmentId/submissions route needs to be implemented and fully tested. The GET /program/:programAssessmentId/submissions gets a list of all submissions for a given program assessment (for a participant, their submissions; for a facilitator, all participant submissions).
There needs to be a test coverage for the GET /program/:programAssessmentId/submissions route and the service file functions it needs. We need to test this route to ensure the code written for the test will behave as expected by the protocol we previously defined.
This issue continues the work from issue #515.
Additional Details and Resources
This route requires the principal ID (the user ID) from the session information, this route expects a program assessment ID in the URL as a URL parameter, and expects nothing in the request body. The response should contain the following:
Facilitator
res.json(itemEnvelope(An object of type AssessmentWithSubmissions with submissions from all program participants));
Participant
res.json(itemEnvelope(An object of type AssessmentWithSubmissions with only their submissions));
Correct Project Selected
[X] This issue is linked to the appropriate project
Describe the Feature / Enhancement
The
GET /program/:programAssessmentId/submissions
route needs to be implemented and fully tested. TheGET /program/:programAssessmentId/submissions
gets a list of all submissions for a given program assessment (for a participant, their submissions; for a facilitator, all participant submissions).There needs to be a test coverage for the
GET /program/:programAssessmentId/submissions
route and the service file functions it needs. We need to test this route to ensure the code written for the test will behave as expected by the protocol we previously defined.This issue continues the work from issue #515.
Additional Details and Resources
This route requires the principal ID (the user ID) from the session information, this route expects a program assessment ID in the URL as a URL parameter, and expects nothing in the request body. The response should contain the following:
Facilitator
Participant
Correct Project Selected
Labels