Skip to content

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

Merged
rijuma merged 2 commits into
masterfrom
rijuma/removing-old-special-exams-views
Sep 19, 2024
Merged

Added a check to initialize legacy proctoring dashboard only if it's being used#35499
rijuma merged 2 commits into
masterfrom
rijuma/removing-old-special-exams-views

Conversation

@rijuma

@rijuma rijuma commented Sep 18, 2024

Copy link
Copy Markdown
Contributor

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
@rijuma
rijuma deleted the rijuma/removing-old-special-exams-views branch September 19, 2024 14:50

$activeSection = null;

var usesProctoringLegacyView = function () {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

1 similar comment
@edx-pipeline-bot

Copy link
Copy Markdown
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