Commit Graph

47982 Commits

Author SHA1 Message Date
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
Jon Scheiding a2b5634d3d Fix RCE docker-compose configuration to work right with Dory
flag=none

test plan
- none

Change-Id: Ibbc54592f91afc8db49eb40f0f5cd58b8a5001aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276932
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Jon Scheiding <jon.scheiding@instructure.com>
Product-Review: Jon Scheiding <jon.scheiding@instructure.com>
2021-11-04 14:56:53 +00:00
Ethan Vizitei bb7489017a remove dead code
refs FOO-1786
flag=none

No code should invoke these helpers anymore
so let's remove them before any more start

TEST PLAN:
  1) specs pass

Change-Id: Ia9994424e804426afb90d3bc82e00e6916b0634e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277296
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>
2021-11-04 14:19:17 +00:00
Cody Cutrer 649e5b36a2 RuboCop: Lint/ShadowingOuterLocalVariable
[skip-stages=Flakey]

all manual

Change-Id: Ieb74efcd4206426973dd72eb2ca7c5f5af5167f4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277394
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-04 14:02:24 +00:00
Cody Cutrer 6b500d3193 RuboCop: Lint/ConstantDefinitionInBlock spec/[m-z]
[skip-stages=Flakey]

all manual, and this concludes this cop for the entire codebase, so
change it to error severity to enforce it

Change-Id: I770c62bbd93ccd4f0b11252fd0cf61158f1ee7cb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277357
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-04 03:05:09 +00:00
Mysti Lilla 4cb6c73962 Revert "Simplify Originality Report loading"
This reverts commit 62ed206651.
fixes INTEROP-7140
flag=none

Reason for revert: Originality Reports without submission_times
are causing 500s in Gradebook.

Change-Id: I22663dddb9a28a0a4f88fb2957ad48459f3f2475
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276744
Reviewed-by: Evan Battaglia <ebattaglia@instructure.com>
Reviewed-by: Tucker Mcknight <tmcknight@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-03 20:57:44 +00:00
Drake Harper 48c8757196 Show alert when topic is locked
refs VICE-1995
flag=react_discussions_post

Test Plan:
 - discussions redesign ff on
 - create a discussion with an availability date in the future
 - enter student view
 > should see alert saying topic is locked (see ticket for designs)

Change-Id: I99e367822fb832b3678e2d513a505ade192e9ce2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275340
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-11-03 20:07:34 +00:00
Drake Harper 977523ba31 Hide all the things when topic is locked
refs VICE-1995
flag=react_discussions_post

Test Plan:
 - discussions redesign ff on
 - create a discussion with an availability date in the future
 - enter student view
 > should only see topic title (see ticket for designs)

Change-Id: I3daf2a553633d8761ef6c4bec4aedf773f03922f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275336
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-11-03 20:07:23 +00:00
Mysti Lilla 4b96dc0f32 Skip fragile spec in api_scope_mapper_loader
refs INTEROP-7144
flag=none

Test plan
-Specs pass

Change-Id: Id2ad8394267f082054ee29fd1b920cec7749e6e9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277378
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Tucker Mcknight <tmcknight@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
2021-11-03 19:38:01 +00:00
Omar Gerardo Soto-Fortuño 6e439c0f46 Fixes on Scopes.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I77e182eb8c6afdb65c4f762ce86a78967efb4fda
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277355
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-03 18:51:15 +00:00
Drake Harper ad5f079c16 Change lockedForUser to availableForUser in discussion query
refs VICE-1995
flag=react_discussions_post

Test Plan:
 - turn discussions redesign ff on
 - open network inspector
 - go to a discussion
 - open graphql response for the discussion
 > should see availableForUser on the discussion

Change-Id: Iaa3181307f1aa2d398c4a2c5421b4f188f470b23
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277134
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-03 18:48:25 +00:00
Drake Harper 5eedf5a45f Add availableForUser to discussion gql type
refs VICE-1995
flag=react_discussions_post

