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 |
|---|---|---|
| .. | ||
| advanced_settings.feature | Loading commit data... | |
| advanced_settings.py | Loading commit data... | |
| checklists.feature | Loading commit data... | |
| checklists.py | Loading commit data... | |
| common.py | Loading commit data... | |
| component.feature | Loading commit data... | |
| component.py | Loading commit data... | |
| component_settings_editor_helpers.py | Loading commit data... | |
| course-export.feature | Loading commit data... | |
| course-export.py | Loading commit data... | |
| course-outline.feature | Loading commit data... | |
| course-outline.py | Loading commit data... | |
| course-settings.feature | Loading commit data... | |
| course-settings.py | Loading commit data... | |
| course-team.feature | Loading commit data... | |
| course-team.py | Loading commit data... | |
| course-updates.feature | Loading commit data... | |
| course-updates.py | Loading commit data... | |
| course_import.py | Loading commit data... | |
| courses.feature | Loading commit data... | |
| courses.py | Loading commit data... | |
| discussion-editor.feature | Loading commit data... | |
| discussion-editor.py | Loading commit data... | |
| grading.feature | Loading commit data... | |
| grading.py | Loading commit data... | |
| help.feature | Loading commit data... | |
| help.py | Loading commit data... | |
| html-editor.feature | Loading commit data... | |
| html-editor.py | Loading commit data... | |
| pages.feature | Loading commit data... | |
| pages.py | Loading commit data... | |
| problem-editor.feature | Loading commit data... | |
| problem-editor.py | Loading commit data... | |
| signup.feature | Loading commit data... | |
| signup.py | Loading commit data... | |
| textbooks.feature | Loading commit data... | |
| textbooks.py | Loading commit data... | |
| transcripts.feature | Loading commit data... | |
| transcripts.py | Loading commit data... | |
| upload.feature | Loading commit data... | |
| upload.py | Loading commit data... | |
| video.feature | Loading commit data... | |
| video.py | Loading commit data... | |
| video_editor.py | Loading commit data... | |
| video_handout.py | Loading commit data... |