Commit Graph

211 Commits

Author SHA1 Message Date
Davis Hyer 9ec4748629 label unlabeled FormField components
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ib2b611844576019ead7e1b479c6cee17c14ae10f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304604
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: Davis Hyer <dhyer@instructure.com>
2022-11-04 16:16:05 +00:00
Davis Hyer 3b9a40b9b3 remove isMounted reference in ColorPicker
refs LS-3571
flag=none

In theory, this check is not needed as we are attempting to set state
and call a callback. If this were to happen, we would only have reference
errors.

test plan:
  - tests pass

qa risk: low

Change-Id: Ic19c015819c85b7a72a7a0162ccac3181ba1f4fe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304607
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: Davis Hyer <dhyer@instructure.com>
2022-11-04 15:10:08 +00:00
Davis Hyer 2659e1eb8d use fake timers for SubmissionManager tests
refs LS-3571
flag=none

These warnings were encountered after removing the Button error
suppression. No idea why, but we are without warning/errors after this
change again.

test plan:
  - tests pass

qa risk: low

Change-Id: I2f2a63d3763faed564a0cc192c9df1756c7fe4be
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304581
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: Davis Hyer <dhyer@instructure.com>
2022-11-04 15:07:51 +00:00
Davis Hyer 1348ec48ab remove unnecessary HomePagePromptContainer warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ic4c4e4c80b041a08ee33291f539f2465bf20e146
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304580
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-11-04 15:07:35 +00:00
Davis Hyer b74e2f806e remove prop requirement for ObserverOptions
refs LS-3571
flag=none

The only instance of the prop being used in the component already has
null safety baked in. We have one instance of this component that
doesn't provide said prop so we are opting to match the expectation
of the component and usage of it by removing the requirement.

test plan:
  - tests pass

qa risk: low

Change-Id: I8c3b0e02ed93b48f75595057b37db2df3d5fae09
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304578
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: Davis Hyer <dhyer@instructure.com>
2022-11-04 15:07:18 +00:00
Davis Hyer e45286c9b6 remove unnecessary SearchBreadcrumb warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I49a9ef573073923fb3b86c022835ff4d25c3ff9e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304603
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-11-04 15:06:55 +00:00
Davis Hyer 41407feed2 remove unnecessary test props for Permissions
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Id14b56961ec73b4007b4ed70501af4726667bc52
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304606
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: Davis Hyer <dhyer@instructure.com>
2022-11-04 15:06:35 +00:00
Davis Hyer 2548653ca9 wrap ProfileTab component with List.Item
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I6652d33069dc0d3e6dec912a64de9b1ef1b07023
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304608
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 22:16:36 +00:00
Davis Hyer 1012e608ed remove unnecessary DashboardCard warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Iaaae158fe315fbc23dfab1d1e19f099d345fd60d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304493
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 20:04:33 +00:00
Davis Hyer ce7a295dc3 remove unnecessary NumberInput warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I7d41a4c0647c1f83cf8674b0a9afce3e212ffd27
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304577
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-11-02 20:04:05 +00:00
Davis Hyer a11162bfc6 remove unnecessary function as children warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ic8a3a99c1fa3c6bfe8c7dd73814ef647aec47abc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304573
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-11-02 20:03:45 +00:00
Davis Hyer e477e12e8a remove unnecessary PaginationButton warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Id9bf57378ae79d4db95ec0aac4bdf6b0b1fa461d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304508
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 20:03:31 +00:00
Davis Hyer 34c49f858e ensure rendered list items have unique keys
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I540819975652bc80691a758f4d99cf409000c095
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304507
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Martin Yosifov <martin.yosifov@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 17:02:20 +00:00
Davis Hyer 6e30400889 remove unnecessary canUploadFiles warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I45e08aec1a07873a499209dee79acdd8db907edd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304494
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 03:11:23 +00:00
Davis Hyer 7b784c4e78 provide required prop for tested PublishButton
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I7e3b4684e89a3a200617767974b0ebddc9d12b9d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304490
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 03:11:08 +00:00
Davis Hyer 38a702e0c3 remove unnecessary GroupRemoveModal warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I3aef822aa32c7228cf1a5e8cdb07979282dd64c2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304492
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-11-02 03:10:37 +00:00
Davis Hyer a28d6fdc00 update PublishButton element ref initialization
refs LS-3571
flag=none

InstUI prefers the underlying html element to be set via elementRef,
otherwise we are referencing the react component which is a
DeprecatedComponent as we upgrade buttons.

