Commit Graph

8234 Commits

Author SHA1 Message Date
Ethan Vizitei 2933643f5d ignore invalid_parameter errors in sentry
closes FOO-1372
flag=none

TEST PLAN:
  1) send garbage encoded parameter to any endpoint
  2) you get InvalidParam error and 400,
     but no sentry report

Change-Id: I3c6e2b535bac1860c4208d16cfaa79f37b4f752c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255657
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-12-19 16:38:34 +00:00
Jacob Burroughs 908945aa51 Use native redis-rb reconnection on fork
See https://github.com/redis/redis-rb/pull/414

This allows canvas to work cleanly with redis on newer passenger versions
which explicitly establish an activerecord connection before calling
starting_worker_process, since switchman also establishes a redis connection
and thus would generate a bunch of noise from trying to reuse a forked
redis connection.

Change-Id: I228cc6717362693892c36ca6616ccba15aaff2fc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255631
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2020-12-18 22:36:18 +00:00
Jenkins 5eb7bbf1dc update tr translation
Change-Id: I0f1beeee270aaadfa1999c0e15b9bb89281467d9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255569
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:56:05 +00:00
Jenkins 426119bcbf update nn translation
Change-Id: I8118b330f686d358a16fca56a77711b99c59e227
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255568
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:55:42 +00:00
Jenkins 75b3680cce update ko translation
Change-Id: Ia58aff44e2f27e410247ea78288bda16fc791d84
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255567
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:55:19 +00:00
Jenkins 0e6005b499 update hy translation
Change-Id: Ib923f23ecc19693c9fececdc5d58f540f54db6bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255566
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:54:59 +00:00
Jenkins c3f9e302db update hu translation
Change-Id: I3b617e6b320e8800019dfa9aee1326f384b685e3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255565
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:54:38 +00:00
Jenkins 0fbbf0bfc4 update he translation
Change-Id: Ibebacb30bf8e0c4a1781672923fd2956f36bc3aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255564
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:54:16 +00:00
Jenkins 8a5b4dd3a6 update fa translation
Change-Id: I32279c855d630bafa285aaf6fbcf72b69c51ed79
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255563
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:53:53 +00:00
Jenkins 094c20ff39 update el translation
Change-Id: Ib88589d45ecd3e55b94f9e3400960baab66e0eb4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255562
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-18 05:53:28 +00:00
Ethan Vizitei 18d45ebd33 handle circuit breaker errors globally
closes FOO-1350

TEST PLAN:
  1) break an upstream service
  2) request the upstream service
  3) get 502s, not 500s

