Commit Graph

5555 Commits

Author SHA1 Message Date
Transifreq c1e38a0a4c update he translation
Change-Id: If38121f81e9dc22e16aeb42aebdbc3dacd0710b7
2018-05-21 06:00:29 -06:00
Matt Sessions b6f7be8f8c Delete alerts periodically
Refs MBL-10126

Test Plan:
 - In the rails console, create a
   UserObservationLink and an ObserverAlertThreshold
 - Create an alert that links to both
 - Create another alert that links to both but has
   a created_at set to more than 6 months ago
 - Run ObserverAlert.clean_up_old_alerts
 - Run ObserverAlert.all
 - You should only have 1 alert

Change-Id: I23f4723574cde01135ddafb9926c06029266d07d
Reviewed-on: https://gerrit.instructure.com/150324
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
Tested-by: Jenkins
QA-Review: Kausty Saxena <ksaxena@instructure.com>
2018-05-19 01:42:42 +00:00
Cameron Sutter a124defc21 get alerts by student
closes MBL-10123

test plan:
- with a user_observation_link and an observer_alert_threshold
  make observer_alerts in the rails console
- hit the endpoint
  /users/:user_id/observer_alerts/:student_id
- it should return all alerts for that observer/student

Change-Id: I01fe71e3414d63cedc0e02eaed4e0d8822f80fcf
Reviewed-on: https://gerrit.instructure.com/150143
Reviewed-by: Matthew Sessions <msessions@instructure.com>
Tested-by: Jenkins
QA-Review: Taylor Wilson <twilson@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
2018-05-17 21:56:34 +00:00
Simon Williams ebbfde74ef make `wait_for_replication` more robust
we discovered that direct string comparision of xlog locations can give
invalid results in some situations, where second part of the xlog
location value "wraps" from 7 hex characters to 8

Change-Id: I62215e5fcc3f9655643aab9fc99f55ddbb37e8ac
Reviewed-on: https://gerrit.instructure.com/150385
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2018-05-17 19:02:01 +00:00
Transifreq 09018443c2 update he translation
Change-Id: Ib87a63dc6ee1da5f2d64c22b475b97174f707540
2018-05-16 17:26:52 -06:00
Transifreq 1855427d19 update fa translation
Change-Id: I6ae85859e04ddee8464dcc51cd1bdb1e1da677d9
2018-05-16 17:25:48 -06:00
Transifreq c5a3453465 update nl translation
Change-Id: I214c988621a1614b83d88c1b24f0d379770dacb1
2018-05-16 16:43:55 -06:00
Transifreq 3da9c59615 update fr translation
Change-Id: If8808141e33825e2cfa7d42c0240a45cbb75f40a
2018-05-12 05:21:02 -06:00
Cody Cutrer 8aa20f1066 infer region name, and pre-set instance id for jobs autoscaling
Change-Id: Iac1df05fab63902a12d852d7a55ed728d6e3b113
Reviewed-on: https://gerrit.instructure.com/149709
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-05-11 19:22:42 +00:00
Cody Cutrer 7840c26abf allow enabling inst-jobs health checks
Change-Id: Ic7f8106a9f63c585b8a618b052d82f0a1f1a6312
Reviewed-on: https://gerrit.instructure.com/149579
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-05-11 19:22:32 +00:00
Mysti Sadler 759d7eda16 Move planner items to its own controller
closes ADMIN-1033

Test plan
- Ensure api/v1/planner/items and
  api/v1/planner/overrides(/:id)
  work as expected
- Specs pass

Change-Id: I4a1d5f8f81bb2bdd2eace8c61bc807d2f0457cdf
Reviewed-on: https://gerrit.instructure.com/149265
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Mysti Sadler <mysti@instructure.com>
2018-05-11 16:18:50 +00:00
Cody Cutrer f741d3a6fa use switchman-inst-jobs, and drop duplicate code
Change-Id: Ieb1ec1c0f04587959c7b13c6ff3ad30960012b33
Reviewed-on: https://gerrit.instructure.com/149502
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-05-11 15:53:57 +00:00
Transifreq 6cb4ca5f75 update mi translation
Change-Id: Ib09dcd0ebd1a1264212236c18cc2aae4faac350a
2018-05-11 05:23:34 -06:00
Cameron Sutter a3f3ec6e81 add observer alert threshold CRUD
closes MBL-10122

test plan:
- do CRUD operations on the observer_alert_threshold endpoints
  /users/<id>/observer_alert_threshold[?student_id=<id>]
  and
  /users/<id>/observer_alert_threshold/<id>