test plan:
  - tests pass

qa risk: low

Change-Id: Ib355451231d93418301b3a15156b78cb3acd2b99
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304377
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-11-02 03:10:18 +00:00
Davis Hyer a31e1bfead fix duplicate key test errors
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I671db2ec8f42927e3c6a99665a182a6ee118d38b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304378
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>
2022-11-01 19:06:17 +00:00
Davis Hyer 885813defb remove unnecessary CanvasSelect warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ic7a2dcce6a2d33cc7430e283d9e4c00797207375
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304379
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:35:21 +00:00
Davis Hyer ef444b5874 remove unnecessary setRCEOpen warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I727aebe23edcd6365329422b5dee68326ccef46c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304376
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:35:01 +00:00
Davis Hyer 8b901b1d96 remove unnecessary FileDrop warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I59cb872639159bf780b536d8cff039e81701a6b5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304375
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:34:40 +00:00
Davis Hyer db87066889 remove unnecessary CanvasInstUIModal warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I005a15a8388d617aa2d963844ded79f8d3c8af61
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304372
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:34:26 +00:00
Davis Hyer d74448b8de remove unnecessary TreeCollection warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I226d9ae620a53063e61ef6c27cd7522d4327b79f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304373
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:33:39 +00:00
Davis Hyer 6d50b8cd4e remove unnecessary GroupMoveModal warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ie986c569c980b2c17a8800b5d7e863337af817ce
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304371
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:33:17 +00:00
Davis Hyer be4452875c provide courseId for LatestAnnouncementLink test
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Iaffd9ca143a960ee05114800c7616ea466d8a9e1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304370
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 17:32:48 +00:00
Davis Hyer c1706b666e provide dates for FriendlyDatetime tests
refs LS-3571
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I5e6d337f895cb43a03c1b9f7181f27e07ee44a6a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304361
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2022-10-31 17:32:29 +00:00
Davis Hyer 9c7009ef6f remove unnecessary CanvasSelectOption warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I6c1dfa0cfc78e022381085e6f4119879ee678db4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304359
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 15:54:15 +00:00
Davis Hyer 820e4c5106 remove unnecessary TruncateText warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Id2ecda2572460e8d0720e378a05986e347846f06
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304360
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 15:53:46 +00:00
Davis Hyer 42678a4311 remove unnecessary BreadcrumbLink warning supression
refs LS-3571
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I01a06715c51e2dc405f1dbd52dbaa440a8aaeee6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/304363
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-10-31 15:53:29 +00:00
Aaron Shafovaloff a78f3fca8c Update spec/javascripts/ to latest prettier config
Test plan:
  - All existing tests pass

flag=none

[skip-eslint]

Change-Id: Ib125529990a476c49d4737ff7ba277f4f6c31b98
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302260
Reviewed-by: Charley Kline <ckline@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-09-29 22:27:11 +00:00
jake.oeding 85f9c8c007 remove timezone prop requirement
also clean up unnecessary setup

closes MAT-976
flag=none

test plan:
-specs pass

Change-Id: I3774350af4a4087b269145c55ff1cc095f8b5b59
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/300013
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
QA-Review: Joe Hernandez <joe.hernandez@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-09-02 19:59:23 +00:00
jake.oeding 03e36efa90 remove ENV deps from packages/canvas-rce
closes MAT-782

flag=new_equation_editor
flag=new_math_equation_handling
flag=buttons_and_icons_root_account
flag=buttons_and_icons_cropper

test plan:
-enable the feature flags
-test the following on various pages with an RCE:
 1. Use the new equation editor
    - make sure that you can insert equations as normal
    - test that Canvas KB shortcuts don't work while the modal
      is open (old discussions is a good place to test this part)
    - make sure the advanced preview renders
    - test this locale related change:
      * change your locale
      * open the new eq editor
      * enter some latex
      * toggle to advanced view
      * check that the mathjax request made to the following URL
        has the appropriate locale query parameter at the end:
        https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_SVG&locale=en
 2. Make sure you can still insert a course document link
    without errors related to ENV values
 3. Make sure you can still insert a course link to
    something like an assignment with a due date or a
    dated announcement without ENV related errors
 4. Test that no console errors related to ENV values
    occur when using a screenreader in the IM cropper
    while zooming in or out (I think this is the only
    place currently using flash alerts inside the RCE)
-double check that I didn't miss any lingering ENV deps