Change-Id: I4405942f41068ecafb7375fe3e21c8ae03ac1e71
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255393
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-12-17 18:55:35 +00:00
Jenkins 73dd935537 update zh-Hant translation
Change-Id: I49293940bfb987a33ca99dd34b673e013b963b46
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255459
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:54:01 +00:00
Jenkins 76304c2ba2 update zh-Hans translation
Change-Id: I0aa168140409591814e62b2103222391479cb4ed
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255458
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:53:35 +00:00
Jenkins 03ccc4dd8c update sv-x-k12 translation
Change-Id: Idfc07bdbc8d76712e438a9495a7d49dc94b87c82
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255457
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:53:10 +00:00
Jenkins 757228d151 update sv translation
Change-Id: Ib1c72422a7e6e4959fbfcf1156d6a3c78f45bdee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255456
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:52:49 +00:00
Jenkins e83a9b92c4 update ru translation
Change-Id: If453cf32b5472c48fece942c875722837a7bbb74
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255455
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:52:26 +00:00
Jenkins e9550c7675 update pt-BR translation
Change-Id: I15c422fe91545daed2707a2af4b13702016af8b7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255454
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:52:02 +00:00
Jenkins 087cdf6463 update pt translation
Change-Id: I99a832f8d4303647b948b565e36279602b01e183
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255453
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:51:39 +00:00
Jenkins 2355ae8b4d update pl translation
Change-Id: I05e817bf82b70bf2e83838825a93b3afae3b6751
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255452
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:51:16 +00:00
Jenkins c52a179dbe update nl translation
Change-Id: I92d4db96a5492d0dd85bd671f16d26614b9e46dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255451
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:50:53 +00:00
Jenkins 15794f761c update nb-x-k12 translation
Change-Id: I9192d7fd44570411895fb7359c85c8d71f10cbba
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255450
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:50:29 +00:00
Jenkins c8528cd3e5 update nb translation
Change-Id: I47509e6e5a63497ac9f5a0deb0360a4a04c56ccf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255449
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:50:05 +00:00
Jenkins dd8d16916f update mi translation
Change-Id: I346f50461154dfe11204d45e1d9cd898886bba2a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255448
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:49:41 +00:00
Jenkins b5cd8e6856 update ja translation
Change-Id: Icc443128f0a5bc23e722899a02f5c91dcf81d427
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255447
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:49:19 +00:00
Jenkins e647021191 update it translation
Change-Id: Ib18ecae50c07c0594eabcc4ddbab901cbfe019e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255446
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:48:55 +00:00
Jenkins 49e4a75a15 update is translation
Change-Id: I96d67bb60dc396d5c208cb9899d6fc7fb2792737
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255445
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:48:34 +00:00
Jenkins bd5ece5f4c update ht translation
Change-Id: I81169a25436dadc2adaf990ea983ecf7a481c04b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255444
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:48:12 +00:00
Jenkins 919944c1cf update fr-CA translation
Change-Id: I441c1e1d7571c43e46530502c90a0fd9d50106a3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255443
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:47:51 +00:00
Jenkins c454e2ade5 update fr translation
Change-Id: Ia3ea4addd4c372d206d820a5bf25506c1c897f7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255442
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:47:27 +00:00
Jenkins 7713d1cc7e update fi translation
Change-Id: I16307f4438019ae6d3766f2704ac49c34e4c4a4e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255441
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:47:05 +00:00
Jenkins 0ea19e6510 update es translation
Change-Id: I995a7e703a4a25298109e5d39ac3e8f3a3ef3ea4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255440
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:46:45 +00:00
Jenkins 8ae1faa895 update en-GB translation
Change-Id: Iab15b2683f13f4e1f9b0436ced37d703c207ee3d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255438
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:46:12 +00:00
Jenkins 8ffbe4cb83 update en-AU translation
Change-Id: I20d0b00934526b7f92a8876864af01ffe43db431
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255436
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:45:39 +00:00
Jenkins 76ead50f03 update de translation
Change-Id: Ic676dfcb73ea634549fba85706c0016facf0aca8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255435
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:45:17 +00:00
Jenkins ad39060dc7 update da-x-k12 translation
Change-Id: I4e0fd49387affc2f2f13e07f690e73ce64dfe3b1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255434
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:44:54 +00:00
Jenkins 2c50bcb04e update da translation
Change-Id: I71ba1d684299717977773035654fe7e57c3801c5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255433
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:44:34 +00:00
Jenkins f1bbfa6c39 update cy translation
Change-Id: I3cbe70914f46fe12bc2c470a1744331da3e48cf7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255432
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:44:11 +00:00
Jenkins 80efb56ab6 update ca translation
Change-Id: I4d71a7e00c88ed52846941cb1ec357f98c397679
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255431
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:43:50 +00:00
Jenkins a7014d9a1c update ar translation
Change-Id: Ie03d908677c33745843bd18972a17d03199563a6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255430
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-17 05:43:30 +00:00
Jacob Burroughs f4a5f2da33 Quad-state feature flags
Allow feature flags to be "allowed on".  Updates user facing langauge
to be enabled/disabled + "(always)" or "(default)", which is clearer
than allowed, especially with 4 states.  Also moves from backbone UI
to react UI rather than retrofitting the changes to the old UI. The
backbone ui can be killed in a separate PS.  The new UI is easier to
ctrl-f on and presents the flags in alphabetical order according to
the user's current locale.

This includes a somewhat gross workaround for a bug in InstUI <Menu>
which is why it goes in an explicit <Popover>

fixes FOO-835

test plan:
- Ensure 'New Feature Flags' feature is off
- Make sure feature flags work in all the expected ways at the siteadmin, account, and course level
- Turn on 'New Feature Flags'
- Make sure that you can still use the feature flag ui in natural ways at each level
- Try turning a feature flag "on" but unlocking it/leaving it unlocked
- Ensure it is inherited on but overridable

Change-Id: I520824cdf6e18b5a7da5ab5f552a7fd3140fd4bf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/249917
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2020-12-15 23:18:33 +00:00
Adrian Packel cd3815d643 Add bulk override grade update endpoint
closes EVAL-1330
flag=none

Test plan:
- Have a course with final grade override enabled and some students
  and grading periods
- Take note of the IDs of one or more students
- Make a PUT request to the API endpoint:
  - /api/v1/courses/<courseid>/update_final_grade_overrides
