bump switchman version

fixes CNVS-13611

test plan: run with_each_shard tasks, such as
Reporting::CountsReport.process. It should complete without error. To
fully test the fix, you'd need to do this in an environment that has
many shards.

Change-Id: I425e8c8fb352aba15d0e9bc87b74984d4b7b8900
Reviewed-on: https://gerrit.instructure.com/40487
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
don't enable x-sendfile by default for local file store

This prevents open source installs from seeing file downloads break in
rails3. They can still set up sendfile explicitly by configuring their
web server and uncommenting the appropriate line, I've added
documentation to the production start wiki page:

https://github.com/instructure/canvas-lms/wiki/Production-Start#optimizing-file-downloads

relatedly, remove the unused send_file_or_data method.

Change-Id: I5e856b2ba50b0606330f86360d175c439ee1da50
Reviewed-on: https://gerrit.instructure.com/40357
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
remove the new teacher registration email

This email only went to site admins, and isn't useful.

This commit stops new notifications being created, a subsequent commit
will remove the no longer used code and data.

refs CNVS-15219

Change-Id: Ibd8c88c7310cf3dcfb06cf0c782f2b3cf571d843
Reviewed-on: https://gerrit.instructure.com/40375
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
remove new_teacher_registration notification code

This notification is no longer sent, but we kept this code around for a
bit to allow already-queued messages to succeed.

closes CNVS-15219

Change-Id: I67f50df8f15c0e4d02f4fc262c0dedad831df96b
Reviewed-on: https://gerrit.instructure.com/40383
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
Show creation date, not edited date, above discussion replies

fixes CNVS-8332

test plan:
  - create a discussion topic
  - reply to said discussion topic
  - a minute later, edit the reply
  - ensure that the time shown above the reply is the time you
    originally created the reply, not the time at which you
    edited it

Change-Id: Ie00e8920c3117fffe219ce941a3565a63a2234b7
Reviewed-on: https://gerrit.instructure.com/40302
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Don't strip the verifier from user-context files

fixes #CNVS-11032

If you were to use a files link that didnt start
with "/files" (like "/users/x/files/y" or a link
with a full host name), it would
still strip the verifier out, which would make the
file not appear to other users.  This fixes
the problem.

TEST PLAN:
 -login as a user
 -go to files and upload an image to *your* folder
    (rather than the folder for a course or something)
 -obtain a link to that file with it's verifier param through
    whatever means you prefer (simplest is to get the download
    link and then use the console to get the UUID from that
    Attachment record and use that as "verifer=[blah]" at
    the end of the url for the file)
 -post a discussion reply using that link to embed an image
    in the reply.
 -login as a different user and look at the discussionr reply;
  you should be able to see the image in the discussion reply.

Change-Id: I2e9123f08cda0e6949e8f9a8d12ba50b98de49e0
Reviewed-on: https://gerrit.instructure.com/40430
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
remove Worker#ensure_db_connection

test plan: run a delayed jobs pool, and verify that jobs still complete successfully

Change-Id: I9fbadee51b05f667dafcb9173af2e75bf905c1e0
Reviewed-on: https://gerrit.instructure.com/40453
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
bump switchman version

fixes CNVS-13611

test plan: run with_each_shard tasks, such as
Reporting::CountsReport.process. It should complete without error. To
fully test the fix, you'd need to do this in an environment that has
many shards.

Change-Id: I425e8c8fb352aba15d0e9bc87b74984d4b7b8900
Reviewed-on: https://gerrit.instructure.com/40487
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
don't enable x-sendfile by default for local file store

This prevents open source installs from seeing file downloads break in
rails3. They can still set up sendfile explicitly by configuring their
web server and uncommenting the appropriate line, I've added
documentation to the production start wiki page:

https://github.com/instructure/canvas-lms/wiki/Production-Start#optimizing-file-downloads

relatedly, remove the unused send_file_or_data method.

Change-Id: I5e856b2ba50b0606330f86360d175c439ee1da50
Reviewed-on: https://gerrit.instructure.com/40357
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
remove the new teacher registration email

This email only went to site admins, and isn't useful.

This commit stops new notifications being created, a subsequent commit
will remove the no longer used code and data.

refs CNVS-15219

Change-Id: Ibd8c88c7310cf3dcfb06cf0c782f2b3cf571d843
Reviewed-on: https://gerrit.instructure.com/40375
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
don't delete memberships when group is deleted

refs CNVS-10184

there is no reason to do this but it makes it impossible to grade group
assignments after the group is deleted

Test plan:
  * make a group assignment
  * make some submissions
  * delete the group category
  * you should still be able to grade the submissions in speedgrader
  * nothing should change from the student's perspective (students
    should *not* see the group anywhere they currently don't see the
    group)

Change-Id: I2c421ea5d88fe77679ddffc60fc3ddb420d33a23
Reviewed-on: https://gerrit.instructure.com/39945
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Anna Koalenz <akoalenz@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
Allow enrollments to be recreated as active

Fixes CNVS-13015

Test plan:
- Add a user as 'invited' to a course via API.
- Delete the enrollment, and recreate it as 'active'
- Verify the enrollment is recreated as 'active'

Change-Id: Ifb4345abf2f586f5b50cfb9a36b7c2bf00f123a4
Reviewed-on: https://gerrit.instructure.com/40255
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
Updated es translation

Change-Id: I30489ef7dffc5d4dd5692cc31b37fa9c00b8909e
Updated de translation

Change-Id: I0bc9512f7b37d5f6b820a8322fab0483cfc0d58a
Updated ru translation

Change-Id: If91de2e07fa5552df67495ca1eb9e0314d4333de
Updated fr translation

Change-Id: Id5215b2069c19f86f9c5911316e5e720d967e1fd
Updated pl translation

Change-Id: Iacd15109162aa832b8e569221bc4b41032bcc968
Updated zh translation

Change-Id: I53823053b0e10a78ca0e3c85ad7c265880865d13
Updated ar translation

Change-Id: I16f9e643abcf69d11e8893b338d94f5726680819
Updated pt translation

Change-Id: Ia1949e8538d28763f7c25f711d8f66d90aafad5e