Change-Id: I49f0a80a200cbe0418e735b5e638dd1ed519f750
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298916
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Joe Hernandez <joe.hernandez@instructure.com>
QA-Review: Joe Hernandez <joe.hernandez@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2022-08-22 17:39:33 +00:00
Aaron Ogata cfd364ee8e print name of spec that exceeded time limit
Change-Id: I1607bde6de165dbebe8c9284833cded0faa63b1b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298392
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-08-11 18:13:44 +00:00
Jackson Howe 8f34e55bef Add account calendar settings page
Fetches and renders the first layer of account tree on initial load,
then subsequent layers when expanded. If a single layer has multiple
pages of accounts, then all pages are fetched. Saves the changes to
the database when the apply button is clicked.

Note: the search, filter, and text describing the number of selected
accounts are not functional yet, and will be addressed in a future
commit.

closes LS-3271
flag = account_calendar_events

Test plan:
 - Go to /accounts/self/calenda_settings
 - Expect to see an account tree listing the account hierarchy
   (accounts with subaccounts can be expanded)
 - Expand some accounts and check/uncheck a few things
 - Click apply
 - Expect the changes to be persisted on reload

Change-Id: I6b0023f9cf6df80d732c7c6301124909eaff17ea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296871
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Allison Howell <allison.howell@instructure.com>
2022-08-10 20:30:49 +00:00
Aaron Ogata df9ea9fe1f enforce strict Jest test time limits for build health
refs DE-1303

Change-Id: I121ee4a6180b12aa0f9e9e6993a047890162409b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298136
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-08-09 13:32:17 +00:00
Aaron Ogata 1a46d87459 stub getComputedStyle due to JSDOM slowness
refs DE-1286

Change-Id: I4db742f74055de46cf15adbba6f857416c01e178
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296699
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-07-21 02:46:59 +00:00
Aaron Ogata 2efa339868 use native jest test sequencer for test sharding
refs DE-1287

[canvas-builds-refspec=6bbd69725d207fb32daeab11b834d6a2b35ac84c]

Change-Id: I73eda09fc9cab01ed87b8487258992f161a6310f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296633
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-07-20 16:35:52 +00:00
Aaron Ogata 6afa51a0ef upgrade jest to v28
refs DE-1284

Change-Id: I6f91f5d986d51d73a809cba9fd93355a6f8de7a4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296476
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-07-19 14:33:50 +00:00
Aaron Ogata bcd1bfefe0 stub recursive timers for jest runs
Change-Id: Ifbf847939979e56d8e3d2df1be8c82d388200930
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296083
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-07-13 19:22:39 +00:00
Ahmad Amireh 6edd1fc788 (i18n-js:5) flatten translation files
refs FOO-2801
flag = none

[change-merged][build-registry-path=jenkins/canvas-lms/foo-2801]
[pin-commit-analytics=4fd9e2fbb7fc2790ba7985bb4025e901bf33a9e3]

this part reaches the goal of this series where we turn the locale
files that are used by our JS engine into plain JSON files that don't
need any special processing and are also of a simpler structure

before, translations were stored in a tree structure that we needed to
traverse in order to look up a translation, which we did by
deconstructing keys through the "." operator:

    I18n.lookup("foo.bar.baz")

    {
      en: {
        foo: {
          bar: {
            baz: "Hello!" // <-- this
          }
        }
      }
    }

now, translations are stored in a flat dictionary structure where the
keys are not processed in any special way but are instead "fully
qualified":

    I18n.lookup("foo.bar.baz")

    {
      en: {
        "foo.bar.baz": "Hello!"
      }
    }

this is nice when you consider that the previous structure contained a
mixture of nested keys and flat ones, based on different conditions:

    {
      en: {
        "asdf_1234": "ASDF", // inferred, so it was never "nested"
        "foo": {
          "bar": {
            "baz": {
              "one": "One banana",
              "other": "Many many bananas"
            }
          }
        }
      }
    }

because, for example, keys that are inferred by i18nliner end up at
the root level and not nested. You also never knew whether a key was a
container or a phrase that was pluralized, because they both had the
shape of an object.

Now these distinctions are gone; a key is always fully-qualified
regardless of how it was specified:

1)   inferred: I18n.t("Inferred key")
               // => inferred_key_c49e3743
2)   absolute: I18n.t('#buttons.cancel')
               // => buttons.cancel
3)   relative: I18n = useScope('outer')
               I18n.t('something', 'Something')
               // => outer.something
4)     nested: I18n = useScope('outer');
               I18n.t('something.inside', 'Something inside')
               // => outer.something.inside
