This commit adds validation for course advanced settings. Currently when course administrators make invalid changes in the Settings/Advanced Settings tab, they're not notified through a new modal window of the list of invalid settings changes. * Extending CourseMetadata - Previously, we only had update_from_json method in CourseMetadata.py, and it was only validating one field every POST request. - Now we have validate_and_update_from_json method that encapsulates the functionality of update_from_json into a validation call - To avoid discrepancy of validation standards between modules, validation uses the from_json method implemented to each field in xblock. * Different Response in advanced settings ajax requests - After receiving a POST ajax request, course.py calls validate_and_update_from_json, and sends a json object of either: 1) valid course metadata model 2) error objects * Error Messages shown in validation-error-modal - error objects passed through ajax are shown in a separate modal.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
2014 | Loading commit data... | |
2014_Uni | Loading commit data... | |
capa | Loading commit data... | |
conditional | Loading commit data... | |
conditional_and_poll | Loading commit data... | |
course_info_updates | Loading commit data... | |
dot-underscore | Loading commit data... | |
embedded_python | Loading commit data... | |
graded | Loading commit data... | |
graphic_slider_tool | Loading commit data... | |
import_draft_order | Loading commit data... | |
imports | Loading commit data... | |
manual-testing-complete | Loading commit data... | |
open_ended | Loading commit data... | |
open_ended_nopath | Loading commit data... | |
pure_xblock | Loading commit data... | |
pure_xblock_draft | Loading commit data... | |
pure_xblock_public | Loading commit data... | |
self_assessment | Loading commit data... | |
simple | Loading commit data... | |
simple_with_draft | Loading commit data... | |
split_test_module | Loading commit data... | |
split_test_module_draft | Loading commit data... | |
static | Loading commit data... | |
test_about_blob_end_date | Loading commit data... | |
test_end | Loading commit data... | |
test_exam_registration | Loading commit data... | |
test_import_course | Loading commit data... | |
test_import_course_2 | Loading commit data... | |
test_start_date | Loading commit data... | |
test_unicode | Loading commit data... | |
tilde | Loading commit data... | |
toy | Loading commit data... | |
two_toys | Loading commit data... | |
uploads | Loading commit data... | |
word_cloud | Loading commit data... |