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 |
|---|---|---|
| .. | ||
| dev | Loading commit data... | |
| emails | Loading commit data... | |
| js | Loading commit data... | |
| registration | Loading commit data... | |
| ux/reference | Loading commit data... | |
| widgets | Loading commit data... | |
| 404.html | Loading commit data... | |
| 500.html | Loading commit data... | |
| activation_active.html | Loading commit data... | |
| activation_complete.html | Loading commit data... | |
| activation_invalid.html | Loading commit data... | |
| asset_index.html | Loading commit data... | |
| base.html | Loading commit data... | |
| checklists.html | Loading commit data... | |
| component.html | Loading commit data... | |
| container.html | Loading commit data... | |
| course-create-rerun.html | Loading commit data... | |
| course_info.html | Loading commit data... | |
| course_outline.html | Loading commit data... | |
| edit-tabs.html | Loading commit data... | |
| error.html | Loading commit data... | |
| export.html | Loading commit data... | |
| export_git.html | Loading commit data... | |
| group_configurations.html | Loading commit data... | |
| howitworks.html | Loading commit data... | |
| html_error.html | Loading commit data... | |
| import.html | Loading commit data... | |
| index.html | Loading commit data... | |
| login.html | Loading commit data... | |
| manage_users.html | Loading commit data... | |
| register.html | Loading commit data... | |
| settings.html | Loading commit data... | |
| settings_advanced.html | Loading commit data... | |
| settings_graders.html | Loading commit data... | |
| studio_xblock_wrapper.html | Loading commit data... | |
| temp-course-landing.html | Loading commit data... | |
| textbooks.html | Loading commit data... |