Commit Graph

58200 Commits

Author SHA1 Message Date
Jenkins a427bda2e3 [i18n] Update package translations
Change-Id: Ica23600d63eae792e0c77d8ccf153233a03d7f28
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332767
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-14 04:51:23 +00:00
Aaron Shafovaloff 6e749908f7 Politely suggest that new .js(x) files be in TypeScript
Test plan:
  - Add a new .js or .jsx file
  - Create a new commit locally
  - A warning should appear

flag=none

Change-Id: If4d389e67e86d3dda48c33d8adc12b624f3269a2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332764
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-14 03:07:16 +00:00
August Thornton 435bfe3ae3 refactor out temp enrollment rendering from UserListRow
closes FOO-4051
flag = temporary_enrollments

test plan:
 • ensure temporary enrollments feature flag is enabled
 • have a recipient and provider or temporary enrollments
 • visit /accounts/self/users
 • verify
   • a temporary enrollment icon for finding a recipient
   • a temporary enrollment icon for listing recipients
   • a temporary enrollment icon for listing providers

Change-Id: If7d05e907d8ab305a2b38c567ef6f40d644646c3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332724
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2023-11-14 01:41:16 +00:00
Tucker McKnight eee9314c77 Allow canvas extension placements in LTI registration
fixes INTEROP-8301

flag = lti_dynamic_registration

test plan:
- specs pass

Change-Id: I7639e8bd92bdf8e37ed9f1c4e30b4a75d724044e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332641
Reviewed-by: Evan Battaglia <ebattaglia@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
Product-Review: Tucker Mcknight <tmcknight@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-14 00:21:18 +00:00
Aaron Shafovaloff 9dd2786a51 TypeScriptify courseAPIClient
Change-Id: I20b09b263fca5e3de4ce21cf31228509e45e71ee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332756
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-14 00:01:48 +00:00
Kai Bjorkman a6ac731edb spec: skip flakey speedgrader specs
flag=none
refs EVAL-3713

Test Plan:
    -specs pass

Change-Id: I45083c74d25ae4f80ddfa5f916225a0b7be62d2c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332423
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2023-11-13 23:59:05 +00:00
Kai Bjorkman 1fe31e68d4 spec: skip flakey speedgrader specs
flag=none
refs EVAL-3713

Test Plan:
    -specs pass

Change-Id: I92fbc5c7ec5efa01f59b1e12341bf6619e186f41
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332422
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-13 23:26:18 +00:00
Cody Cutrer 016ae41723 lint several more idempotent schema changes in non transactional migrations
and actually enforce the linter (by setting a cutoff date for old migrations)

Change-Id: I50001b479e24b30714c37c331515b186bc089468
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332721
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>
Migration-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:39:11 +00:00
Cody Cutrer 584a8d0ece bundle update unf_ext
Change-Id: I3f2806bd5991ee9b968ede7c24ea0f44c881d526
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332710
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:38:47 +00:00
Cody Cutrer d8ff3dc808 bundle update twilio-ruby
Change-Id: I7d111dc8676e68eb6f6f49b4e8defe61a472ca15
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332709
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:38:32 +00:00
Cody Cutrer 2c5874565d bundle update sentry
Change-Id: I2ecc1ea3fbb9d30861cf75a0313fb22fca2ea67d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332707
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:38:14 +00:00
Cody Cutrer 23515847b1 bundle update selenium-webdriver
Change-Id: Id700a662933ba407a4432a820bf97aae157b2c8b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332706
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:37:58 +00:00
Cody Cutrer 00f1eeeca9 bundle update rake
Change-Id: I4cdde145effb3ce7060d3c1eb280fcc75a873050
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332704
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:37:43 +00:00
Cody Cutrer 37251bea15 bundle update racc
Change-Id: I07bf6a8a8f344a95b59f172d512fbe5affbfe64a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332703
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:37:24 +00:00
Cody Cutrer 70de3e08ce bundle update pygments.rb
Change-Id: I28444d52278cba2e19c636ada2e7b11c8a73da18
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332702
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:37:09 +00:00
Cody Cutrer 259f580ed8 bundle update net-imap
Change-Id: I6960aad6dfbd4d0c46e62d6a49600437a060116e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332701
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:36:43 +00:00
Cody Cutrer b5b9621520 bundle update aws
Change-Id: I09eca850074fd1a3d2e1662a44b3f07ac946e546
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332695
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:36:28 +00:00
Cody Cutrer d1db9417e5 bundle update irb
Change-Id: Ia88628eefb81c9cd53308260a1fd99ec1ff63b73
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332699
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:36:05 +00:00
Cody Cutrer 1590966c7a bundle update ddtrace
Change-Id: I3715b37121ba84368146ef0e79099a5703f27349
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332698
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:35:53 +00:00
Cody Cutrer 3d6f5bb1d3 bundle update base gems
Change-Id: I459650c8b3bc332aa1e1f8f0927d1f41b69939d4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332696
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 21:34:17 +00:00
jonathan 0b2ca64920 Add loading overlay to DifferentiatedModulesTray
closes LF-737
flag = differentiated_modules