Test Plan:
 - turn discussions redesign ff on
 - create a discussion with the available date in the future
 - open network inspector and check the graphql respose
 > lockedForUser on the discussion should be true
 > verify the same with a graded discussion
 - set the due date to be in the past
 > lockedForUser should be false for graded and ungraded

Change-Id: I99e807530f037b7edff19b7cd459cd19e9f57a65
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276410
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-03 18:48:12 +00:00
Drake Harper 2e85789103 Change posts to replies on disucssion landing page
closes VICE-2218
flag=none

Test Plan:
 - go the the discussions landing page
 - open the settings modal
 - should see:
    > "Edit and delete their own replies"
    > "Manually mark replies as read"

Change-Id: I07488d779ce906c160103127cdc464dcd33019b4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277143
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-03 18:18:56 +00:00
Drake Harper d1e3e203b8 Change discussion settings modal title
refs VICE-2218
flag=none

Test Plan:
 - go the the discussions landing page
 - open the settings modal
 - should see:
    > "Discussion Settings"

Change-Id: Ia89f0791965ef234ad1f882b96e35fa9d2cc10bb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277197
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-03 18:17:56 +00:00
Drake Harper 6034d94965 Make discussion section headers screen reader friendly
flag=none
closes VICE-2188

Test Plan:
 - go to discussion landing page
 - turn on screen reader
 > should read discussion container title

Change-Id: I71d5dec625e14dcb3d02a3523d09754c6b4087ad
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277218
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-03 18:17:20 +00:00
Omar Gerardo Soto-Fortuño be4de1c4a9 Fix issue on ActionButtons.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ieee854eaad959c57983437ca86908c221cdfcb42
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277345
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-03 18:04:00 +00:00
Omar Gerardo Soto-Fortuño 1000057511 Fix issue on MessageListActionContainer.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Icbb4ed087b68c9b0ff2f05e23f015e06fe7951d3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277343
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-03 18:03:47 +00:00
Omar Gerardo Soto-Fortuño e3820d60bb Remove PermissionTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I02d7e0bddbf0afbcf4a1e6ea5bd96248bcac6d46
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277340
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-03 18:03:32 +00:00
Omar Gerardo Soto-Fortuño 94c5e42ba8 Fix missing attributes on StudentOutcomeScore.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ibccc31b1937c9463e3dcc009f9f3c8e0fc5136c5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277292
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-03 18:03:21 +00:00
Matthew Lemon ffb416e3b4 add @apollo/client to our dependencies
refs VICE-2232
flag=none

Test Plan:
- N/A nothing has changed except adding in a new dependency

Change-Id: I310623d0c35cca38d7a37a9a9c66a5f2f87df59a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277364
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
2021-11-03 17:13:51 +00:00
Cody Cutrer 6f0b6ac899 RuboCop: Lint/ConstantDefinitionInBlock spec/[a-l]
[skip-stages=Flakey]

all manual

the fixes are a little scattered, since the same method doesn't work
everywhere depending on requirements. mostly I changed to `let`, but
some required `stub_const`. For `let`, I eventually settled on
avoiding a dedicated `let` for the class if it's only used one, and
it's a trivial class just to include the module. otherwise there's
a separate `let` for the class, and if there's only one it's named
`klass` instead of something contrived.

Change-Id: I84734c963d4789be3ec3cd852cca623e7c2a08df
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277285
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-03 16:24:08 +00:00
Omar Gerardo Soto-Fortuño 9a4d5cd7ee Remove StudentOutcomeScore error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Iee41f20f3d3f1195cbd8ca72658b22164584ec80
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277290
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-03 12:21:20 +00:00
Rob Orton 5218d12088 link to user at the account for different account
test plan
 - have a user that has multiple logins from multiple accounts
 - the link to the account should be to the user on other accounts
 - the link to the account should be the same as before for same account

Change-Id: If811980f82a7a0da8b5241bc34a6b55034e77e53
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275978
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
2021-11-02 22:17:08 +00:00