Change-Id: I2c5c7700adaedd4a2068a61568217219b763339e
Reviewed-on: https://gerrit.instructure.com/149147
Reviewed-by: Matthew Sessions <msessions@instructure.com>
Product-Review: Matthew Sessions <msessions@instructure.com>
QA-Review: Matthew Sessions <msessions@instructure.com>
Tested-by: Jenkins
2018-05-10 20:25:01 +00:00
Transifreq 1d063f7967 update zh-Hant translation
Change-Id: Ib4f67f6e5459bb8ae793dc2eeeaa328da1f1cc9a
2018-05-10 05:34:19 -06:00
Transifreq fe72a7b7f2 update zh-Hans translation
Change-Id: I2f158f6c719651643327f091e7f3c48d11f86da8
2018-05-10 05:33:13 -06:00
Transifreq d17546ea6c update sv translation
Change-Id: Iac2e96809de31f2bfb4355e1bc600a54297984be
2018-05-10 05:32:09 -06:00
Transifreq d1c8b58595 update ru translation
Change-Id: Ideba73ab6ffc7ae2117473d1fa5cfee04016238b
2018-05-10 05:31:11 -06:00
Transifreq 09dc962459 update pt-BR translation
Change-Id: I5d41df3798a18a010898a9bd7239fac08a992168
2018-05-10 05:30:10 -06:00
Transifreq 40f8a49853 update pt translation
Change-Id: I47a74425c92e03408af92e24c0f00a8bc38d0895
2018-05-10 05:29:13 -06:00
Transifreq 955d6da0c8 update pl translation
Change-Id: If98bd54dcb7aa982138f37b5786cdf1a9b2834e4
2018-05-10 05:28:16 -06:00
Transifreq 0a81343e64 update nl translation
Change-Id: I309891ff75ea9d341d1135bbe11bfc06fbbfbd64
2018-05-10 05:27:19 -06:00
Transifreq 5d6d87ceff update nb translation
Change-Id: Ie3b611cb611dd6302e6ccc5086dac8df2ac3147f
2018-05-10 05:26:23 -06:00
Transifreq d3e97cdea4 update ja translation
Change-Id: I9b1f6b74c9c64f0e9a956fb0a600a7b424a39e64
2018-05-10 05:24:37 -06:00
Transifreq d37a1072e1 update it translation
Change-Id: I972dc69b6b6df3b18f62171d13b7364ecb8f9c02
2018-05-10 05:23:31 -06:00
Transifreq ced8797086 update is translation
Change-Id: I8016a4875841697bf7c9c28546eddd5119cf5f3c
2018-05-10 05:22:39 -06:00
Transifreq f81af06d3e update ht translation
Change-Id: I5eb07fc3051ecedf1b1b145c2818f56a3cd310f9
2018-05-10 05:21:44 -06:00
Transifreq f7ace95d87 update fr-CA translation
Change-Id: I80f20c21f126bbd08b75a667395d9e752d4283c9
2018-05-10 05:20:41 -06:00
Transifreq a073ec3958 update fr translation
Change-Id: Ie5dbbd69ec20c1ce20850044e3974bf11638c477
2018-05-10 05:19:47 -06:00
Transifreq 3215502380 update es translation
Change-Id: Ie2f9cc83b7e0c419f52268440bbb60cc36d1a2eb
2018-05-10 05:18:50 -06:00
Transifreq 77f0286a12 update en-GB translation
Change-Id: I8301820658e10ba66707f6138dd351bf8e9fb06a
2018-05-10 05:16:22 -06:00
Transifreq 3baa3baced update en-CA translation
Change-Id: I076b088358733d6b793b197245686e18ff96a37f
2018-05-10 05:15:25 -06:00
Transifreq d88045018a update en-AU translation
Change-Id: I0634a904759c1db93d546c5fe9bcf203c49feec5
2018-05-10 05:14:36 -06:00
Transifreq 8191a7b2a8 update de translation
Change-Id: I4dd3fbe4909581405a1f9f588d702facba685140
2018-05-10 05:13:40 -06:00
Transifreq 42420ecee5 update da translation
Change-Id: I170569a5e197f281a95b0eeff12dec2439b8796d
2018-05-10 05:12:44 -06:00
Transifreq 9c1169252d update ar translation
Change-Id: Id026ce435519a3e1bf6d4a8e46d9e3def7e4301e
2018-05-10 05:11:45 -06:00
Cody Cutrer 6308090019 properly quote stuff in find_ids_in_ranges
fixes problems when run on relations that are using `from()`

Change-Id: I528dfb7e6885b4ce276900a53d9b2f8adfabafe5
Reviewed-on: https://gerrit.instructure.com/149795
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-05-10 02:48:53 +00:00
Transifreq 5283c03bfb update nn translation
Change-Id: Ib7a832ce45397fb13ddd96afc3ce7769f999e3a6
2018-05-07 05:57:18 -06:00
Simon Williams b4fde1f11b used ignored_columns instead of DROPPED_COLUMNS
closes CORE-1245

