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: launch instructor tool #146

Merged
merged 5 commits into from
Jun 28, 2023
Merged

feat: launch instructor tool #146

merged 5 commits into from
Jun 28, 2023

Conversation

zacharis278
Copy link
Contributor

@zacharis278 zacharis278 commented Jun 27, 2023

MST-1948

Creates a new view that will initiate a basic LTI 1.3 launch into the proctoring vendor's instructor tool. I opted to make this a view since returning the URL just adds an extra step to the UI to fetch it and stick it in an iframe. This way we just load up an iframe with src=http://edx-exams.edx.org/lti/exam/28/instructor_tool and this view does the rest.

Original concept was to build a generic launch view into the lti-consumer library based on this POC openedx/xblock-lti-consumer#386. That PR documents the issues I found with that approach.

@zacharis278 zacharis278 marked this pull request as ready for review June 27, 2023 19:41

self.exam = Exam.objects.create(
resource_id=str(uuid.uuid4()),
self.exam = ExamFactory(
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 is just a refactor to remove more verbose data setup and replace it with factory methods.

@@ -299,6 +299,17 @@ def get_exam_by_content_id(course_id, content_id):
return None


def get_exam_by_id(exam_id):
"""
Retrieve an exam filtered by a course_id and content_id
Copy link
Member

Choose a reason for hiding this comment

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

Nit: comment does not match what the function is using to filter

Copy link
Member

@alangsto alangsto left a comment

Choose a reason for hiding this comment

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

One nit, otherwise LGTM 👍

@zacharis278 zacharis278 merged commit cdb5835 into main Jun 28, 2023
@zacharis278 zacharis278 deleted the zhancock/instructor-launch branch June 28, 2023 16:02
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