Commit Graph

62100 Commits

Author SHA1 Message Date
Sarah Gerard affb496c1a Use ModuleVisibilityService
these views are causing serious performance problems.  follow
the advice of our DBAs and instead of using/ joining on the
module_student_visibilities view we will now use the new services

refs LX-1728
flag=differentiated_modules

test plan:
- tests pass
- a thorough QA of assigning modules to different students
  and sections and checking for correct visibility.

Change-Id: Icb02a49a47cf79e508a43dec652d901ddb245a7c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348917
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2024-06-03 18:21:11 +00:00
Jackson Howe e43fdbcbee fix flakey spec
Change-Id: I3f63c6854ab4d6714f116dc077237acffd15ccbe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349040
Reviewed-by: Spencer Olson <solson@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2024-06-03 17:59:32 +00:00
Kai Bjorkman 870c6778bf round pointsBased scores to 2 decimal places
closes EVAL-4166
flag=none

test plan:
- Create a course with active student enrollments.
- Create a custom grading scheme using points,
with letter grades between 10-0.
- Create an assignment, set it to be worth
10 points and to use a Letter score following
the newly created grading scheme.
- Open student submission in Speedgrader.
- Add a long decimal score to the assignment,
such as 2.100000000009.
- notice the score rounded to 2 decimal places.
- Ensure that 2.10 is also shown in the student's
gradebook and individual gradebook

Change-Id: Ib95398ed69f8ac6776e652dee7dbb15d65b3095a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348771
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Chris Soto <christopher.soto@instructure.com>
Product-Review: Ravi Koll <ravi.koll@instructure.com>
2024-06-03 15:52:24 +00:00
Janos Csizmas 131e62667e Add ICE design for create Announcement view
refs VICE-4189
flag=instui_nav

Test plan:
 - Enable instui_nav FF
 - Go to Announcements (or Discussions) page
 - Click to '+ Announcement' in the right corner os page
 - Check the loaded page contains this header: Create Announcement
 - It need to be works same in Discussion page

Change-Id: Ia8c3bc47b99d182c1f0522e342064b5fff9822d8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348427
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Roland Beres <roland.beres@instructure.com>
Reviewed-by: Daniel Matyas Vincze <daniel.vincze@instructure.com>
Product-Review: Donát Bali-Papp <donat.balipapp@instructure.com>
2024-06-03 15:34:23 +00:00
Jonathan Featherstone 814acc2af2 add keyword highlight, remove relevance
Add keyword highlighting to smart search. Also remove relevance as it
was causing more confusion than helping.

Test Plan:
* Load course with smart search enabled
* Navigate to search
* Search for specific words you know are included in the body of the
  text
* Notice keyword highlighting
  * Create a long wiki page and notice that keyword highlighting will
    use a substring of text with highest occurence of keywords
    highlighted
* Confirm that relevance is no longer displayed

flag=smart_search
closes ADV-118
closes ADV-119

Change-Id: I584068ce7e97b8458ac1f4ff6f4c36e53f1ab9c0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348772
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
QA-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
Product-Review: Jonathan Featherstone <jfeatherstone@instructure.com>
2024-06-03 15:22:25 +00:00
Dora, Csolakov 2a57a7c1cf Unskip or remove tests which override or spy on imports
refs VICE-4065
flag=none

Test plan:
the tests ran successfully

Change-Id: I61fcab63cecb1067939405557618905f3b879a22
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348933
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jason Gillett <jason.gillett@instructure.com>
QA-Review: Jason Gillett <jason.gillett@instructure.com>
Product-Review: Jason Gillett <jason.gillett@instructure.com>
2024-06-03 14:48:10 +00:00
daniel.becs 9350b03580 Add permissions and feature flags to analytics hub
Pass in permissions and feature flags to AnalyticsHub as env vars
Fix invalid port configuration for Analytics Hub

https://instructure.atlassian.net/browse/EAX-697

flag=analytics_hub
refs EAX-697

test plan:
- Check in Analytics Hub if the variables are passed on

