Commit Graph

47958 Commits

Author SHA1 Message Date
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
Omar Gerardo Soto-Fortuño 99867afd89 Remove Gradebook error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I0ce651f6f05fc8ea5c80f9ad01a18df0b3aad8de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277287
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-02 18:53:12 +00:00
Omar Gerardo Soto-Fortuño cc65b893bc Fix missing ids on people_search.spec.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I2e4c00ba9c66804d74cb30550f70c8fe909b3763
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277186
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-02 18:52:49 +00:00
Omar Gerardo Soto-Fortuño ea590876ea Remove RubricTab error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie88893070e812bcd95c3f599f938d5d2b9aefdd9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277251
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-02 18:12:34 +00:00
Omar Gerardo Soto-Fortuño cb8f2da2d2 Fix issue on SVGWithTextPlaceholder.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I072a65e2e94a6f84a9b3bfff969831c9188a643b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277198
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-02 18:12:22 +00:00
Ethan Vizitei fc439c30bf parameterize class caching in test
closes FOO-2539
flag=none

TEST PLAN:
  1) specs pass

Change-Id: Ibd4030767a8f015b3c197a568d7bb26a91dca92d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277273
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2021-11-02 17:06:57 +00:00
Ethan Vizitei c0f7b567fa no need to reset column info on unloaded models
refs FOO-1786
flag=none

TEST PLAN:
  1) specs pass

Change-Id: I4dfdf06a46a4caaf1e71feaa96066cf460fb7a3b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277253
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2021-11-02 17:00:28 +00:00
Omar Gerardo Soto-Fortuño a6e831b6bc Add missing mastery to test files
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ic7e2fd51927fa9620f226ea91175760eef0525cb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277256
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-02 16:07:00 +00:00
Omar Gerardo Soto-Fortuño 57e84ebdca Remove Rubric error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Icb0066744675c2c2cc254ec86e66f61479255ad7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277254
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-02 16:06:30 +00:00
Omar Gerardo Soto-Fortuño 5a3425c504 Remove Rubric error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I82cecfe4905cea3d6b9ed0bd6eecc04bc3624649
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277209
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-02 16:04:30 +00:00
Omar Gerardo Soto-Fortuño b37ce854f3 Fix missing value on examples.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: If48d470b51d92e22bc3c5ea26a311d04eda366f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277200
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-02 16:03:58 +00:00
Omar Gerardo Soto-Fortuño c32c54a887 Remove RCEWrapper error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: If8fe48b2b82d6b31a12c3dcc6900abb7e096f419
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277191
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-02 16:02:53 +00:00
Cody Cutrer 0321c40e94 RuboCop: Lint/ConstantDefinitionInBlock app, config, gems, lib
all except for spec

all manual

Change-Id: I8d4f118598ad7521b705a52d1133097b17f94393
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277228
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-02 01:34:48 +00:00
Ethan Vizitei e869d9dfd0 no more "require_or_load" in zeitwerk
refs FOO-2439
flag=none

https://github.com/fxn/zeitwerk/issues/56#issuecomment-504117957

TEST PLAN:
  1) specs pass

Change-Id: I47767c7691a25ef298820072e7e4fe6b39fb89f8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277229
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
2021-11-01 22:20:21 +00:00
Cody Cutrer f1ffab93db spec: remove Spec/DeterministicDescribedClasses cop
it's no longer a problem with zeitwerk

Change-Id: I737701d9f3400468d9a8698a898b422f5969e780
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277227
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-01 21:58:03 +00:00
Cody Cutrer e855a55ff2 bump json gem
Change-Id: I21eb0a6bcf6056ee2dc136844a9d19ec434ae0a6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277206
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-01 20:43:50 +00:00
Jacob Burroughs d508494708 Expose region/env in signed jwts
Change-Id: I2590ccb1f0568a73d2cc2b4cc297365a846692b1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277207
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2021-11-01 20:17:06 +00:00
Mysti Lilla cd9c592f03 Ensure student view can see quizzes
fixes INTEROP-7116
flag=none

Test plan
- Have a course with new quizzes set up
- Have a new quiz set up for testing
- Ensure student view student can see
  the quiz when the course is active
- The student view student should
  get a concluded message if the
  course is concluded

