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 |
---|---|---|
.tx | Loading commit data... | |
cms | Loading commit data... | |
common | Loading commit data... | |
conf/locale | Loading commit data... | |
docs | Loading commit data... | |
lms | Loading commit data... | |
pavelib | Loading commit data... | |
requirements | Loading commit data... | |
scripts | Loading commit data... | |
test_root | Loading commit data... | |
vendor_extra/tinymce | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
.jshintrc | Loading commit data... | |
.ruby-gemset | Loading commit data... | |
.ruby-version | Loading commit data... | |
AUTHORS | Loading commit data... | |
Brewfile | Loading commit data... | |
CHANGELOG.rst | Loading commit data... | |
CONTRIBUTING.rst | Loading commit data... | |
Gemfile | Loading commit data... | |
Gemfile.lock | Loading commit data... | |
LICENSE | Loading commit data... | |
README.md | Loading commit data... | |
manage.py | Loading commit data... | |
mongo_indexes.md | Loading commit data... | |
package.json | Loading commit data... | |
pavement.py | Loading commit data... | |
pylintrc | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... |