Commit Graph

1 Commits

Author SHA1 Message Date
Adrian Packel 7517bc628c Add anonymous grading assignment field
Add an "anonymous grading" field to the Assignment object, and add a
checkbox for it in the assignment UI that appears when the feature flags
for anonymous moderated marking (the base flag) and AMM-related
anonymous grading are enabled.

closes GRADE-949

Test plan:
  * Run the attached migration and make sure there are no errors.
    Afterward, open up a database console and check that there
    are no values in the new column:

    > select * from assignments where anonymous_grading is null;

    The above query should return zero rows.
  * Make sure that undoing the migration using db:migrate:down
    properly deletes the new column (remember to re-run the
    migration before continuing!).
  * Enable Anonymous Moderated Marking at the account level if not
    already enabled. Create a new course and turn on the new
    Anonymous Marking flag for it.
  * Create an assignment and edit it.
  * There should be an "anonymous grading" checkbox on the edit page,
    and if you check (or uncheck) it its value should persist between
    views of the page.
  * Check that if you turn the new anonymous grading flag off for the
    course and edit the assignment again, the checkbox is no longer
    present.

Change-Id: Ie8955644d78243008bdcd51a05689c093d5d8a8b
Reviewed-on: https://gerrit.instructure.com/143402
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
Product-Review: Sidharth Oberoi <soberoi@instructure.com>
2018-03-19 17:47:56 +00:00