Commit Graph

36275 Commits

Author SHA1 Message Date
Ryan Shaw ebaf3a0951 Revert "minor apollo update"
whoops, I didn't notice that this was dependent on something
that is not merged yet. I had some stuff that depended on this
so I too-eargly merged it. I'll revert it until we get the
validated apollo stuff figured out

This reverts commit 27b6085218.

Change-Id: Ib6439daa8f26663ecd473bb4bb71f8dda2231eec
Reviewed-on: https://gerrit.instructure.com/205000
Reviewed-by: James Williams <jamesw@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Tested-by: Jenkins
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-14 13:43:55 +00:00
James Williams 7f2bb50661 fix restoring retired communication channel as admin
test plan:
* add a email to a user
* delete the channel
* as an admin, view the user and edit them,
 using the "default email" field to set the email
 to the deleted path
* it should work

closes #COMMS-2297

Change-Id: I276be2bc24b9309260ef0dc0fe99910032c5353d
Reviewed-on: https://gerrit.instructure.com/204870
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-14 12:19:48 +00:00
James Williams 5f2de94ffe only send collaboration notifications to active users
test plan:
 * collaborations shouldn't send notifications to
 students in an unpublished course

closes #COMMS-356

Change-Id: I3f67c26fd8cfb93ff472b0ba52af3796f1647588
Reviewed-on: https://gerrit.instructure.com/204856
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-14 12:19:42 +00:00
James Williams d894d3ee02 use in-region shards for course index page
Change-Id: Ia30d349915c95b3747e14faee2edf3fcc9073de4
Reviewed-on: https://gerrit.instructure.com/204907
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-14 12:18:15 +00:00
Cameron Matheson 27b6085218 minor apollo update
we need to get on an up to date version, but this at least fixes some
bugs i was running into while writing specs for GQL-60

Test plan:
  * pages using graphql still work (assignments2, gradebook, context
    cards)

flag = none

Change-Id: I4b384c3724fc843132c9db34f044cd88aba227bb
Reviewed-on: https://gerrit.instructure.com/204276
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-14 01:38:07 +00:00
Steven Burnett e7a5915574 add translations to canvas-media
fixes COMMS-2299

Test Plan:
- In A2 as a student submitting a video
- All strings should be present
- All strings should be translated

Change-Id: I474a332a747f8b1f60133a93346774375b309f07
Reviewed-on: https://gerrit.instructure.com/204635
Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com>
Tested-by: Jenkins
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2019-08-13 21:42:49 +00:00
Robert Lamb 4388951639 spec: Use Jenkins secret for plugin list
test plan: New Jenkins build passes again

rebased

Change-Id: Ia5919cda9838d814357290ca0625a4fdd5b94993
Reviewed-on: https://gerrit.instructure.com/204617
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
2019-08-13 21:00:15 +00:00
Steven Burnett 1f7bf02c4d add canvas media package
fixes COMMS-2290
flag Assignments 2

Test Plan:
- create a media upload assignment
- in a2 as a sutdent go submit an assignment
- notice a video upload button
- click button
- notice the modal is shown and you can drag and drop video files
  or record yourself
- close modal
- notice no console errors or crashes

Change-Id: I9a6184efb99aa05d0d634d2744cca00abf5ae26e
Reviewed-on: https://gerrit.instructure.com/204375
Tested-by: Jenkins
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com>
2019-08-13 20:17:06 +00:00
Jeremy Neander 0b4362749f show a tooltip for the post or hide grades menu
fixes GRADE-2286

test plan:
 1. Select or create a course
 2. Enable New Gradebook
 3. Enable Post Policies
 4. Visit SpeedGrader
 5. Hover the "Post or Hide Grades" menu
 6. Verify the menu label appears as a tooltip
 7. Using a screenreader, navigate to the menu button
 8. Verify the menu label is announced

Change-Id: I5fa027c7e34fe83fb456870e640907cb2150ef5c
Reviewed-on: https://gerrit.instructure.com/204388
Tested-by: Jenkins
Product-Review: Jonathan Fenton <jfenton@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
QA-Review: Adrian Packel <apackel@instructure.com>
2019-08-13 18:43:22 +00:00
Jeremy Neander f70acd36d7 make grade summary muting tooltips accessible
fixes GRADE-2285