- With a JSON request body like the following (you can add additional
  records if you feel like it):
  {
    "grading_period_id": "1",
    "override_scores": [
      {"override_score":"60", "student_id":"7"},
      {"override_score":"61", "student_id":"125"}
    ]
  }
- (Replace the grading period and student IDs above with values
  applicable to you, or remove the grading_period_id parameter entirely
  apply the change to the course override score)
- Check that the request returns a Progress object (which should
  finish in short order) and that override grades in the gradebook are
  updated to the values you set
- Check that changing override scores in this way populates gradebook
  history

- Check that the following return unauthorized errors:
  - Accessing the endpoint for a course without final grade override
    enabled
  - Accessing the endpoint for a concluded course
  - Accessing the endpoint as a user who does hnot have permission to
    manage grades

- Smoke test setting override grades manually from Gradebook
  - Make sure it still works and populates gradebook history as before

Change-Id: I78d19d899485b40c6c812867a89b8352c215955f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/253921
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
Reviewed-by: Syed Hussain <shussain@instructure.com>
QA-Review: Syed Hussain <shussain@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
2020-12-15 19:23:46 +00:00
James Butters da9fd405ff upgrade selenium to version 87
flag = none

Test Plan:
- Jenkins build passes with browser 87
- docker locally builds and runs selenium tests on chrome 87
- local install of canvas runs seleniums on chrome 87

Change-Id: Id1600e002c202a4dd90405d9b68a3ff092cbd764
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255045
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-12-15 16:24:37 +00:00
Spencer Olson b0df8f5fac grade calculator: ignore unposted anonymous assignments
closes EVAL-1272
flag=grade_calc_ignore_unposted_anonymous

Test Plan:
1. Enable the 'Ignore Unposted Anonymous Assignments in Grade
   Calculation' release flag. Create an anonymous assignment and
   grade some students.
2. Before posting the assignment, enter a rails console and check the
   unposted_* scores for the students. Verify:
   - The unposted_* scores do not include the submission score from the
     anonymous unposted assignment.
3. Disable the 'Ignore Unposted Anonymous Assignments in Grade
   Calculation' release flag.
4. Enter a rails console again and check the unposted_* scores for the
   students. Verify:
   - The unposted_* scores include the submission score from the
     anonymous unposted assignment.
5. Post the assignment to students. Then enter a rails console again and
   verify the unposted_* scores for the students include the submission
   score from the anonymous (now posted) assignment.
6. Re-enable the 'Ignore Unposted Anonymous Assignments in Grade
   Calculation' release flag. Verify the unposted_* scores for the
   students include the submission score from the anonymous (now posted)
   assignment.

Change-Id: Ibb42b9f3164c08e3bc2a21fc02736760f58af51a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/251786
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2020-12-14 15:52:36 +00:00
Jenkins 03e5f52139 update nl translation
Change-Id: I39c8116d45c95b7cb54c278ac287cc60595fe038
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254895
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-11 05:46:56 +00:00
Jenkins 4b66d0c5b3 update nb-x-k12 translation
Change-Id: Iae8d98de96b0aee5022237f63158901145bdaeff
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254894
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-11 05:46:33 +00:00
Jenkins 11ee59b165 update nb translation
Change-Id: I726c1a910d63e081c4df141d36867f85b2875b9a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254893
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-11 05:46:12 +00:00
Jacob Burroughs bcad417c5f Support multiple environments for sentry
Change-Id: I2db87d41b9302692a14822c1b5dc9c7a385a2b61
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254540
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2020-12-10 15:50:10 +00:00
Cody Cutrer 7952e8c295 dont' call PG WAL function if it doesn't exist
fixes gh-1636

i.e. Amazon Aurora

note that if you have a secondary set up that is in recovery, it will still
try to compute an LSN diff, and will likely fail, so this isn't a full
solution for using Aurora with multiple replicas

Change-Id: I35956bb386e00bdfa0fd7d34c31d4942a13b6e28
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254616
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2020-12-09 21:41:38 +00:00
Jenkins ff2a50d751 update sv-x-k12 translation
Change-Id: Ifc095e087e7e19201ffbe57276f938d689867cf3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254697
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-09 05:50:59 +00:00
Jenkins d29d99eb14 update sv translation
Change-Id: I1bdade20f3ca88432f10e9294eedf576a8f11056
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254696
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2020-12-09 05:50:37 +00:00