feat: Remove all proctortrack references and add support for requires_escalation_email and show_review_rules configs - #37576
Conversation
|
Thanks for the pull request, @mlabeeb03! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
9b7db37 to
651c45d
Compare
|
@kdmccormick the initial draft PR is ready, just FYI. |
deb96fc to
8416aa4
Compare
fb35fd6 to
d500f5d
Compare
d500f5d to
98d50c5
Compare
35ebb41 to
787a10e
Compare
…email and show_review_rules configs All references to the hardcoded 'proctortrack' string have been removed from the codebase in addition to the SHOW_REVIEW_RULES waffle flag. It was used to determince whether an escalation email is required and whether review rules should be shown. These decisions are now made based on the value of 'requires_escalation_email' and 'show_review_rules' config in the default proctoring backend. Removed translation commands, mock variables and user facing strings that contained 'proctortrack'. Updated all test cases that were using proctortrack to use the new config variables. See this ticket for further information: openedx#36329
529b623 to
7930891
Compare
…n escalation email This change is a requirement for frontend-app-learning. It will no longer use hardcoded strings to check if an escalation email is required or not. Instead the api will return the list of proctoring backends that require and escalation email.
7930891 to
ec4fcad
Compare
|
Hey @kdmccormick I added a new commit. Updated the API because |
kdmccormick
left a comment
There was a problem hiding this comment.
Thanks for the work so far @mlabeeb03
dfd6594 to
9de0380
Compare
9de0380 to
bfae000
Compare
Co-authored-by: Kyle McCormick <kyle@kylemccormick.me>
bfae000 to
2d700e1
Compare
|
@kdmccormick I've fixed the unit tests. You may review the PR. |
6db178b to
2253607
Compare
8d00a7b to
0962b41
Compare
|
@kdmccormick you can merge it now. |
…and show_review_rules options (openedx#37576) BREAKING CHANGE: All references to the hardcoded 'proctortrack' string have been removed from the codebase, as well as the `studio.show_review_rules` waffle flag. These were used to determine whether an escalation email is required and whether review rules should be shown. These decisions are now made based on the value of 'requires_escalation_email' (default False) and 'show_review_rules' (default True) config items in the PROCTORING_BACKENDS entry. Additionally: * The proctoring info api will now return the list of providers which require an escalation email so that frontend-app-learning does not need to use a hardcoded check agaist the provider name 'proctortrack'. * Removed translation commands, mock variables and user facing strings that contained 'proctortrack'. * Updated all test cases that were using proctortrack to use fake providers names. Part of: openedx#36329
…and show_review_rules options (openedx#37576) BREAKING CHANGE: All references to the hardcoded 'proctortrack' string have been removed from the codebase, as well as the `studio.show_review_rules` waffle flag. These were used to determine whether an escalation email is required and whether review rules should be shown. These decisions are now made based on the value of 'requires_escalation_email' (default False) and 'show_review_rules' (default True) config items in the PROCTORING_BACKENDS entry. Additionally: * The proctoring info api will now return the list of providers which require an escalation email so that frontend-app-learning does not need to use a hardcoded check agaist the provider name 'proctortrack'. * Removed translation commands, mock variables and user facing strings that contained 'proctortrack'. * Updated all test cases that were using proctortrack to use fake providers names. Part of: openedx#36329
Description
All references to the hardcoded 'proctortrack' string have been removed from the codebase in addition to the SHOW_REVIEW_RULES waffle flag. It was used to determine whether an escalation email is required and whether review rules should be shown. These decisions are now made based on the value of 'requires_escalation_email' and 'show_review_rules' config in the course's proctoring backend.
Removed translation commands, mock variables and user facing strings that contained 'proctortrack'.
Updated all test cases that were using proctortrack to use the new config variables.
Add a test case that verifies the functionality of the new
show_review_rulesconfig.Testing information
Test cms/djangoapps/contentstore/api/views/course_validation.py by making a get request and verifying the correct value of

requires_escalation_email:Test cms/djangoapps/models/settings/course_metadata.py by making sure the the

Proctoring exam escalation contactis not visible whenrequires_escalation_emailis not set in the proctoring backend:Also test that if you do not provide the escalation email when

requires_escalation_emailis set, you should see an error message in API call:You can see this error on the main course page as well as while updating the
Proctoring providerin the advanced course settings.Supporting information
More details available here: #36329