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

#546 Implement function for the GET /submissions/:submissionId route #515 #562

Closed mays4 closed 1 year ago

mays4 commented 1 year ago

Proposed changes

This pull request close #546 which adding tests in service file and get submission test and functions

This issue continues the work from issue https://github.com/OpenTree-Education/rhizone-lms/issues/515. What does this pull request propose to change? This route requires URL parameters of assessmentId (the ID of a program assessment) and submissionId (the ID of a assessment submission) and expects no body in the request. The response should contain the following:

Facilitator

itemEnvelope({ "curriculum_assessment": CurriculumAssessment, (with 'questions' and 'answers' and correct answers) "program_assessment": ProgramAssessment, "principal_program_role": programRole, "assessment_submission": AssessmentSubmission (with 'responses') }); Participant

"curriculum_assessment": CurriculumAssessment, (with 'questions' and 'answers' and correct answers (only if graded)) "program_assessment": ProgramAssessment, "principal_program_role": programRole, "assessment_submission": AssessmentSubmission (with 'responses') }); Constructing the functions 1-getAssessmentSubmission(). 2-findProgramAssessment(). 3-getPrincipalProgramRole(). 4-getCurriculumAssessment().

Checklist