Commit Graph

48154 Commits

Author SHA1 Message Date
Weston Dransfield 53cb52aae3 Convert image to base64 data URL
Refs MAT-423
flag=rce_buttons_and_icons

Test Plan:
- Navigate to an RCE instance and open
  the tray to create a button & icon
- Scroll down to the image section and
  choose "coure images"
- Click an image
> Verify a base 64 data URL representing
  the image is printed to the console

In the next commit this base 64 data url
will be used to populate the preview icon

Change-Id: Icb6c619c4078c0b18c9f5d5d5b9e6286ac1dc9a6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276942
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
2021-11-08 22:47:52 +00:00
Cody Cutrer e3ab362418 bump rubocop
fixes an error we see sometimes.
no new cops

Change-Id: I9224fd60ec5ba7b327a1726e17669e15f2207bda
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277631
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 22:28:25 +00:00
Simon Williams 0ca51d2be2 teach SplitUser about NotificationPolicyOverride's
refs FOO-2307
flag = none

test plan:
- merge two users
- add a communication channel with an override
- try to split the users
- it should work

Change-Id: Ibe065e58414d051f420fb8231f0882d26acdcac9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/272361
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2021-11-08 22:12:50 +00:00
Simon Williams cb0063f772 bump bundler
Change-Id: I59c4a91a06157d9bc7716587805990828b6c4450
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277613
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2021-11-08 22:12:38 +00:00
Adrian Packel 3f9c18d5b9 properly call callbacks when saving GB settings
When enhanced_gradebook_filters is enabled, actually call the provided
callback functions rather than simply ignoring them. This fixes an issue
where switching between sections (or other options like student groups)
wouldn't actually update the page without a reload.

closes EVAL-2077
flag=enhanced_gradebook_filters

Test plan:
- Have a course with enhanced gradebook filters active
- In Gradebook, switching between the old-style filters using the
  dropdowns (section, student group, etc.) should update immediately
  rather than requiring a reload

Change-Id: I5de8667a5197957c0e16cc673158028b32cc7826
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277130
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
2021-11-08 21:02:57 +00:00
Adrian Packel b0b0074d22 Add observer-related GraphQL fields
Add the associatedUser field to the enrollment type, and the ability to
filter a course's enrollmentsConnection by specific enrollment types and
observed user IDs. This allows us to return only enrollments for
observers observing specific students.

closes EVAL-2059
flag=none

Test plan:
- Have a course with at least two observer enrollments, and various
  other types of enrollments
- Take note of the ID of one of the students being observed
- In GraphiQL or your preferred testing platform, run a query like

query MyQuery {
  course(id: <course ID>) {
    enrollmentsConnection(filter: {
      associatedUserIds: [<observed student ID>]
      types: [ObserverEnrollment]
    }) {
      nodes {
        _id
        type
        user {
          _id
          name
        }
        associatedUser {
          _id
          name
        }
      }
    }
  }
}

- Check that you only receive observer enrollments observing the user ID
  you specified
  - Check that the associatedUser field for observer enrollments contains
    the id/name of the observed user and is null for other enrollment
    types
- Check that the "types" filter option does the right thing without
  specifying any associatedUserIds; e.g., test that asking for
  types: [StudentEnrollment, ObserverEnrollment] returns only student
  and observer enrollments

Change-Id: Ic0be3f6006e84202e017750fe0d3adde9ade2fdc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276775
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2021-11-08 20:59:03 +00:00
Simon Williams 221cbf2b96 fix typo in wiki granular permissions
fixes FOO-2547
flag = none

test plan: "Pages - create" description should be correct

Change-Id: Ic5c71f3987e0495d9f22c7ebc42a9bc6d53a2799
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277582
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2021-11-08 20:47:30 +00:00
Simon Williams d51c6def4e tolerate missing communication channels in user split
refs FOO-2501
flag = none

test plan:
- merge two users with communication channels
- hard delete one of the channels
- split the users
- it should work

Change-Id: I417446cc96e7391dd9d262505ac35b59ab0a333e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276324
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2021-11-08 20:47:23 +00:00
Aaron Shafovaloff 008474310b Ensure plugin-proposal-private-methods is loose
This reduces noise in test output

Test plan:
 - All tests pass

flag=none

Change-Id: I15a9552915a75b75a1de32be40dfd3d38abd4439
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277575
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
2021-11-08 20:22:57 +00:00
Cody Cutrer 005b2d283a add file to easily require all the fixtures for CDC tests
Change-Id: Ib882cced423b8696b32a0eba3c5fcde5fea78cc7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277612
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 19:53:43 +00:00
Jackson Howe 599667cf26 Use global nav color as theme-color
to make safari 15's address bar background match canvas better.

