OpenTree-Education / rhizone-lms

A learning management system focused on self-reflection.
https://rhi.zone
BSD 3-Clause Clear License
14 stars 7 forks source link

Implement functionality for the POST/assessments/program route #571

Closed mays4 closed 1 year ago

mays4 commented 1 year ago

Describe the Feature / Enhancement

The POST /assessments/program route needs to be implemented and fully tested.The POST /assessments/program creates a new programAssessment in the program_assessments table.The request is An object of type ProgramAssessment and return value is An object of type ProgramAssessment. This route does not expect URL params.

This issue continues the work from issue #515 Facilitator res.status(201).json(itemEnvelope(programAssessment)

Participant This should return an UnauthorizedError. Participants shouldn't have access to this route.

Additional Details and Resources

This route requires the principal ID (the user ID) from the session information. The only person with a Facilitator role should be able to create a program assessment.

Correct Project Selected

Labels

mays4 commented 1 year ago

EOD worked in Post route for program_assessments and service and tests. Tomorrow fix bugs in the tests