Test plan:
- Go to the modules and edit one
- Expect to see the loading overlay while saving
- Expect the tray to be closed when the request finishes
- Tray to edit a module again, but this time make the
request fail
- Expect the tray to keep open but the loading overlay to be closed

- Verify this also works for the Assign to tab

Change-Id: Ic648f0163eaf1d747341e11161e49b4a3bbe7c51
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332548
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
2023-11-13 19:45:45 +00:00
Cody Cutrer ec2a6a9e2d lint that datafixups strand downstream jobs
fixes AE-496

Change-Id: I9808be8abb432c0813a043f876d336ecd92397e2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332715
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>
2023-11-13 19:36:10 +00:00
Caleb Guanzon 167caa04d1 move const declarations to within boundingBox hook
flag=react_inbox
fixes VICE-3764

the issue referenced in the ticket was a regression caused by
https://gerrit.instructure.com/c/canvas-lms/+/310218

the 2 consts defined outside of the boundingBox hook
meant that whenever the hook is triggerred, it doesn't
use a fresh value for isFullScreen and isEmbedded,
which, in react inbox's case, had ended up always being
null

by putting these const declarations inside the hook,
we ensure that both consts are fresh when they are needed
to determine if we are embedded, or in full screen mode

test plan:
- enable kaltura plugin /plugins/kaltura
- ask caleb for plugin credentials
- visit inbox
- send a message with a video
- view the message you sent
- verify the video thumbnail
shows the full video picture and not
super zoomed in
- switch to full screen
- verify that full screen sets video to full screen

Change-Id: I41f052358028f9490d382567dae5d181d425f5c8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332705
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-13 19:26:06 +00:00
Cody Cutrer 798b3d7c03 exclude shadow users from root account id update data fixup
they'll get updated when their primary record does

also ensure we select root_account_ids, so that the refresher
doesn't have to save every record if it didn't change

also ensure other columns are selected that callbacks would
fill in a default if they're not present

Change-Id: I2950916cb3d574eddd8ffc7f02b27ccdc6baca57
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332727
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-11-13 19:17:03 +00:00
Evan Battaglia 19d326f35b Fix inaccurate documentation
refs INTEROP-8275
flag=none

Test plan: n/a

Change-Id: Ia4e4f5310f8dd285e6c778936e0b807535b81ccd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332713
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Xander Moffatt <xmoffatt@instructure.com>
QA-Review: Evan Battaglia <ebattaglia@instructure.com>
Product-Review: Evan Battaglia <ebattaglia@instructure.com>
2023-11-13 17:42:57 +00:00
Samuel Lee 1fe3302193 fix score for multiple attempt essay quizzes
fix issue where the late policy was not being applied for multiple
attempt submissions on a quiz with an essay question that has not been
graded

fixes EVAL-3619
flag=none

Test Plan:
- create a late policy that has point deductions
- create a classic quiz with more than two questions that allows for
  multiple attempts and is also late
- have at least one of the questions be an essay question or a
  non-automatically graded question
- have the rest be automatically graded question such as a true or false
  question
- have the student take the quiz twice
- go to speed grader and confirm that the grade in the input box is
  correct by adding all the scores of the correct quiz questions and
  does not have the late penalty added upon it

