rails3: fix override timestamps

Change-Id: I5647ecdad8023dad1d5e463c6dbb8e2e1b927d33
Reviewed-on: https://gerrit.instructure.com/30856
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
rails3: fix failing files integration spec

Change-Id: I464f354a2f5bcc2106c01e1439ed2a2227427031
Reviewed-on: https://gerrit.instructure.com/30649
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
QA-Review: Cameron Matheson <cameron@instructure.com>
spec: vendored_gems coverage result merge with canvas

Change-Id: Ic2bd9a9045da4aa417f60b66ef08ca9d470ec2bb
Reviewed-on: https://gerrit.instructure.com/30829
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
fix discussion topic materialized view for sharding

found by rails 3 specs

Change-Id: I32a8c4a63eb335fbccef05e2aac9988444b8acb7
Reviewed-on: https://gerrit.instructure.com/30836
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix user merge spec for rails 3

Change-Id: I5e2b595521d785bb050828d838c85a6a189235f5
Reviewed-on: https://gerrit.instructure.com/30821
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
added points v percent toggle to srgb

fixes CNVS-11194

test plan:
  - go to SRGB with unweighted groups
    - The "Show Student Grade Totals as Points" box should be checked depending on current settings
    - if you toggle the checkbox and go to GB2 and/or student summary page, totals should change
    - if you weight assignment groups, in SRGB
      - the check box should disappear
      - totals should go to % in GB2 and grade summary page
      - final grade should not display points/possible points
    - if you unweight assignment groups
      - checkbox should reappear unchecked
      - totals should remain percent
      - final grade should display points/possible points
  - go to SRGB with weighted groups - totals toggles should not appear unless unweighted
  - note: changing weights is broken currently, will fix in another ticket

Change-Id: I489d17c1dee699f9959f1b9036c4a05fa47aa91e
Reviewed-on: https://gerrit.instructure.com/30255
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Mike Nomitch <mnomitch@instructure.com>
delete web conference participants prior to deleting a web conference

so we don't leave orphaned data around

Change-Id: I183dea150b1f9d700dce0d74b9829222d0448031
Reviewed-on: https://gerrit.instructure.com/30402
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Revert "spec: vendored_gems coverage result merge with canvas"

This reverts commit 19a27ae758482b0907c5b4bc45c63c2e2ccf322b.

Change-Id: Icd11deec1340057bf2a1fc541a9a7848d11d6b7e
Reviewed-on: https://gerrit.instructure.com/30881
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Product-Review: Shawn Meredith <shawn@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
Tested-by: Shawn Meredith <shawn@instructure.com>
send quiz_submissions url for jsonapi quiz api

Test plan:
  - As a teacher, create a quiz.
  - As the teacher, query the quiz api using the
    "Accept: application/vnd.api+json" header. You
    should see that "quiz_submissions" in "links" is null.
  - As a student, do the same query. "quiz_submissions" should be null
    again.
  - As the student, submit the quiz. Querying the API again, you should
    see a URL to the Quiz Submissions API for the user's quiz
    submission.
  - As the teacher, query the API again. You should see a link to
    the quiz submissions index API endpoint.

closes CNVS-11432

Change-Id: Ib2ee151c904b4800f811a85ea5142854ef8c3e3a
Reviewed-on: https://gerrit.instructure.com/30732
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Josh Simpson <jsimpson@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
value_to_array returns empty array for nil

test plan
- run specs

Change-Id: I185717113fe0f6e49c7cae800597ea530d4f6a61
Reviewed-on: https://gerrit.instructure.com/30812
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Reviewed-by: Jon Willesen <jonw@instructure.com>
Product-Review: Joel Hough <joel@instructure.com>
fix multipart header generation for rails 3 spec compatibility

Change-Id: Idec0d7c04437284703e71130f68e921a5e229785
Reviewed-on: https://gerrit.instructure.com/30799
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
change attachment callbacks for rails 3 compatibility

Change-Id: I696d920ae0e042593505e4b17ae1d0112dcd6825
Reviewed-on: https://gerrit.instructure.com/28967
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>
add created_at and updated_at to assignment select columns

needed for assignment overrides

Change-Id: I663469270959ea70bb808ebe2d31384fe17bc611
Reviewed-on: https://gerrit.instructure.com/30870
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>
set readonly to false for enrollment scopes in rails 3

Change-Id: Ia99e45a824476f1170a632c48dd950d177634f01
Reviewed-on: https://gerrit.instructure.com/30897
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>
spec: fix context_module_items_api_spec for rails 3

Change-Id: Ib037479481009b13effc1ed38701911e7191bbaf
Reviewed-on: https://gerrit.instructure.com/30878
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>
upgrade rails 3 gem for security fixes

Change-Id: I924299bc97d11e8e03623300e4310e156bd96d16
Reviewed-on: https://gerrit.instructure.com/30822
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
fix conversation delete_for_all for rails 3

Change-Id: I81540efad41bd6e8d5e128106797980090d334f5
Reviewed-on: https://gerrit.instructure.com/30879
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>
fix student reports with no params in api

fixes CNVS-11479

test plan
 - in api with no params do
 - run zero activity report
 - run no submissions report
 - reports should not fail

Change-Id: I059be8dfaab2658f4c7008acde92a971e9e0208b
Reviewed-on: https://gerrit.instructure.com/30896
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
rails3: fix quiz submission questions api spec failures

rails3 changed BigDecimal json serialization to return a string, but this breaks
bw-compat with our existing apis. rails4 provides an option to opt-out of this,
so opt-out if we can, but otherwise monkey-patch rails3 to use native behavior

Change-Id: I50796ed1d2d33aa1ab9fce576016b5b08b24b30c
Reviewed-on: https://gerrit.instructure.com/30858
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
QA-Review: Derek DeVries <ddevries@instructure.com>
rails3: fix normalization for values comparison in quiz submissions api

in rails3: 0.0.to_json => "0.0"
in rails2: 0.0.to_json => "0"
Since we're comparing the values and json strings this was breaking the test

Change-Id: I65d517cd9f0707e75f66b436d9dabb324fb09293
Reviewed-on: https://gerrit.instructure.com/30859
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
QA-Review: Derek DeVries <ddevries@instructure.com>