spec: fix quiz submissions api spec

Change-Id: I822246f2a7dd4dde0522be8138a7777216e3212d
Reviewed-on: https://gerrit.instructure.com/28267
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
fix active record update_all with joins for rails 3

also update due_date_cacher sql to not break in rails 3
when the joins are applied in reverse order

Change-Id: I9638f0483cc7c995773b512e0f9bfe1fdc3aa682
Reviewed-on: https://gerrit.instructure.com/28173
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
correct comments re. extent of ruby compatibility fixes

having audited all of the compatibility fixes for
ruby < 2.0 on rails 3, this commit simply corrects
a comment which stated that the fixes were just for
rails 2.3. That is to say, all the CANVAS_RAILS2
guards are correct in config/initializers/
ruby_version_compat.rb

refs CNVS-9520

Change-Id: I62f0a95655a3a2ec114b238cd3215fe4f43871b5
Reviewed-on: https://gerrit.instructure.com/28147
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Anthus Williams <awilliams@instructure.com>
QA-Review: Anthus Williams <awilliams@instructure.com>
add publish state text to discussion edit page

fixes CNVS-9952

test plan:
  * enable draft state in a course;
  * create a published discussion topic and an unpublished
    discussion topic;
  * attempt to edit each of these topics and verify that
    "Published" and "Not Published" text is visible above
    the title field;
  * attempt to create a new topic and verify that no
    published text is visible;
  * attempt to edit a topic in a course without draft state
    enabled and verify that published/unpublished text is
    not visible.

Change-Id: I137e14698a991276c8aa6419ab3e79a0cf99f460
Reviewed-on: https://gerrit.instructure.com/28145
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Product-Review: Zach Pendleton <zachp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
add foreign keys part 12

refs CNVS-6202

Change-Id: I815282362e6135d1311532d486203b901621f49b
Reviewed-on: https://gerrit.instructure.com/11537
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Anthus Williams <awilliams@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
bullet gem test build

Change-Id: Id718aaf59bc854dbd85c55b6a51fda2a9b32b941
Reviewed-on: https://gerrit.instructure.com/28079
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Hannah Bottalla <hannah@instructure.com>
Product-Review: Hannah Bottalla <hannah@instructure.com>
QA-Review: Hannah Bottalla <hannah@instructure.com>
Tested-by: Hannah Bottalla <hannah@instructure.com>
quiz index publish button to use jsonapi

closes CNVS-10283

test plan:
  - create a quiz
  - go to ember quizzes index
  - from the index page, click on the cloud to publish/unpublish the quiz
    - quiz should change from un-published to published (and back)

Change-Id: Ic16f9fc5c463bcee5738c8e8fe76e6688212526a
Reviewed-on: https://gerrit.instructure.com/28106
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>