test plan:
 1. Select or create a course
 2. Set the post policy for an assignment to post manually
    * Alternately: mute grades for the assignment
 3. Sign in or act as a student in the course
 4. Visit the student grade summary page
 5. Ensure your screenreader is running
 6. Tab to the muted/hidden icon in the table
 7. Verify the muted/hidden text is announced
 8. Tab away and SR-navigate to the muted icon in the table
 9. Verify the muted/hidden text is announced

Change-Id: I9662f44871882a8fef0f9867124d4065ab6ad767
Reviewed-on: https://gerrit.instructure.com/204257
Tested-by: Jenkins
Reviewed-by: Adrian Packel <apackel@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Gary Mei <gmei@instructure.com>
Product-Review: Jonathan Fenton <jfenton@instructure.com>
2019-08-13 18:43:20 +00:00
Ed Schiebel 6ccad53796 return focus to the status bar buttons
when the kb shortcut dialog or the a11y checker tray close,
return focus to the button that opened it.

closes COREFE-108

test plan:
  - in rce, click on the kb short cutton in the status bar
  - close the kb shortcut dialog
  > expect focus to return to the button
  - repeat for the a11y checker
  - tab until the show-on-focus kb shortcut button above the RCE
    appears, click it, then close the dialog
  > expect focus to return to the button

Change-Id: I27ea79930e643d9908a784fbcb89900918d3be01
Reviewed-on: https://gerrit.instructure.com/204283
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-08-13 16:06:49 +00:00
Ed Schiebel eb8d55ea48 Do not set maxWidth on images embedded w/in the rce
rolls back https://gerrit.instructure.com/c/canvas-lms/+/197254

closes COREFE-185

when a TD is not given a size, setting max-width causes it to shrink.
whatever issue this originally intended to address, we'll fix when
the image sizing work is completed.

test plan:
  - in the rce add a table with a couple columns
  - put text in one column, and an image in the other
  - in html edit mode, remove the style="width: 50%;" (or similar)
  - return to rich text mode
  > expect the image to be it's natural size, and not shrunken down
    to almost nothing.

Change-Id: Ib7df4c1d28f4827fe004b313aff51f6eb232aafc
Reviewed-on: https://gerrit.instructure.com/204569
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-08-13 16:06:19 +00:00
Cameron Matheson c8ceb23e4b be more judicious with proptype errors
this commit increases the error-level on prop types from warning to
error.

it doesn't alert on components that don't have proptypes declared.

Change-Id: I6f74f1f6f3b3e0867002199e5507466038d8e1c3
Reviewed-on: https://gerrit.instructure.com/204773
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-08-13 04:25:35 +00:00
Cody Cutrer 7a146dc566 add whitelist of includes when using token scopes
Change-Id: I8d68faea166a16e4284433845d38b23ab98ab0a7
Reviewed-on: https://gerrit.instructure.com/204380
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Reviewed-by: Marc Phillips <mphillips@instructure.com>
Tested-by: Jenkins
Product-Review: Jesse Poulos <jpoulos@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2019-08-12 22:45:25 +00:00
Cody Cutrer bffe7a4883 switch to SCrypt for password storage
use a custom class so that we can set the scrypt parameters
directly, instead of that silly calibration stuff. also implement
cost_matches so that authlogic transitioning will work if we
were to ever change said parameters

Change-Id: Icc6e3a592e18beb6c15e01fa4e489d93e2d3b6e0
Reviewed-on: https://gerrit.instructure.com/204705
Tested-by: Jenkins
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
2019-08-12 20:39:22 +00:00
Cody Cutrer cbf7b720a3 add rails6 gem, and boot console
disable bullet in rails 6

Change-Id: Ic84a291c9bd81dd1ef93d414b9ef73d277d07273
Reviewed-on: https://gerrit.instructure.com/204711
Tested-by: Jenkins
Reviewed-by: James Williams <jamesw@instructure.com>
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-08-12 20:09:56 +00:00
Jeremy Stanley fc1a49a380 fix preview for group files w/inst-fs
test plan:
 - set up inst-fs
 - inside a group, upload an image
 - without reloading the page, click the file
 - the image preview should load

fixes ADMIN-2787

Change-Id: I87e4d6086877f70c1747c99f0be6d189624e23f5
Reviewed-on: https://gerrit.instructure.com/204068
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-08-12 19:50:02 +00:00
Marc Phillips d28e568b3a Add manage_data_services role
refs PLAT-4743

Test Plan:
 n/a

Change-Id: Ie7fe1b0d16727374471c9732098339b415cf42e3
Reviewed-on: https://gerrit.instructure.com/204695
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Marc Phillips <mphillips@instructure.com>
2019-08-12 19:42:46 +00:00
Cody Cutrer c58d4efa72 bump switchman
Change-Id: I11e72e6085280e1e71ea985c7a37c15243880cbf
Reviewed-on: https://gerrit.instructure.com/204678
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-12 19:39:36 +00:00
Rex Fleischer 453e96b14c add filetype check for submissions file uploads
fixes: ADMIN-2792

feature = check_submission_file_type

Test-Plan:
* create an assignment of type online_upload without extension restrictions
* make sure the api can upload any filetype
* update the assignment extension restrictions to allow a specific type
* make sure files outside those types are rejected
* make sure files inside thase types are accepted

Change-Id: I5203f0d56630aa975f8424526623d4bcbbdaede9
Reviewed-on: https://gerrit.instructure.com/203821
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Rex Fleischer <rfleischer@instructure.com>
2019-08-12 19:19:20 +00:00
wdransfield 25b1af71be Show and launch default tool
Closes PLAT-4696

Test Plan:
- Install a tool that uses content item
  at the assignment_selection placement
- Specify a default_assignment_tool_name in your
  root account settings.
- Specify a default_assignment_tool_url. This url
  must pasth the URL associated with the tool's
  assignment_selection placement launch url.
- Navigate to /course/:id/assignments/new for a
  course in the root account
- Verify the default tool shows up as an option in
  the submission type select element
- Verify clicking the "Add a question set"
  button launches the tool in a modal

Note that returning content from the launch will not
work yet. Also, work to allow cusomizing the info
alert and button text will be done in the future.

Change-Id: Iba1187dd9af64819d8dfc446fa246cd4ec8e9473
Reviewed-on: https://gerrit.instructure.com/204187
Reviewed-by: Marc Phillips <mphillips@instructure.com>
Tested-by: Jenkins
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Jesse Poulos <jpoulos@instructure.com>
2019-08-12 18:14:54 +00:00
Jeremy Putnam 3c3dbc41bd spec: add teacher image tests for RCS sidebar
Change-Id: I682e13bdfd5cd34697f72371fd22cbca713f84dd
refs: COREFE-34
Reviewed-on: https://gerrit.instructure.com/203764
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-12 18:06:53 +00:00
Cody Cutrer f753a5e432 update authlogic
two breaking changes:
 * validations are gone, just use vanilla rails validations
 * authenticates_many is gone. use a scoping call instead

Change-Id: Iad2a5d4655ad116e85ea3ea98bc209b37cbdba39
Reviewed-on: https://gerrit.instructure.com/202619
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-08-12 18:02:02 +00:00
James Williams fea44ac59f unset context on attachments show
when we don't have rights to see it

closes #CORE-3224

Change-Id: I2d43bf7cbfec28ff0668e068abb74cf1571088c5
Reviewed-on: https://gerrit.instructure.com/203708
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-12 17:21:58 +00:00
Michael Brewer-Davis f2beb6024d use precision when updating discussion rubric
closes OUT-3111

Test plan:
- create graded discussion
- add a rubric from discussion view page
- select "Use this rubric for assignment grading"
- ensure the total points on the rubric is a decimal
- click "Update rubric"
- verify that "This is a graded discussion: N points possible"
  in the header of the discussion has precision 2

Change-Id: I7ab6927dd2c565d88ec72b976d3b59a3b38c0992
Reviewed-on: https://gerrit.instructure.com/203954
Tested-by: Jenkins
Reviewed-by: Frank Murphy III <fmurphy@instructure.com>
QA-Review: Brian Watson <bwatson@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2019-08-12 15:45:41 +00:00
Aaron Griffin 0912d22252 Support i18n numbers when taking a quiz
Test Plan:
- Create a quiz with at least one numeric and one formula question
- Set points, numbers, answers to include decimals or be over 1000 in
  several combinations
- Change locale to one with known thousand/decimal separators
    (French uses comma for decimals and space for thousands)
- Take the quiz and ensure that numbers and dates are properly localized
  all the way through

Closes QO-505

Change-Id: I1bba47e5db666bcf7eb7c477422b1b49ebf8328e
Reviewed-on: https://gerrit.instructure.com/203001
Tested-by: Jenkins
QA-Review: Tyler Burraston <tburraston@instructure.com>
Product-Review: Kevin Dougherty III <jdougherty@instructure.com>
Reviewed-by: Bryan Petty <bpetty@instructure.com>
2019-08-12 15:09:17 +00:00
Pat Renner 6121e6f4db Ensure outcome imports update active records over deleted records
It is possible for multiple outcomes/outcome groups with the same
`vendor_guid` to be present in a given context.
When updating an outcome/group via CSV, we should
always prefer to update an active outcome to restoring a deleted outcome.

fixes OUT-3138

test plan:
- For both an outcome/outcome group, create two records
 with identical `vendor_guid's`. To do this, create two records via CSV
with guids that you define. After importing the CSV, manually update both
records to have the same `vendor_guid`.
- Mark one record as deleted and delete (via CSV)
- When updating a record, ensure only
 the active record is updated

Change-Id: I420a2435255af4bfb807be7d5dd761456151a016
Reviewed-on: https://gerrit.instructure.com/204087
Tested-by: Jenkins
Reviewed-by: Frank Murphy III <fmurphy@instructure.com>
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Brian Watson <bwatson@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2019-08-12 13:55:01 +00:00
Jeremy Stanley 0e60c69c34 A2: fix "everyone else" dates
test plan:
 - create an assignment with different dates for different sections,
   plus unique due and availability dates for "everyone else"
 - as a teacher, ensure the dates that appear on the page in A2
   are correct (specifically, the dates for "everyone else" are
    the base dates and not the widest availability / latest
    due date from the overrides)

fixes ADMIN-2721

Change-Id: Ie2059bd86a5d96ca5fb6901def911a98fb82c39e
Reviewed-on: https://gerrit.instructure.com/202824
Tested-by: Jenkins
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
2019-08-10 00:04:12 +00:00
Adrian Packel c41f803290 Have recent feedback check posted not muted
fixes GRADE-2334

Test plan:
- Flip on the Post Policy feature flag
- Set up two courses with some students and assignments like so:
  - A course using New Gradebook (C1)
    - An auto-posted assignment (A1.1)
    - A manually-posted assignment (A1.2)
  - A course not using New Gradebook (C2)
    - An unmuted assignment (A2.1)
    - A muted assignment (A2.2)
- Enroll a student in both courses
- As a teacher, grade and/or leave a comment for the student on each of
  the above assignments
- As the student, log in and check your dashboard
  - Under "recent feedback", you should see grades/comments for A1.1 and
    A2.1, but *not* A1.2 or A2.2
- As the teacher, post grades for A1.2 and unmute A2.2
- As the student, you should now see these assignments under "recent
  feedback" as well
- As the teacher, hide grades for A1.1 and mute A2.1
- As the student, you should now only see A1.2 and A2.2 under "recent
  feedback"

Change-Id: I1f914510d0fd3bd79cd023f159a2d31c0d16bef4
Reviewed-on: https://gerrit.instructure.com/203756
QA-Review: Keith Garner <kgarner@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
Tested-by: Jenkins
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
2019-08-09 22:30:25 +00:00
Ryan Shaw b349d7708b Canvas-rce: 5.0.1
Change-Id: I31c4a63734e357fc4efe29ae94b864733d515fd9
Reviewed-on: https://gerrit.instructure.com/204598
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-09 22:18:53 +00:00
Ryan Shaw 457b7756ee canvas-rce: fix things so npm package works
Change-Id: I19392b1f06b424eae3f3d063d41c6ae3d9573836
Reviewed-on: https://gerrit.instructure.com/204597
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-09 22:18:37 +00:00
Cody Cutrer c9aab282ba use rails built-in RedisCacheStore
RedisStore is no longer supported

somewhat surprisingly, the serialization formats are compatible, so we don't
need to do any namespacing

Change-Id: Iede3a023cada95313875f0ce419b649c364ee97c
Reviewed-on: https://gerrit.instructure.com/202663
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-08-09 20:22:56 +00:00
Cody Cutrer b3196267db update will_paginate
Change-Id: Ifc52b304d21d5f2084c2f5feb6fff87b1742a853
Reviewed-on: https://gerrit.instructure.com/203633
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-08-09 20:22:38 +00:00
Ryan Shaw cd7ffa86b3 Canvas-rce: bump version
We need to publish this to npm so tinymce-a11-checker can use it
Instead of the old one it is currently using that has instUI 5

Change-Id: I49bd0d8f893c4a806b103bd8117150ab15648dd5
Reviewed-on: https://gerrit.instructure.com/204572
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-08-09 20:10:38 +00:00
James Williams ddbd8ced6b move discussion entry participants creation out of transaction
and simplify logic so we're not querying for the same
participant when setting the subscribed state

Change-Id: Id321909217f0d5f8e5e58592b00f93cc40ede25c
Reviewed-on: https://gerrit.instructure.com/204190
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-09 19:57:03 +00:00
Cameron Matheson a8cb21616c load dynamodb config from consul instead of yml
Change-Id: Ib0c30b4d398144a398de1ac156332959674d6ae6
Reviewed-on: https://gerrit.instructure.com/204452
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2019-08-09 19:01:38 +00:00
Cody Cutrer ef1f1a1851 remove non-applicable references to internal infrastructure
Change-Id: I8fc0f5ecb931d05a5bdf6722277b99a8a898c8ab
Reviewed-on: https://gerrit.instructure.com/204538
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
2019-08-09 17:34:44 +00:00
James Williams c43b3fd5d8 split content migration job stranding by type
let blueprint course syncs, manual imports, and api initiated
imports run in independent queues and not block each other

closes #CORE-3237

Change-Id: Ib37cde3d317069748ad1a3fe91f41c82b8b95cd5
Reviewed-on: https://gerrit.instructure.com/204529
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
2019-08-09 17:16:18 +00:00
Ryan Shaw 34f9a944f3 Don’t include regenerator-runtime on account settings
`axios-cache-adapter`’s “browser” field in package.json says to use
A “dist” file that is prebuilt with webpack to handle old browsers
(github.com/RasCarlito/axios-cache-adapter/blob/master/dist/cache.js)
That means it has a copy of `regenerator-runtime` in it for the async
functions it uses. That is wasteful and is bytes that our users 
shouldn’t need to download.

Test plan:
* the CSP stuff on the account settings page should work the same
* but the webpack js bundle should be smaller

Change-Id: I671f2eb60b57c43e002b9a62fd92feb5c96cd00b
Reviewed-on: https://gerrit.instructure.com/204252
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-09 16:57:43 +00:00
Jeremy Putnam e57c7e777b spec: add image lock and hidden tests for RCS sidebar
Change-Id: I6bc6fffd7492b7b5b7638cd41c73dc75df1bda25
refs: COREFE-34
Reviewed-on: https://gerrit.instructure.com/203047
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-08-09 16:53:30 +00:00
Ryan Shaw 1cc04cb341 check to make sure #breadcrumb exists
…before running all the code to ellipsis it.
this will be a bit faster on pages like the dashboard

test plan:
* the breadcrumbs should work the same as before

Change-Id: I53d18183ab1ba2887157c78949c60a0dc3a8dd20
Reviewed-on: https://gerrit.instructure.com/204349
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-09 16:16:08 +00:00
Cameron Matheson 8d3c8bb01c prepend some blank lines to .gitmessage
This way you can start typing your commit message immediately like back
in the good ol' days.

Change-Id: I4e367e86504e2ae45a30025c30dee3ce7dbe1c21
Reviewed-on: https://gerrit.instructure.com/204455
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-08-09 16:12:53 +00:00
Ethan Knapp 622b101c72 allow GQL postAssignmentGrades per Submission
- adds optional `only_student_ids` argument to postAssignmentGrades
- adds optional `skip_student_ids` argument to postAssignmentGrades
- adds optional `section_ids` argument to postAssignmentGrades
- adds same arguments to hideAssignmentGrades

