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
[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 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