Change-Id: I42f71ecaa2218dfee14e371fefea728f34429c64
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331812
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2023-11-13 17:35:38 +00:00
Jason Gillett 224809b1ac Implement post_to_sis in create graded discussion
closes VICE-3882
flag= create_discussion

Exclusion, does not work for updating a discussion assignment
That work is blocked by VICE-3891.

Test Plan
1. in graphiql create a new graded discussion
2. Verify that the post_to_sis boolean is set correctly

Behaviors
1. if input is not provided, it shoul dbe false
2. Otherwise the post_to_sis follows the given input

Change-Id: I2a7705558369729c590b473c5a7e83214cde3ff6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332620
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Chawn Neal <chawn.neal@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-11-13 17:25:07 +00:00
Xander Moffatt b135c9142d document LTI Platform Storage implementation
why:
* for posterity and future reference

closes INTEROP-8308
flag=none

test plan:
* verify this info is correct

Change-Id: I4a4d1b5e65a2371b23985ec8494b0c499968ea87
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332032
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Tucker Mcknight <tmcknight@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Xander Moffatt <xmoffatt@instructure.com>
2023-11-13 17:14:47 +00:00
Kai Bjorkman ed81f8ab2e allow cross shard observers to fetch submissions
We  made a change a few months back that changed the way we were finding
the observer enrollments when fetching assignments from the api. This
caused cross shard observer enrollments to not be found. I kept around
the change to ensure the bug it was fixing is still fixed, but brought
back the original context_enrollment to ensure that cross shard
enrollments are found.

closes EVAL-3617
flag=none

Test Plan:
    - enroll two users that are not observers in a cross shard course
    - enroll one as a student and the other as an observer that is
    linked to the student
    - make a few assignments and give a few grades to the student
    - as an observer hit the assignment group api endpoint (this is
    used by the mobile app to fetch the assignment and submission data
    for the gradebook)
    - GET /api/v1/courses/:course_id/assignment_groups
    -include[]=assignments,submission,observed_users,score_statistics,
    discussion_topic,all_dates
    -ensure the submission data is returned for the observed student
    with the appropriate scores

Change-Id: Ie25608ca164250434f63b2d78ebc21230a1cc889
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330778
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Samuel Lee <samuel.lee@instructure.com>
QA-Review: Jackson Huang <jackson.huang@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2023-11-13 17:07:25 +00:00
James Butters 4727ccba2a rce with inst-cli
testing to be performed on
https://gerrit.instructure.com/c/notorious/+/330646

refs: DE-1663

Change-Id: I57e275860b2941a125a4780dcefdf3dddd1dda6f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/330818
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-11-13 15:02:40 +00:00
Aaron Shafovaloff 9478042939 Move TimeZoneSelect into ui/shared/timezone
Change-Id: I854fc1719bd1474af0742384c0d9dcd43e220fc8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332629
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-12 00:29:47 +00:00
Aaron Shafovaloff 77db904b63 Improve typings on Env
Change-Id: I270a087846396c0142504f54dfb37a9bcd715814
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332630
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-12 00:29:39 +00:00
Aaron Shafovaloff d2cbdf7850 TypeScriptify usedDebouncedSearchTerm
Change-Id: Ifd8879c07e5a9c5d72b837e928c47a9c1a29bf63
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332632
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gustavo Bernardes <gustavo.bernardes@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-12 00:29:30 +00:00
Aaron Shafovaloff 49e5b5f276 Improve typings on FlashAlert
Change-Id: Iab5889e4b778d4357eef21bc18e94b3867549139
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332631
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-11 21:09:18 +00:00
Paul Gray 1b9413cb3c Propagate type parameters in custom useQuery
This commit expands the CustomUseQueryOptions type to include all the
type parameters of the underlying UseQueryOptions type hook. This allows
us to infer the type of parameters to the queryFn parameter

test plan:
Typechecks pass. There are no runtime changes in this commit

flag=none

Change-Id: I94b1c15291b2165a0f5cb594300296af278d8611
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332384
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-11 04:14:07 +00:00
Jason Anderson 063fba5ece Update Gradebook Menu Header for Legacy LMGB
closes OUT-6011
flag=none