Change-Id: Id160cc51fe37337baf65c36e46ce9947a05c5776
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277149
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
2021-11-01 18:32:19 +00:00
Omar Gerardo Soto-Fortuño f7317bf0b1 Add missing userId to a few tests
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Iec4614be0784b0f363c579d68dd077d7ec6ac056
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277188
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-01 15:10:07 +00:00
Ethan Vizitei b261f7fabe default zeitwerk to on unless kill-switched
refs FOO-2443
flag=none

TEST PLAN:
  1) specs pass

Change-Id: I7b336ef83dbe7da4db257f6b4e2da42cecb9a8fe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277167
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-01 13:08:09 +00:00
Ethan Vizitei a6679f0fba enviornment-based enablement of zeitwerk
closes FOO-2440
flag=none

TEST PLAN:
  1) specs pass

Change-Id: I10afd058843a42ce7a89d1a99fca63029c07c09e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277154
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-10-30 15:30:16 +00:00
Eric Saupe 78d83a8efb Support end date saving for pace plans
fixes LS-2770
flag=pace_plans

test plan
- Create a course with pace plans enabled
- Create a module with some assignments
- Go to pace plans
- Verify that in the settings drop down there is an option for
"Require completion by specified end date" and is selectable
- Verify that when selected that an end date selector is present and
functions respecting weekend setting and blackout dates
- Verify that the projection date selections don't affect the end date
selector in settings
- With the setting enabled verify that publishing the pace plan is
successful and the pace plan has hard_end_dates set to true and end_date
set to what was set on the frontend

Change-Id: Id24b7d3752e0a607d2be6953d5a8de308d7a2298
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276633
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeff Largent <jeff.largent@instructure.com>
QA-Review: Jeff Largent <jeff.largent@instructure.com>
Product-Review: Eric Saupe <eric.saupe@instructure.com>
2021-10-29 20:58:39 +00:00
Jeffrey Johnson a279f4e368 AddressBook for Conversation Inbox
fixes VICE-2150

Test Plan
1. Pull down code and run storybook `yarn storybook`
2. Test the following cases to capture end to end component behavior

Case 1.
1. Open Dropdown menu with mouse
2. Both clicking address book button and input should work
3. Select an item
4. Item should show up in tags near input
5. Tags should be dismissable via mouse
6. Test same scenario with Limit of 1 story to test that limiting works

Case 2.
1. Use your keyboard to navigate to the input
2. Focus should open the menu
2a. Down arrow or Address book button can also open the menu
3. Use your up and down keys to navigate
3a. Note: Search filtering will be handlede at the container. Input only
returns characters to <AddressBook /> consumer at the moment
4. Select a user using the enter key
5. Notice shift tabbing should focus tags and allow them to be dismissed

Overall notes:
1. Nested navigation will be handled at the Container level as each
click will trigger a new query
2. Courses and Back button should not appear in tags

Change-Id: I4abad8f2c2b179b534032ce166da4d8df237a004
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276868
Reviewed-by: Matthew Lemon <mlemon@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Matthew Lemon <mlemon@instructure.com>
Product-Review: Matthew Lemon <mlemon@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-10-29 20:24:53 +00:00
Jackson Howe 8727e931e0 Create CourseCreationSettings component
This is rendered in place of the existing course creation settings
in root account settings when the RootAccount
:create_course_subaccount_picker flag is enabled. It supports setting
the existing course creation settings, plus two new settings:
 - teachers_can_create_courses_anywhere, and
 - students_can_create_courses_anywhere
This will eventually be used in the CreateCourseModal to allow admins
to limit where users can create courses, if desired.

refs LS-2780
flag = create_course_subaccount_picker

Test plan:
 - With the flag off, open root account settings as an admin
 - Expect to see the classic settings under 'Who can create new
   courses'
 - Turn on create_course_subaccount_picker flag
 - On the settings page, expect those classic controls to be replaced
 - Expect the radio buttons under 'Teachers' and 'Students' to render
   only when the parent checkbox is checked
 - Alter the settings, save the page, and expect changes to persist

Change-Id: I6801b9c201f3fb00a3c0821ea1e855b4561bb72c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276964
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2021-10-29 19:13:58 +00:00
Jacob Burroughs 4378cca0e4 Actually always inject autoextend into rails autoloaders
Change-Id: Ib2fdd0d82810e2ecc6de29b79b401c163a206189
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277135
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2021-10-29 18:21:38 +00:00