recent internal changes in rails (released in 5.1.6) make it more
difficult for our module prepend to work, because column information is
no longer referenced lazily when checking on attribute defaults (see
changes to model_schema.rb). this means that we would need to tie in at
a lower level so that _default_attributes excludes the dropped column,
but in looking at that, Rails 5 added support for ignoring columns,
which ties in at the right level and should solve the same use case we
have.

see http://api.rubyonrails.org/classes/ActiveRecord/ModelSchema/ClassMethods.html#method-i-ignored_columns-3D

Change-Id: I1f76e9d0894551f90232a36f5d48f27f8989c3a1
Reviewed-on: https://gerrit.instructure.com/145723
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2018-05-04 20:53:26 +00:00
Transifreq 206fe775b1 update nb translation
Change-Id: Ie5c650a01ce134a373a16df0f112008ffc6928ac
2018-05-04 05:22:31 -06:00
Mysti Sadler 632a5eee9a Remove remnants of Calendar 1
refs ADMIN-278

Test plan
- Specs pass
- /calendar and /calendar2 route both
  still work and calendar shows up as
  expected

Change-Id: Ic17a203417c354dbeaf7a5c68cc47e845c091850
Reviewed-on: https://gerrit.instructure.com/148061
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Mysti Sadler <mysti@instructure.com>
2018-05-03 16:31:21 +00:00
Transifreq 1d10f9743a update tr translation
Change-Id: Ica282b34b3bd72c976047a8796059bbb4f8a7e53
2018-05-03 05:59:11 -06:00
Keith Garner 10dbd7f01e add support helper to run due date cacher for a course
To help support close out issues, add a support helper that runs the
DueDateCacher and then recalculates grades for a course.

closes GRADE-1120

test plan:
 - access /api/v1/support_helpers/due_date_cache/course?course_id=6
   to make sure it kicks off a new DueDateCacher run. It should send
   you a success email.
 - make sure that endpoint is only accessible when you are logged in as
   a site admin user

Change-Id: Ida5f7db0484cfd4e33e1094244a3b8c00b523c6a
Reviewed-on: https://gerrit.instructure.com/148694
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
QA-Review: Shahbaz Javeed <sjaveed@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2018-05-01 20:25:05 +00:00
Transifreq 658a8eebb9 update pt-BR translation
Change-Id: Ib6ac674e7a8b4bdfb53f70cfe96f7f9b698dd207
2018-04-28 05:24:29 -06:00
Transifreq c8a429ae16 update fa translation
Change-Id: Ie71ccd657fe14b46e41a3d5bb9ddc6ed801d390d
2018-04-27 05:50:28 -06:00
Omar Khan 391585bd9b Mark old duplicating assignments as failed
We're planning to make API calls to Canvas from Quizzes.Next to notify
it that an assignment has finished duplicating. But making API calls to
Canvas is hard, as it requires lots of configuration, an oauth dance,
and a fair amount of luck.

To ensure that assignments don't get stuck in the "duplicating" state if
Quizzes.Next -> Canvas communication breaks down, this commit adds a
periodic job to transition assignments to the "failed_to_duplicate"
state if they have been duplicating for more than 5 minutes.

Refs QUIZ-3764

Test plan:

- Create a Quizzes.Next assignment
- Go to the canvas assignments page
- Click on the kebab menu for the assignment, click "Duplicate"
- Wait 10 minutes
- Refresh the page
- Check that the new assignment displays a "failed to duplicate" message

Change-Id: Ibaf8c16117bc7ab7fc24007944943c3090ba7041
Reviewed-on: https://gerrit.instructure.com/148001
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Omar Khan <okhan@instructure.com>
2018-04-26 18:46:49 +00:00
Cody Cutrer 41794a9383 rename AccountAuthorizationConfig* to AuthenticationProvider*
I couldn't take it anymore. it was driving me crazy

Change-Id: Ib40addff56e98a6e0a6d80f246c208e0ce0cb762
Reviewed-on: https://gerrit.instructure.com/148026
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-04-26 16:03:47 +00:00
Transifreq fcf345fa0e update nn translation
Change-Id: I6dcc0aff0f82d4e31d75e27fc9a0a9f354addac7
2018-04-26 06:00:11 -06:00
Transifreq 40e397fdd8 update pt-BR translation
Change-Id: Ice61b5a8e57f456fc69365bce8d49bfd85d3f8f1
2018-04-26 05:28:42 -06:00
Transifreq 3bcc0be824 update nb translation
Change-Id: I0536fe5c12e0b1a0991a92294d832ddbba87063a
2018-04-26 05:25:24 -06:00