The header and carrot nav icon need to be updated in
LMGB to match current designs for the navigation epic

Test Plan:
 - Open a course with LMGB enabled
 - Make sure that the LMGB Redesign FF is disabled
 - Navigate to "Grades"
 - Ensure that the Gradebook Menu renders according
    to figma designs found in the ticket
 - Ensure that the dropdown menu correctly navigates
    to all other available gradebooks for the course

Change-Id: I57ac9e04344ef8f38fc8df859f377e2bfaa8172d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332031
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Yosifov <martin.yosifov@instructure.com>
QA-Review: Martin Yosifov <martin.yosifov@instructure.com>
Product-Review: Kyle Rosenbaum <krosenbaum@instructure.com>
2023-11-10 23:36:36 +00:00
Xander Moffatt 08ede78f09 clarify fall back for LTI platform storage
why:
* make it very clear when this API is supported
and what to do when it's not

closes INTEROP-8273
flag=none

test plan:
* info is accurate

Change-Id: I158a6264d044c911020cf97367f332df85a33d03
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332247
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Hawkins <ryan.hawkins@instructure.com>
QA-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
Product-Review: Alexis Nast <alexis.nast@instructure.com>
2023-11-10 23:18:39 +00:00
Aaron Shafovaloff e22f1d8eb1 improve typing of CanvasSelect wrapper
Change-Id: Ic51379357890a09d956a983767f55c73b68f46d0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332612
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-11-10 21:43:45 +00:00
Michael Hulse eb98a75857 update temp enrollment modal fetch params
This updates the temporary enrollment modal to use the
latest/updated API enrollment fetch params.

refs FOO-4041
refs FOO-4019
flag = temporary_enrollments

test plan:
- tests pass

Change-Id: I0e743ec1d7d2865a514b552c41257e965a40aeee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332610
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
2023-11-10 21:37:55 +00:00
August Thornton a777dcb99a add back ability to fetch temp enrollment provider recipients
refs FOO-4041
refs FOO-4019
flag = temporary_enrollments

test plan:
 • enable temporary enrollments feature flag
 • have a temporary enrollment recipient and provider
 • make a call to GET /api/v1/users/:user_id/temporary_enrollment_status
  • verify the response contains the recipient and provider
    temporary enrollment status if that user is a recipient or provider
 /doc/api/enrollments.html#method.enrollments_api.temporary_enrollments
  • create a user with an active temporary enrollment and an
    enrollment that is completed
  • fetch /api/v1/users/:id/enrollments with the provided args
     • temporary_enrollments_for_recipient=true
     • include=temporary_enrollment_providers
     • state=current_and_future
  • verify that the response includes the current temporary enrollment
    with an included "temporary_enrollment_provider" object
  • fetch /api/v1/users/:id/enrollments with the provided args
     • temporary_enrollment_recipients_for_provider=true
     • state=current_and_future
  • verify that the response includes the current temporary enrollment
    for the specified provider

Change-Id: Ie547fea0cf2a0ee383a94a5e44a07a7ad24de0f7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332550
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Michael Hulse <michael.hulse@instructure.com>
2023-11-10 20:05:20 +00:00
Jenkins 003d396aa4 [i18n] Update RCE translations.
Change-Id: I68c7777cf55f4792319b5076397d714a025b4631
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332602
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:50:13 +00:00
Jenkins 8da0912480 [i18n] Update canvas-media translations.
Change-Id: I4f5d406300fd5eca3eaa094864c97c598627eadd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332601
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:49:57 +00:00
Jenkins 0cc9341be4 [i18n] Update package translations
Change-Id: I4ebecf17a4143804cbfdb58e8d9cb74356fd6b42
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332600
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 18:49:46 +00:00
Jackson Howe b6d0fde831 Give s3 translations precedence in package-translations
closes LF-994
flag = none

Test plan:
 - wait for the package-translations job to run
 - make sure the resulting commit has complete translation sets for
   vi, th, sv, and ru (these were the only locales with translations
   in both s3 and transifex; other locales should not be affected as
   they were only present in a single source)