closes LS-2821
flag = none

Test plan:
 - Open Canvas in Safari 15 and expect the tab/address bar color to
   match the global nav background color
 - Open Canvas on Chrome Android and make sure the browser colors
   look ok

Change-Id: I52ea2f7dc5ff5800f62f33b3fce504a8c594c5e9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277541
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
2021-11-08 19:08:44 +00:00
Tucker McKnight 9f24e2a015 Add an optional default state to the dev key store
This is handy for setting the initial state in tests.

test plan:
- specs pass

flag = none

Change-Id: I757a254508806d249190fbcc044355a6ff31c051
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276965
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
Reviewed-by: Sean Scally <sean.scally@instructure.com>
2021-11-08 19:01:48 +00:00
Jackson Howe c56ca86d13 Show publish buttons in course settings
For all courses, not just k5.

closes LS-2811
flag = none

Test plan:
 - Open a course with no grades as a teacher
 - Expect to see publish buttons on home page and in settings, also
   expect the published status indicator to be gone in settings
 - Open a course with grades as a teacher and/or any course as a ta
   (a user without permission to publish)
 - Expect to see the publish indicator on the settings page but no
   publish buttons there or on the home page
 - Expect the above to work for homeroom courses and k5 subjects
   (although no publish controls appear on the home page in subjects)

Change-Id: I46f14c7d280cf8cf20ec32a4f370913765485ece
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277537
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-08 18:43:38 +00:00
Robin Kuss 1f94b62a77 spec: move selenium specs to directories
Closes LS-2817

Test Plan: passes Jenkins

[skip-stages=Flakey]

Change-Id: Ic5ac43e5417b685e83a117de864f8af6556ecb60
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277354
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: James Butters <jbutters@instructure.com>
Product-Review: Robin Kuss <rkuss@instructure.com>
2021-11-08 18:17:47 +00:00
Cody Cutrer 34d15f5e08 RuboCop: Lint/Void
[skip-stages=Flakey]

all manual

Change-Id: I28e1f1528640da64269ae5ad046215b1ad54ceea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277556
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 15:50:45 +00:00
Cody Cutrer 20533e467f RuboCop: Lint/NoReturnInBeginEndBlocks
all manual

Change-Id: I55146b72afcf57838123736cb91976ee8649357b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277555
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 15:50:27 +00:00
Cody Cutrer bb9fe29416 RuboCop: Lint/IneffectiveAccessModifier
all manual

note that for any methods moved/re-indented, I made no other changes
(except possibly a remove of a `self.` on a method call to call another
now-private method) for ease of review

Change-Id: I0cca6644264a0b46a45a1a5c99021c9deb64fca0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277532
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 15:50:15 +00:00
Drake Harper 718513d12f Add inline grading ff check to discussion_topics_controller#show
closes VICE-2223
flag=discussions_inline_grading

Test Plan:
 - turn discussion redesign ff on
 - go to a discussion
 - in the console enter:
    ENV.inline_grading_enabled
 > should be true/false

Change-Id: Idf3b002523135afc1dd59b89106ea40977710c1d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277551
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-08 15:47:38 +00:00
Drake Harper b2abd848f5 Fix error in UserLink
flag=none

Test Plan:
 - specs pass

Change-Id: Idb7ca385f8626033679a76f9df134a75d1c046a8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277562
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-11-08 15:42:56 +00:00
Drake Harper 7d721cbf66 Fix 'Cannot read property 'length' of null'
flag=none

Test Plan:
 - specs pass

Change-Id: If298b7d628b4202abf6fac9c3109d5e26a474ee6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277563
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-11-08 15:42:35 +00:00
Drake Harper 5876c888f7 Fix h4 passes to BillBoard headingAs prop
flag=none

Test Plan:
 - specs pass

Change-Id: If0b5b243282dc39090931ff09c0f55c09b9fa4df
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277564
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-11-08 15:42:25 +00:00
Cody Cutrer d0f1b95b1b RuboCop: Lint/LiteralAsCondition
[skip-stages=Flakey]

all manual

the majority of these were negating symbols to document a boolean
param. the preferred way to do this is to use a kwarg instead.
some of them were converted to that, but some there were many
callsites and conflicting definitions so I didn't want to go that
far in this commit, and I just changed to `true` or `false`
as appropriate

