Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: exam end return url #171

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

zacharis278
Copy link
Contributor

@zacharis278 zacharis278 commented Sep 12, 2023

JIRA: MST-2099

Description: Sets a return url for the proctoring tool when performing an LtiEndAssessment launch

Required so tool can properly redirect learner back after ending the assessment once openedx/frontend-lib-special-exams#117 is implemented.

@@ -303,6 +298,11 @@ def end_assessment(request, attempt_id):
# Platform MUST send an End Assessment message to the Proctoring Tool. Otherwise, the Assessment Platform can
# complete its normal post-assessment flow.
if end_assessment_return:
# user is authenticated via JWT so use that to create a
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this since it's only necessary if we're performing an end assessment launch

@@ -328,7 +329,7 @@ def end_assessment(request, attempt_id):

return redirect(preflight_url)

return JsonResponse({})
return redirect(get_exam_url_path(exam.course_id, exam.content_id))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will leave us on a blank page with '{}'. If we don't need to perform an LtiEndAssessment launch return to the exam section.

@zacharis278 zacharis278 force-pushed the zhancock/end-assessment-return branch 3 times, most recently from bd13db5 to 7c80239 Compare September 12, 2023 18:11
@zacharis278 zacharis278 merged commit 87be1f6 into main Sep 13, 2023
7 checks passed
@zacharis278 zacharis278 deleted the zhancock/end-assessment-return branch September 13, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants