Commit Graph

7 Commits

Author SHA1 Message Date
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
Landon Wilkins 9ce4be2701 da licença part 6
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: If9254d095d83d7bdb88a2aac595d5ed70f940437
Reviewed-on: https://gerrit.instructure.com/110023
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 21:30:39 +00:00
Cody Cutrer 6751891617 rails 5: fix lots of deprecation warnings
mostly s/uniq/distinct/, and choosing a content type for render :text

Change-Id: I53a2e77d23ecc43162f70b4fd88303cc1539c20b
Reviewed-on: https://gerrit.instructure.com/104762
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-03-13 19:07:11 +00:00
Cody Cutrer 556f0b64bf rails 5: s/_filter/_action/g
fixes CNVS-34832

the arguments to these methods have not changed, just their names. and the
new methods became available in Rails 4, so we can start using them now

and prevent someone from doing old-style in the future

Change-Id: I61aa5512995dc8f25f3f7bd009a6cfa0a030e274
Reviewed-on: https://gerrit.instructure.com/101401
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-02-09 23:03:40 +00:00
Nathan Mills dd21d79e95 add support helper to update tii attachments
fixes PLAT-1857

test plan:
- submit a file through the TII lti tool
- once you get a score back, pull up the Attachment model in a
rails console and change the uploaded_data using a StringIO object
- hit
api/v1/support_helpers/turnitin/refresh_lti_attachment?attachment_id=:attacment_id&submission_id=:submission_id
-once the fixer completes the attachment in canvas should be refreshed
with the correct data

Change-Id: Ife04efd952d615a44114894bca2a6d816740948d
Reviewed-on: https://gerrit.instructure.com/98729
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Nathan Mills <nathanm@instructure.com>
2017-01-06 22:36:40 +00:00
Keith Garner b2e0eca8c4 add crocodoc support week helper endpoint for support
An endpoint has been added for site-admins to be able to resubmit broken
crocodoc documents to crocodoc. It can look at a whole school's
documents that are in an error state or a specific

fixes CNVS-33022

test plan:
 - access /api/v1/support_helpers/crocodoc/shard to make sure it kicks
   off a new shard fixer job. It should send you a success email.
 - access
   /api/v1/support_helpers/crocodoc/submission?assignment_id=5&user_id=6
   to make sure it kicks off a new shard fixer job. 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: I607260434eddb44e1e92ffba9254553363908d81
Reviewed-on: https://gerrit.instructure.com/93840
Tested-by: Jenkins
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-11-22 17:34:02 +00:00
Neil Gupta 21c004d6c5 TII helper sekret endpoint
This adds site admin only endpoints for support to fix TII errors

Fixes CNVS-30959

Test plan:
* access /api/v1/support_helpers/turnitin/shard to make sure it kicks
off a new shard fixer job. It should send you a success email.
* make sure that endpoint is only accessible when you are logged in
as a site admin user

You can also edit some of your existing submissions' turnitin_data to
create broken submissions and then test the appropriate fixer.

Change-Id: Ic8ea65b33191825deb4fc693ef994c58bc7aa811
Reviewed-on: https://gerrit.instructure.com/87302
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Tested-by: Jenkins
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2016-09-06 15:14:38 +00:00