Change-Id: Iccfbc1c7a1fb744704343130a6b2951f6741192f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277547
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 14:18:57 +00:00
Cody Cutrer 7e7bc924b7 RuboCop: Lint/MissingSuper
all manual

Change-Id: Ibc71a5265c81359925c7819ea694f3cb7cc3e542
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277540
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 14:15:35 +00:00
Cody Cutrer 78ab4aa3ab RuboCop: Lint/AmbiguousBlockAssociation
[skip-stages=Flakey]

all manual

Change-Id: I6098510885677b3da681de65e4ef07f7684fdefa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277445
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-08 14:12:46 +00:00
Cody Cutrer 9652bee370 RuboCop: Lint/DuplicateMethods
all manual

Change-Id: Ib24846f21531d23d4908f40c037ad073613516fc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277545
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-05 23:18:28 +00:00
Jackson Howe 40abc7176b Don't error in k5 public course
fixes LS-2814
flag = none

Test plan:
 - Create a k5 course and set it to public visibility
 - Open the course without logging in
 - Expect to see the course content

Change-Id: Icd05f36e9dd476c742520e41ff758969c0ea6449
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277481
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2021-11-05 20:05:38 +00:00
Alex Slaughter 85108b92ba move inst_access to gem
This moves the inst_access gem to the public repo and references
the now published inst_access gem instead.

Github:
https://github.com/instructure/inst_access

Rubygems.org:
https://rubygems.org/gems/inst_access

Test Plan:
 - Specs pass

flag = none

Change-Id: I6002b118723e5a329202085a6c649a857e34d0e3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277527
Reviewed-by: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-05 19:47:46 +00:00
Caleb Guanzon a3d1a17758 storybook component for inline grading
fixes VICE-2221
flag=none

textinput rules? responsive?

test plan:
- yarn storybook
- visit the InlineGrade stories for
needs grading, loading, and graded

Change-Id: Id70a396f2c5597e2747b1049afb474edd596637c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277454
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-05 18:14:57 +00:00
Drake Harper 81f653edd8 Fix name is marked as required in Avatar
flag=none

Test Plan:
 - specs pass

Change-Id: I0322d2287c08af1ab2e432b827b8b76dd2910193
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277498
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-11-05 18:11:32 +00:00
Drake Harper 773eb481df Fix activeMailbox is marked as required
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I937b3de616175245f3f4940e5f4ab75ce64adb87
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277493
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-11-05 18:11:28 +00:00
Drake Harper 3f6a0e53b3 Restore tool tip on discussion landing page
flag=none
closes VICE-2214

Test Plan:
 - see ticket for designs
 - create and publish a discussion
 > should see "All Sections" under topic title on landing page
 > on mouse over tool tip should render

Change-Id: I1477c016eaf1815edb8e8b663f3929524e069179
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276741
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 18:08:24 +00:00
Drake Harper 0ceabbea9e Hide replies when topic is unavailable
refs VICE-1995
flag=react_discussions_post

Test Plan:
 - turn discussion redesign ff on
 - create a discussion with unlock date in the future
 - reply to the discussion topic
 - enter student view
 > replies should be hidden

Change-Id: I347e5c5260507b1b2280b085e98b9c747745cb91
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277460
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 18:07:04 +00:00
Drake Harper e7d7990b91 Fix screenReaderLabel is marked as required
flag=none

Test Plan:
 - specs pass

Change-Id: Iec9cfcd9ead0a2fd72a6d2fdab92237aa912657d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277496
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 18:04:40 +00:00
Drake Harper e99a0003be Create discussions_inline_grading feature flag
closes VICE-2220
flag=discussions_inline_grading

Test Plan:
 > should be able to turn on feature flag

Change-Id: Ib1f7b2677004f4921f7fa4848eeb093b859fb7cd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277539
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 17:59:55 +00:00
Weston Dransfield 3205c04854 Don't include session URL if file is locked
refs MAT-508
flag=none

Test Plan:
- Follow the "steps to reproduce" on the ticket
> Verify the issue is no longer reproducable

Change-Id: I55c1a155477629e6eb5d1b2b151efd839e7f88c8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277506
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Scheiding <jon.scheiding@instructure.com>
QA-Review: Jon Scheiding <jon.scheiding@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2021-11-05 15:39:00 +00:00
Cody Cutrer 990aed867d RuboCop: Lint/EmptyBlock
[skip-stages=Flakey]

all manual

