Enable Course Olx Validation during Course Import (#27300)
* Enable import failure and email with Errors/Warnings This PR enables course import failure in case of olx validation errors. Here is the flow. * Course Import tries to import foo.tar.gz into their course shell * Course olx contains validation errors * During course import, olx is validated and import is failed with the error message "Course olx validation failed. Please check your email." * System generates an email with ERRORs & WARNINGs in the body of the email. This PR also adds a waffle flag contentstore.bypass_olx_failure. The purpose of this test flag is to allow course teams to unblock by enabling them to bypass the the olx-validation failure. The workaround is shared on the ticket TNL8214. * Disable olx validation out of the box.
Showing
- cms/djangoapps/cms_user_tasks/signals.py 19 additions, 2 deletionscms/djangoapps/cms_user_tasks/signals.py
- cms/djangoapps/cms_user_tasks/tasks.py 1 addition, 1 deletioncms/djangoapps/cms_user_tasks/tasks.py
- cms/djangoapps/cms_user_tasks/tests.py 100 additions, 15 deletionscms/djangoapps/cms_user_tasks/tests.py
- cms/djangoapps/contentstore/errors.py 1 addition, 0 deletionscms/djangoapps/contentstore/errors.py
- cms/djangoapps/contentstore/tasks.py 11 additions, 11 deletionscms/djangoapps/contentstore/tasks.py
- cms/djangoapps/contentstore/tests/test_utils.py 16 additions, 7 deletionscms/djangoapps/contentstore/tests/test_utils.py
- cms/djangoapps/contentstore/toggles.py 21 additions, 0 deletionscms/djangoapps/contentstore/toggles.py
- cms/envs/common.py 1 addition, 1 deletioncms/envs/common.py
- lms/envs/common.py 1 addition, 1 deletionlms/envs/common.py
Loading
Please register or sign in to comment