Test Plan:
- Validate that the postAssignmentGrades and hideAssignmentGrades GQL migrations
    function as expected with varying argument combinations

refs GRADE-2335, PFS-12667, PFS-13439

Change-Id: I518b53869b75a3d538a4e57c138bab250ce24690
Reviewed-on: https://gerrit.instructure.com/202527
Tested-by: Jenkins
QA-Review: Trevor Byington <tbyington@instructure.com>
Reviewed-by: Parker Miller <pmiller@instructure.com>
Product-Review: Ethan Knapp <eknapp@instructure.com>
2019-08-09 15:38:36 +00:00
Clay Diffrient a6def4ef80 Remove other places where sentry was being noisy
Test Plan:
  - Errors don't show in Slack

closes CORE-2894

flag = none

Change-Id: Ib4fe995fc54372ffed635751cde08ce4d1a92772
Reviewed-on: https://gerrit.instructure.com/204502
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-09 15:31:14 +00:00
James Williams debb4b82fe fix race conditions in custom data setting
use unique_constraint_retry when creating record
 and lock! around setting/removing data

closes #ADMIN-2819

Change-Id: If34c9f547e586107bf001bd18d0f94d14b9b8b18
Reviewed-on: https://gerrit.instructure.com/204450
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2019-08-09 15:28:36 +00:00
James Williams f098f3d7f0 add rack deflater and chunking if enabled in consul
and patch rails to make deflater work with streaming templates

Change-Id: Iced2338095df8aaba3af3c4aa7118746aa559a47
Reviewed-on: https://gerrit.instructure.com/203637
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2019-08-09 13:25:09 +00:00
Ryan Shaw f847258802 canvas-planner: upgrade to instUI 6
Change-Id: I60ae49a1a913d0aaffa3891077b051bdbea6fb6b
Reviewed-on: https://gerrit.instructure.com/204307
Reviewed-by: Cameron Matheson <cameron@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-08 23:10:29 +00:00
Ethan Knapp caf1158b43 add sis_source_id to Assignments
Test Plan:
- Canvas Migrations should run successfully
- Attempting to save Assignments (within the same RootAccount) with the
    same sis_source_id should fail
- [API] Assignment GET should include sis_assignment_id field
- [API] Assignment POST should allow setting the sis_assignment_id
- [API] Queries involving an Assignment should support the `assignments/sis_assignment_id:BLAH` syntax

refs PFS-11978, PFS-12661

Change-Id: I37a8d396bb409e98f6372abdc5b08f25f1d8d0f7
Reviewed-on: https://gerrit.instructure.com/199025
Tested-by: Jenkins
Reviewed-by: Tyson Brown <tbrown@instructure.com>
QA-Review: Trevor Byington <tbyington@instructure.com>
Product-Review: Collin Anderson
2019-08-08 23:02:51 +00:00
Cameron Matheson ef7612f077 remove addressbook from dynamic_settings.yml.example
Change-Id: Id93ff8f639e232fe42bb7c5587abe38e52a86087
Reviewed-on: https://gerrit.instructure.com/204451
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Cameron Matheson <cameron@instructure.com>
2019-08-08 22:11:21 +00:00
Ryan Shaw 0b8a1428d6 frd *always* use fetch polyfill for edge <17
Refs: CORE-3225

This also runs the polyfill before loading new relic so that if anything
uses “window.fetchIgnoredByNewRelic” it is the polyfilled version

Test plan:
* in edge 42, load the assignment show page
* you should not get an error in the console like:
HTTP401: DENIED - The requested resource requires user authentication.
(Fetch)GET - https://<canvas>/api/v1/courses/11/lti_apps
/launch_definitions?placements%5B%5D=assignment_edit
* you should also not get an error like that for the
  https://<canvas>/api/v1/conversations/unread_count request

Change-Id: I65ab0a096d6fe4643975623d68dc88ac520e5559
Reviewed-on: https://gerrit.instructure.com/204432
Tested-by: Jenkins
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2019-08-08 22:01:36 +00:00