Change-Id: I524e6ed97549c21c47f2a3f897cf85bfd193b169
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348723
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Keith Garner <kgarner@instructure.com>
QA-Review: David Kalacska <david.kalacska@instructure.com>
Product-Review: David Kalacska <david.kalacska@instructure.com>
2024-06-03 14:33:34 +00:00
Jenkins 614941ff97 update zh-Hant translation
Change-Id: I5ac18c18bf5ce9cf28dec195de08e7a887e70f2d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/349000
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:56:07 +00:00
Jenkins 39732c2e4e update zh-Hans translation
Change-Id: I0f7b104911918ced7a0acedc3a16e60afe6212a1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348999
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:55:28 +00:00
Jenkins cec8499c28 update vi translation
Change-Id: I78fb0615ab3d6d501181eee55b8af49af1606f8c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348998
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:54:51 +00:00
Jenkins 17fdaf446a update th translation
Change-Id: Id91984250036df43d2e47d21a5362f7a91958a72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348997
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:54:22 +00:00
Jenkins 951c15b42c update sv-x-k12 translation
Change-Id: I0e7baa60baa51af3672c7892ceff43d4c7c84522
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348996
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:53:49 +00:00
Jenkins f1152d8b43 update sv translation
Change-Id: I52ad031de614fb27a5e6219ec2b96e043bbc5c99
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348995
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:53:16 +00:00
Jenkins c4c6f8b227 update sl translation
Change-Id: Ic56f2603ad04260deb2e01e83a409f596bb2608b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348994
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:52:38 +00:00
Jenkins 1c16c74ffa update ru translation
Change-Id: Ia40fbcb860f922c0efcdc1bd956800c3dfaa6c26
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348993
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:52:02 +00:00
Jacob DeWar 278c52daed Add warning for new uses of byRole
flag=none
closes RCX-1848

Test Plan:
- Check out PS
- Add/Remove uses of byRole
- Make and push new commit
  - Or run script/tatl_tael locally
* Verify comments only in files in /__tests__/
* Verify comments only on new uses of byRole
* Verify no comments on existing uses of byRole

Change-Id: I931f70a6fa2df94fe85b0d210a4888ff062e5113
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348071
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: Jacob DeWar <jacob.dewar@instructure.com>
2024-06-03 13:51:50 +00:00
Jenkins 744664cf3d update pt-BR translation
Change-Id: I83bb28371bfe9cd42680ab140c41537cef5273e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348992
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:51:24 +00:00
Jenkins e7bca9b280 update pt translation
Change-Id: I9af90511b79cf6500a2e1d26ed1673187001b255
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348991
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:50:53 +00:00
Jenkins 3ebb4b49ee update pl translation
Change-Id: I90f47fe9c7f7091269c052bad003441735ab0d56
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348990
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:50:19 +00:00
Jenkins d9a1cfc66f update nl translation
Change-Id: I9f07ad166b895c76f3c16e5c5dd2119e8c6165e6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348989
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:49:41 +00:00
Jenkins 8902312574 update hu translation
Change-Id: Ic6bd63fe5989fc4d71780ed0bc078efb8af3a523
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348988
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:49:36 +00:00
Jenkins 5da27ae754 update nb-x-k12 translation
Change-Id: I3d694fc3117e7066a54a2cf65cbb53ed13eacebb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348987
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:49:03 +00:00
Jenkins 5e466c3a18 update nb translation
Change-Id: I8b58a13ec2d168c87e87d94bf461264edca83c8f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348986
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:48:27 +00:00
Jenkins 72bb5fe316 update el translation
Change-Id: I3735a0223292897770832083498812af6c9c3457
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348985
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:48:18 +00:00
Jenkins 891b858d0c update ms translation
Change-Id: I4943113b45983e6db78bc6168322d1136113ffea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348984
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:47:47 +00:00
Jenkins 5f9f24a82b update mi translation
Change-Id: I0cd7a64d520f8bf361d0d2e14d664043f1f850a2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348983
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:47:16 +00:00
Jenkins 172cb8c874 update ja translation
Change-Id: I7fe5d9e5c59123f30b5a7fa60f00aef8df2f18fc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348982
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:46:42 +00:00
Jenkins ba35ed3d9a update it translation
Change-Id: Iadbccef74f32170cc90b95a33ea29e3c05962611
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348981
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:45:57 +00:00
Jenkins 05853dc159 update is translation
Change-Id: If43d1b55f962cbcb02dd081689efedaa079adc90
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348980
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:45:22 +00:00
Jenkins 97fc0df4c8 update id translation
Change-Id: I4a92094f332434193c8238046b4858b28d56351e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348979
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:44:51 +00:00
Jenkins 1ea3d91818 update ht translation
Change-Id: If11d638147e50e71e6be5495fb3ca46863211d77
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348978
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:44:24 +00:00
Jenkins eadcaaaa8a update fr-CA translation
Change-Id: I194e9fa8e074f65e9ae76355f2e62a438f36db75
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348977
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:43:42 +00:00
Jenkins 2b93e51f5f update fr translation
Change-Id: I02351d331ab131af084b1510ad45340117ad7abe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348976
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:43:09 +00:00
Jenkins fa012d0e6c update fi translation
Change-Id: I9d8eac1a00550eb464c91a476b0470c6be43efe3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348975
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:42:35 +00:00
Jenkins 0a5ebed560 update es-ES translation
Change-Id: I9bc1dbff081032bc57ba8af1bc62f39250e06601
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348974
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:42:03 +00:00
Jenkins 379ac91d43 update es translation
Change-Id: Idea59ac4293fabaee7c66c4e7b80b173f194239e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348972
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:41:34 +00:00
Jenkins 78a965e5d7 update en-GB translation
Change-Id: I0af42d4ee2659b83d1f4c151ac8e618d18c59862
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348970
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:40:43 +00:00
Jenkins 194ec72f2b update en-CA translation
Change-Id: Ic257985426b2fb8f48fef12bef1b6e4949b356d7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348969
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:40:12 +00:00
Jenkins 671fc79781 update en-AU translation
Change-Id: Ib30840826b10cc6581f96e94080462f72d3d14a5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348967
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:39:28 +00:00
Jenkins 1590d40003 update de translation
Change-Id: Ibf7c5efa30cb4edc6c0dbc52cab5f793eec8f612
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348966
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:38:55 +00:00
Jenkins 9a4ebfbace update da-x-k12 translation
Change-Id: Id45e2442df6e8b535e661f48157f611217136cf6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348965
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:38:18 +00:00
Jenkins 4cf6aad61a update da translation
Change-Id: Ia13869c9d8f669c3ab288e3e3dfd0b38471145bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348964
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:37:48 +00:00
Jenkins 2ec39e6168 update cy translation
Change-Id: I209a0317bd47e49066dd2b7e048eb35e40b9a6c6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348963
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:37:15 +00:00
Jenkins 2c29e32c0b update ca translation
Change-Id: I7e999e809bf7531eedf55fbd9a92dd7f368d5b20
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348962
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:36:45 +00:00
Jenkins 57135bb31c update ar translation
Change-Id: I4705f2294213410847cfe05c3e08015eefc4d4f0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348961
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:36:18 +00:00
balazs.buri 31e3cdb030 Fix timebomb in CalendarEventDetailsForm.test.jsx
refs LF-1003

