rails3: the i18n scope for AR error messages changed

Change-Id: Ia739646db69ceec430a1968315d8191221e49d7e
Reviewed-on: https://gerrit.instructure.com/30792
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
outcome results index api

fixes CNVS-10898

test plan
- fetch outcome results using the new endpoint
- ensure that outcome results are returned
- fetch outcome results with include[]="alignments"
- ensure that alignments are included

filtering and including is largely identical to the result rollup
endpoint. may want to exercise some of those that make sense, too.
e.g. filtering by user_ids makes sense and should work. including
courses or an aggregate parameter doesn't make sense, so we don't
care if it doesn't work

Change-Id: Ifd1540304cc5e0f98d3c2e6121a3d984b8b662b5
Reviewed-on: https://gerrit.instructure.com/30451
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>
rails3: fixes for take quiz presenter spec

fixed:
- spec was being to clever and was sharing state between tests, Since the let
statement is lazy loaded, there is no need for adding this reload! stuff on
the object at runtime to reset state.

Change-Id: Ie056600653ea1dcb578b3bd15e1e8bb67dc1f61d
Reviewed-on: https://gerrit.instructure.com/30800
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>
extract auto_handle to new canvas_uuid gem

Change-Id: Ic226e61e900532cc3acf08444b316b6e2bb6b368
Reviewed-on: https://gerrit.instructure.com/30049
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
fix auth_spec for reails 3

 * use 'HTTP_AUTHORIZATION' for header, not :authorization or
   'Authorization'
 * fix stubbing of forgery protection (in Rails 3, the instance method
   doesn't chain to the class method)
 * fix re-ordering of AuthLogic callback chain for rails 3

Change-Id: I6f190995cee7fd54076e786b17eba430ae03a1c0
Reviewed-on: https://gerrit.instructure.com/30796
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
upgrade authlogic to 3.3 for rails 3.2

Change-Id: I2bb6466c3d8ff48476698733ed2148799664bfaa
Reviewed-on: https://gerrit.instructure.com/30798
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
spec: fix general_api_spec for rails 3

Change-Id: Ibf4fe359a92305957f9d44204c248677a8d23b3c
Reviewed-on: https://gerrit.instructure.com/30803
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 control of self-enrollment type thru admin ui

fixes CNVS-10911

test plan:
- Navigate to /accounts/:id_of_root_acct/settings
- Toggle the 'Self Registration' feature -- when its checked, you should
  get a radio group to pick "All Account Types" or "Observer Accounts Only"
- In another tab, navigate to /login. It should render as follows:
  - Self Registration disabled : no banner
  - Self Registration enabled and
    - All Account Types chosen : "Need a Canvas Account?" banner
    - Observer Accounts Only chosen : "Parent of a Canvas User?" banner

Change-Id: Ie14e611f19afc00dfe363e765972b9959a2a34b0
Reviewed-on: https://gerrit.instructure.com/30620
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeff Belser <jbelser@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
fix processing of user content through pages api

test plan:
 * create a wiki page
   - include a media comment
 * query the page body, using the api
   - GET ../pages/page-url
   - body should include audio/video tag (depending on comment type)
 * update the page body, using the api
   - PUT ../pages/page-url
   - make a minor change to the queried page body (e.g. add a word)
 * navigate to the page in a browser
   - the page should _not_ render the media comment with audio/video tags

fixes CNVS-11427

Change-Id: Icf3f2b48220b92d2ce19729ef7784cb38de5d328
Reviewed-on: https://gerrit.instructure.com/30714
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
fix rendering user content in draft state pages

test plan (draft state enabled):
 * create a page
   - include media comments (audio & video)
 * save the page
 * navigating to the page should show all media comments correctly
   (media comments should not be rendered as video/audio tags)
 * edit the same page
   - add additional media comments
 * save the page
 * navigating to the page should still show all elements correctly
   (specifically looking for anomalies in re-saving)

fixes CNVS-11257

Change-Id: I45db2703719c036a0725dbc25f118eec22dedce8
Reviewed-on: https://gerrit.instructure.com/30656
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Sterling Cobb <sterling@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
cleanup stringex Gemfile slightly

Change-Id: I983d64ab39ccfe8af8c48100e0074400c43d0443
Reviewed-on: https://gerrit.instructure.com/30766
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
add enrollment state column to report

also add option to filter by enrollment state

fixes CNVS-11233

test plan
 - run students with no submission report
 - use new enrollment state options
 - filters and additional column should work

Change-Id: Id221b45bb741e7286d98a892f71591118438417a
Reviewed-on: https://gerrit.instructure.com/30671
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
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>