Change-Id: Ia78c006fe30290256813938c7a87d2c7d9cdb116
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332518
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-11-10 18:33:32 +00:00
Chris Soto 541d6492c2 add rubric redesign react-query setup
this commit adds the foundation for react-query to the rubrics redesign.
it also uses new graphql queries to return rubric data to the front end.

closes EVAL-3616
flag=enhanced_rubrics

test plan:
- navigate to /accounts/<id>/rubrics
- verify that if the account has rubrics, they are displayed in the
  table
- navigate to /courses/<id>/rubrics
- verify that if the course has rubrics, they are displayed in the table

Change-Id: Ib340a37ad1c3a3d28413b3e8cfce359aa3f5db7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/331718
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Derek Williams <derek.williams@instructure.com>
Product-Review: Cameron Ray <cameron.ray@instructure.com>
2023-11-10 18:19:53 +00:00
Kai Bjorkman d65358ae19 updated grading schemes in discussions
The updated grading scheme selector and editor was not available in
discussions.  This commit adds the grading scheme selector and editor to
graded discussions.

closes EVAL-3649
flag=grading_scheme_updates
flag=points_based_grading_schemes

Test Plan
  - Enable 'Improve Letter Grading Scheme Usability'
(grading_scheme_updates) site admin flag
  - Enable 'Points Based Grading Schemes' flag and create one
  - Set a course level grading scheme
  - Edit a discussion
  - Select Graded
  - Select 'Display Grade As' to Letter Grade or GPA scale
  - Test selecting of assignment grading scheme,
    and adding, removing, editing, and managing of course
    level grading schemes
  - Ensure it works exactly as the assignment edit page

Change-Id: Id5e2742d85af686e9e6bfba3c842fabfe6419b36
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332212
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Derek Williams <derek.williams@instructure.com>
QA-Review: Jackson Huang <jackson.huang@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2023-11-10 18:19:26 +00:00
Robin Kuss a850be97ee clean up selenium tests for differentiated modules feature in ci
Closes LF-988

Test Plan: passes Jenkins with and without CI turned on for
differentiated modules.

Change-Id: I9e6c6eeea91baeaae1a5b24510c363b8e1daf7ed
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332295
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Sarah Gerard <sarah.gerard@instructure.com>
Product-Review: Robin Kuss <rkuss@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-11-10 17:47:37 +00:00
Caleb Guanzon baf118be06 delete unused MediaAttachment
flag=react_inbox
refs VICE-3764

test plan:
- nothing, no functional change

Change-Id: I8a32cc3a0e667ddeb603a8807de5e8f8b2241ea4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332508
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2023-11-10 17:42:22 +00:00
Ed Schiebel 304e7f24a5 Flush out Achievements
issues:
 - click a card with the tray open and focus is not on close button
 - buttons in the tray do nothing
 - no links to open badges or Lightcase (where will these come from ?)

refs VICE-3932
flag=learner_passport

test plan: n/a

Change-Id: Id289b01842ec52a2dcb93f5db194071c91fd9205
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332261
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Suggs <aaron.suggs@instructure.com>
QA-Review: Aaron Suggs <aaron.suggs@instructure.com>
Product-Review: Aaron Suggs <aaron.suggs@instructure.com>
2023-11-10 17:13:18 +00:00
Charley Kline 657ba904a9 Don't load React Router before Translations are ready
Fixes FOO-4042
flag=none

The new react-router initializer was getting called
very early in the front end boot process, sometimes
completing before all of the required capabilities
have loaded, such as I18n. Since the loading router
provider includes a fallback component which calls
I18n.t, sometimes the translation file for the user's
locale would not be loaded before that fallback
component rendered, resulting in an Eager Lookup
Violation to be logged.

This just makes sure that translations are loaded
before firing up the React Router.

Test plan:
* automated tests pass
* components that use the React Router still work
* we won't know if this really fixes the issue
  until and unless the logged Sentry errors go
  away

Change-Id: I490b662c2b4bbbb9631ba0e912c3d3ad6d4cee8c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332535
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2023-11-10 00:39:35 +00:00