flag=none

test plan:
- 'does not show error with when
choosing another date time format' test passes

Change-Id: I0bcdac6adea4353a1eac571b71bca4e1c410dbb7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348951
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Reviewed-by: Mario Hegyi <mario.hegyi@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>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-06-03 13:32:02 +00:00
Jozsef Gubicza 53fd6683c5 Add fix for conversation message modal to close after msg sent
fixes VICE-4232
flag=none

Test Plan:
 - As descriebd in VICE-4232 steps to reproduce
 - Try to hit Reply on a msg and then submit with "Send"
 - Compose modal should NOT appears again
after spinner is closed

Extra notes to plan:
- As I removed setTimeout which was a fix for VICE-4106,
try the scenario above by just navigating with Tabs, the flow
should not be breaked.

The gist of the solution:
- The spinner itself should be rather added/removed from DOM
instead of trying to control it by its open prop.

Change-Id: I429f027c25f7599df28d8469ba0ccb8101df5802
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348724
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Roland Beres <roland.beres@instructure.com>
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Jozsef Gubicza <jozsef.gubicza@instructure.com>
2024-06-03 06:30:04 +00:00
Cody Cutrer ae46959f00 drop some ruby 2.7 compatibility-isms
Change-Id: Ieb622b0feeed64c3d03bd75b7b451ad24678d2b5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348835
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>
2024-05-31 23:50:11 +00:00
alvaro.talavera 2cbafcb54d Fix Module Assign To focus should be on the close button
closes LX-1681

flag=differentiated_modules

test plan:
- goto a course page
- edit one of the modules and change the requirements
- the Requirements CHanged modal should open
- check that the x close button should be focused

Change-Id: Ic3ec59a305745f93b2f20df7b77f9e087929cf67
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348425
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Juan Chavez <juan.chavez@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
Product-Review: Alvaro Talavera <alvaro.talavera@instructure.com>
2024-05-31 21:34:21 +00:00
Dustin Cowles 462c6ec398 expand ENV.current_context
refs ADV-109
flag=none

Test plan:
- ENV.current_context object is populated on all pages with a context
{
  id: "1",
  name: "Course Name",
  type: "Course",
  url: "http://canvas-web.inseng.test/courses/1"
}

Change-Id: I222daa312d72dcbc08467a26c9a477f5264550af
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348055
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
QA-Review: Dustin Cowles <dustin.cowles@instructure.com>
Product-Review: Dustin Cowles <dustin.cowles@instructure.com>
2024-05-31 21:03:31 +00:00