Implementing NYT's ICE track changes to Open Ended Assessements
Squashed commits to facilitate cherry-picking. Committers and original commit messages are: - ==> @caesar2164, * ==> @jrbl, ~ ==> @jbau - Added boolean to OE problem CMS settings to turn on ICE track changes - Added ICE init and tracking start/stop to HTML - Conditional in Peer Grading HTML for ICE container - CSS styling for ICE container and insertion/deletion elements - Added class to track changes HTML - Added ice.min.js as well as included it in the js requirements for peer grading - Use track_changes in peer_grading_problem * Refactor peer_grading_problem to lookup track_changes variable by problem location. * Whitelist ICE insert, delete tags * Adds ICE multi-user-editor insert and delete tags to the peer grading sanitize_html whitelist. - add reset button * Introduction ICE means we need its inline tags to get passed through to the feedback target, but we don't want malicious peer feedback providers introducing <script>, etc, so we use lxml.html.clean to scrub peer grading input. * Adds feedback URL autoheating. * Allows ICE <insert> and <delete> tags but not others. ~ add helptext re: EXPERIMENTAL FEATURES ~ address a bunch of @VikParuchuri review comments on ICE for OEE ~ remove extraneous code ~ change to new xmodule accessors ~ refactor filtering ~ fix broken test test_peer_grading_problem ~ Create track_changes.coffee and remove <script> from peer_grading_problem.html ~ Remove all reliance on id in favor of local scoping and classes ~ bring up test coverage somewhat ~ remove superflous $.scrollTo ~ TODO: Filtering
Showing
- common/lib/xmodule/xmodule/combined_open_ended_module.py 8 additions, 0 deletionscommon/lib/xmodule/xmodule/combined_open_ended_module.py
- common/lib/xmodule/xmodule/css/combinedopenended/display.scss 19 additions, 0 deletions...on/lib/xmodule/xmodule/css/combinedopenended/display.scss
- common/lib/xmodule/xmodule/js/src/peergrading/ice.min.js 224 additions, 0 deletionscommon/lib/xmodule/xmodule/js/src/peergrading/ice.min.js
- common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee 21 additions, 7 deletions...le/xmodule/js/src/peergrading/peer_grading_problem.coffee
- common/lib/xmodule/xmodule/js/src/peergrading/track_changes.coffee 47 additions, 0 deletions...b/xmodule/xmodule/js/src/peergrading/track_changes.coffee
- common/lib/xmodule/xmodule/peer_grading_module.py 23 additions, 17 deletionscommon/lib/xmodule/xmodule/peer_grading_module.py
- common/lib/xmodule/xmodule/tests/test_peer_grading.py 46 additions, 2 deletionscommon/lib/xmodule/xmodule/tests/test_peer_grading.py
- lms/static/sass/course/_staff_grading.scss 26 additions, 0 deletionslms/static/sass/course/_staff_grading.scss
- lms/templates/peer_grading/peer_grading_problem.html 16 additions, 4 deletionslms/templates/peer_grading/peer_grading_problem.html
Loading
Please register or sign in to comment