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

Added a check to initialize legacy proctoring dashboard only if it's being used #35499

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

rijuma
Copy link
Member

@rijuma rijuma commented Sep 18, 2024

Description

The new https://github.com/openedx/frontend-lib-special-exams should take care of the proctoring dashboard. The old views are still being loaded in the background. This can be seen since the old Backbone views extracted the course_id from an element student-proctored-exam-container that's not being rendered any more, this makes the old view take undefined as the course_id and some endpoints are being called with this value in them.

When the new proctoring MFE is being used, a div with id="proctoring-mfe-view" is rendered. I'm checking for its presence in the DOM to detect if it's being used, and if so, initialization on the legacy views is skipped.

Useful information to include:

  • Which edX user roles will this change impact? "Instructor"

Testing instructions

  • Visit the exams testing course (or any course with an LTI-based proctoring provider): Course | edX.
  • Open the developer tools to the network tab.
  • Click the “Instructor” tab at the top.
  • Observe there are no requests with undefined in their path in the developer tools network tab (or returning 404 code whatsoever).

Deadline

  • None

@rijuma rijuma force-pushed the rijuma/removing-old-special-exams-views branch from bda035f to 18d6f6b Compare September 19, 2024 13:49
@rijuma rijuma force-pushed the rijuma/removing-old-special-exams-views branch from 18d6f6b to 61c3f6e Compare September 19, 2024 13:49
@rijuma rijuma changed the title Remove old Special Exams views from instructor dashboard Added a check to initialize legacy proctoring dashboard only if it's being used Sep 19, 2024
@rijuma rijuma marked this pull request as ready for review September 19, 2024 14:08
@rijuma rijuma merged commit ca11c14 into master Sep 19, 2024
49 checks passed
@rijuma rijuma deleted the rijuma/removing-old-special-exams-views branch September 19, 2024 14:50
@@ -50,6 +50,12 @@ such that the value can be defined later than this assignment (file load order).

$activeSection = null;

var usesProctoringLegacyView = function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why name this function this way? Why not name the function usesProctoringMFEView and use the logic in a reverse way?

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

4 participants