Change-Id: Ief093aaeec2e996caae47c86c84b9c97486cff7c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277466
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-04 21:38:32 +00:00
Omar Gerardo Soto-Fortuño 3a3cf7a6e6 Fix issue on MobileNavigation.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I39b66fdc9f6b42f7c4f07ec8194b03acd3f2495b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277473
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:18:03 +00:00
Omar Gerardo Soto-Fortuño e0044c0170 Add avatarName to CoursesListRow.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I941526af5273a0f6b01abf10eda88f9a526489b7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277487
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:17:47 +00:00
Omar Gerardo Soto-Fortuño bd88f59ab1 Fix issue on AddConference test
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I7b101f46c0fe1043172e7050c2da134d9ad5e1a1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277475
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:17:38 +00:00
Cody Cutrer 3474d36533 RuboCop: Lint/DuplicateBranch
all manual

Change-Id: Iafce1417d95b0d590774f55c769f2abeb139ea96
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277367
Tested-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2021-11-04 20:02:10 +00:00
Jackson Howe 4f01df0ecc Fix showing todos to observer on dashboard
Fixes a regression that prevented observers from seeing the 'coming
up' list on the classic dashboard.

fixes LS-2812
flag = none

Test plan:
 - Create an observer linked to a student in a classic course with
   (at least) 1 upcoming assignment
 - Visit the classic dashboard as the observer
 - Expect to see the upcoming assignment under 'coming up' sidebar
 - Visit the classic dashboard as the student
 - Expect to see the assignment in the same place
 - Visit the k5 dashboard as an observer of a k5 student and switch to
   the schedule tab
 - Expect to see the student's assignments in the planner

Change-Id: If03b864a558727ba1185c7f126677496adbe8940
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277401
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2021-11-04 17:20:38 +00:00
Omar Gerardo Soto-Fortuño 00d2af090d Remove StatusColorListItem error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I41da04e05c1bd7da23e1ddabaa597df2ac0ffd9e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277444
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 17:10:53 +00:00
Omar Gerardo Soto-Fortuño d6bb5170c1 Remove outcomeGroup.title error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ibcd4c2eb70a4b0128190cf1c276f7d1f36edd4b8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277452
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 17:10:42 +00:00
James Butters 803625573a alert canvas_builds-noisy on node failure
alert slack channel canvas_builds-noisy on node
failure and do not fail build for rspecq node
failure.

flag = none

Test Plan:
-Jenkins passes normally
-When queue is depleted and node acquired late
  -Node will release before any steps are ran
-An RSpecQ node throws an exception during steps
 such as can't pull image.
  -The stage will get marked as UNSTABLE, following
   stages will get skipped.
  -Overall build result not affected by this failing
   node.
-If tearDownNode stage fails, overall build will be affected.
-RSpecQ Reporter failures do affect overall build result


Change-Id: Iccbb66cad0a988a26bf17c8332a20d8d7d55ee5b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276927
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2021-11-04 16:06:41 +00:00
Omar Gerardo Soto-Fortuño 16652e106f Remove Gradebook|ScoresGrid error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I9b0817cd7d887fc7ebcfea17330c73fe6f2e32c4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277431
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:47:28 +00:00
Omar Gerardo Soto-Fortuño 7bdbb53df3 Remove HomeroomAnnouncementsLayout|LoadingWrapper error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I06f16b79589751a675b683ca64615dd4c2c41045
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277434
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:47:08 +00:00
Omar Gerardo Soto-Fortuño cc89c3a6f2 Fixes on studentMocks.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ide5410396bf2c3e87bddc48d2e8b69df40e7bf8b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277432
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 15:46:47 +00:00
Omar Gerardo Soto-Fortuño 93ae132983 Remove other CanvasContentTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I5a7988c0ece517fcb5d7adff2f731e4005edcc19
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277439
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:46:34 +00:00
Omar Gerardo Soto-Fortuño 13ae8a62d8 Remove CanvasContentTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I62592d42fd9a1a0f6dd76e1f439f765dcde081d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277437
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:46:24 +00:00
Ed Schiebel 5c6cae1d3f Update some rce unit tests
closes MAT-507
flag=none

test plan: passes jenkins

Change-Id: Ibd76101c4a7a75c5656a70a03b46afa25e86fdcc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277430
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
Reviewed-by: Jon Scheiding <jon.scheiding@instructure.com>
QA-Review: Jon Scheiding <jon.scheiding@instructure.com>
Product-Review: Jon Scheiding <jon.scheiding@instructure.com>
2021-11-04 15:38:06 +00:00