5) pluralized: I18n.t({
                 one: 'One banana',
                 other: 'Many bananas'
               })
               // => many_many_bananas_ce8e7fb7.one
               // => many_many_bananas_ce8e7fb7.other

Change-Id: I7c33fbd2321d7d56994223d65f2572db0ac12ed5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293675
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-06-27 18:35:04 +00:00
Ethan Knapp 947fc1b84a add 'extended' late_policy_status
flag=extended_submission_state
[fsc-max-nodes=15]
[fsc-timeout=45]

refs PFS-19811

Change-Id: Ia151a868913e6cd1d3998e0602595509b45b16d9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/290850
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Petra Ashment <pashment@instructure.com>
Product-Review: Jody Sailor
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
2022-05-31 16:58:35 +00:00
Ahmad Amireh 686ecf72c4 remove sentry "deprecation" logging
fixes FOO-2930
flag = none

this hasn't been used for quite some time and there's no good reason for
the code to stay, also I noticed it was used in test at some point but
again, no more

~ test plan ~

CI is ok

Change-Id: If4c5dab06d1b5a579d4475c5f3f33ab4f34c5c91
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291699
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-05-13 04:58:07 +00:00
Bobby Buten ea75ad283f fix local jest
refs DE-1070
flag=none

TEST PLAN:
  Confirm local jest tests work
  Confirm Jenkins builds still work

Change-Id: I7bec13fd8292fb14ea1ea932bf8befd6e6139292
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287958
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
2022-03-24 19:13:40 +00:00
Bobby Buten 92e1839e88 optimize javascript build times
refs DE-1070
flag=none

TEST PLAN:
  Confirm build still runs
  Compare build times of pre/post changes

Change-Id: I9364314b8e5f99ea8f29cc69c0f711bf959c8fa3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286171
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
2022-03-23 16:22:04 +00:00
Ahmad Amireh 6059f00fad babel independence: k5uploader & js-utils
refs FOO-2697
flag = none

those two packages were relying on canvas's babel.config.js but no more

test plan: the build phase of the CI is enough as there were no logical
changes

Change-Id: I7814796f36f1e30b4dd494a12f768f9dbafb4f1f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286759
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
2022-03-11 21:00:09 +00:00
Davis Hyer 0191da8cbc provide required value prop to DateInput
refs LS-3017
flag=none

In regards to the BulkEditDateSelect change:
The previously used timezone library was formatting the date to null on
blur which was throwing the error. Switching to the new standard as it
both handles the formatting correctly and is the new preference

test plan:
  - tests pass

qa risk: low

Change-Id: I8103cfdf2ccd9bc8ad4f4b58c192c05ae0e34596
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286329
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>
2022-03-11 16:34:58 +00:00
Ahmad Amireh 677f0e06a2 clean up i18n! stragglers
refs FOO-2696
flag = none

jest needs to explicitly load the _core_en translation file since its
i18nTransformer is no longer a thing (and it's what was doing that
before)

otherwise, this just cleans up the remaining references to i18n! in the
code, aside of eslintrc which we'll address in FOO-2738

Change-Id: Ie0a74b46c4d0a48188ba86765b46b2793eed94d7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286763
Tested-by: James Butters <jbutters@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-03-10 21:38:19 +00:00
Davis Hyer 9fb5c79848 expect correct prop type for CancelAttemptButton
refs LS-3017
flag=none

Shape is not a valid prop type, but rather a function that returns a
valid prop type. Since no shape was being defined, requiring a simple
object seemed more appropriate.

test plan:
  - tests pass

qa risk: low

Change-Id: I10d6743669c3138d6426a455868f5af1c33722fe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286330
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>
2022-03-04 16:44:52 +00:00
Davis Hyer 811f3b838f mock additional k5 requests
refs LS-3017
flag=none

These warnings were not causing tests to fail for some reason. I wasn't
able to pin the reason down, my suspicion is that fetch-mock uses an
internal logging mechanism.

test plan:
  - run `yarn test:jest ui/features/k5_`
    - there should be no console output regarding unmatched requests

qa risk: low

Change-Id: I4e8eb876571ca74eb0b2edef6a62640387f15a15
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286391
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>
2022-03-04 16:44:44 +00:00
Davis Hyer c8d8efe784 ignore package translations in jest
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I8da0db910b0647405f27b04c1f9c143b35126f70
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286184
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>
2022-03-04 15:39:06 +00:00