canvas-lms/app/serializers
Mark Neuburger 1d1994eff1 Add disable_timer_autosubmission to Quiz model
Test plan:

1. Ensure that the new migration has run.
    1. Because of 2 existing migrations with future dates, you may need
       to rollback 3 steps before you can run the new migration.
    2. Run `rake db:rollback STEP=3` followed by `rake db:migrate` in
       the web container.
2. Create a new Quiz in the Canvas UI.
3. In the Rails console, verify that the `disable_timer_autosubmission`
   value for this quiz is equal to false:
`Assignment.last.quiz.disable_timer_autosubmission`
4. Update the value to true:
   `Assignment.last.quiz.update_attribute(:disable_timer_autosubmission,
true)`
5. Verify that the value is now equal to `true` using the command in
   step 3.
6. A new Quiz attribute `timer_autosubmit_disabled?` is exposed that
   factors in the feature flag as well. Verify that this value returns
as expected with different combinations of the feature flag and
`disable_timer_autosubmission`.
    1. Read this flag in the Rails console with:
       `Assignment.last.quiz.timer_autosubmit_disabled?`

Refs PFS-15510
Refs PFS-15511
flag=timer_without_autosubmission

Change-Id: I4749bdd46dd06a425141636c41e0f30c0dfc88a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/233860
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Williams <jamesw@instructure.com>
Reviewed-by: Stephen Kacsmark <skacsmark@instructure.com>
Product-Review: Chad McGuire <cmcguire@instructure.com>
QA-Review: Petra Ashment <pashment@instructure.com>
2020-05-06 14:31:16 +00:00
..
canvas rails 5.1: api specs 2017-07-27 18:55:23 +00:00
live_assessments da licença part 21 2017-04-27 21:51:31 +00:00
live_events Add asset_name property to asset_accessed event type 2019-08-20 15:28:14 +00:00
lti Add lti11_legacy_user_id to names and roles 2019-10-21 22:27:27 +00:00
polling da licença part 21 2017-04-27 21:51:31 +00:00
quizzes Add disable_timer_autosubmission to Quiz model 2020-05-06 14:31:16 +00:00
quizzes_next a new endpoint to return both NQ and Old quiz json 2019-12-16 19:36:38 +00:00
attachment_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00
developer_key_account_binding_serializer.rb Fix disabled control on binding create 2018-04-27 13:32:06 +00:00
grading_period_serializer.rb stop loading overrides in speedgrader 2018-03-19 15:14:21 +00:00
grading_period_set_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00
late_policy_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00
locked_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00
permissions_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00
progress_serializer.rb da licença part 21 2017-04-27 21:51:31 +00:00