Commit Graph

49166 Commits

Author SHA1 Message Date
James Butters e906f03f5b metrics comparing crystalball vs non-crystalball builds
Change-Id: Ief34dade07be9f716d138c909f0f7e60730bcc75
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282862
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2022-01-18 21:47:43 +00:00
Steve Kacsmark 86122878c6 Tag Item Bank Migration should be in beta
flag =  new_quizzes_bank_migrations

Test Plan:
    - New Quizzes Bank Migration should have a beta pill
    - New Quizzes Bank Migration is hidden in production

Change-Id: Idbddab5d05bb900c22e6e324bf34bbe3ef8c34a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283047
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Mark McDermott <mmcdermott@instructure.com>
Product-Review: Susan Sorensen <susan.sorensen@instructure.com>
2022-01-18 21:43:51 +00:00
Aaron Shafovaloff a1f4dd0ab0 Install browserslist; upgrade caniuse-lite
We have many "Browserslist: caniuse-lite is outdated" warnings.

This enables one to run `npx browserslist@latest --update-db`

Test plan:
 - All automated tests pass

flag=none

Change-Id: Ia1c863323f5ef0e0b748425a4bd40ace26ca54fa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282886
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
2022-01-18 20:29:20 +00:00
Aaron Shafovaloff da19205df1 spec: split out GradebookSpec.js
With this we can more easily identify tests that can be moved to Jest.
Some of these were hard to categorize. The arrangement can be improved.

test plan:
 - all automated tests pass

closes EVAL-2188

Change-Id: I8d926df4715f2a30fbb464fde4cf68b4e4bd7663
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282898
Reviewed-by: Syed Hussain <shussain@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2022-01-18 20:27:16 +00:00
Ed Schiebel 5fb93debcf Exclude child events when that's what's asked for in the URL
closes LS-2942
flag=none

test plan:
  - follow the recreate steps in the ticket
  > expect to get the child events when excludes[]=child_events
    is not included in the URL
  > expect not to get the child events when excludes[]=child_events
    IS in the URL

Change-Id: I9594defad0679a5ea47912dc8738ba9556422518
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282874
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2022-01-18 20:25:15 +00:00
Ed Schiebel 5929e07e36 Say "term" when the pp end date is constrained by the term
closes LS-2891
flag=pace_plans

test plan:
  - in a course with a pace plan
  - in settings, set Participation to "Course" and enter dates
  - go to pace plans and click Show Projections, uncheck
    Required Completion... checkbox if checked
  > expect the caption under End Date to say
    "Required by course end date"
  - create a term if you don't have one
    - see /accounts/:id/terms
  - from course settings, set Term to be a term with an end date
  - go to pace plans and click Show Projections
  > expect the caption under End Date to say
    "Required by term end date"
  - check Require Completion by Specified End Date
  > expect the caption to say
    "Required by specified end date

Change-Id: I132188385976e5d27142b472dfb3b5465aa803c7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282876
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 20:25:00 +00:00
Dustin Cowles 5230ae2946 use selected observed user in new assignment view
closes EVAL-1960
flag=assignments_2_student
flag=observer_picker

Test plan:
- PreReqs:
  - Setting.set("assignments_2_observer_view", "true")
  - A course with multiple students and an assignment
  - An observer in the course with multiple associated students and at
    least one student enrollment of their own
- Submit to the assignment with each associated student including the
  observer
- As the observer, navigate to the dashboard and select a student
  - Navigate to an assignment in the course
  - Observe the selected student's submission is shown
  - Observe a flash message indicating the name of the student
  - Repeat for each student
- Delete site cookie "k5_observed user_for..."
  - Load an assignment page without visiting the dashboard first
  - Observe flash message indicating the first student is being observed
- As the Observer, select their own name on the dashboard
  - Navigate to an assignment in the observer's student enrollment course
  - Observe their submission details are visible and no flash message is
    displayed

Change-Id: I4b1354ce58c709991d1f32a531864ed32df7469a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/280668
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Syed Hussain <shussain@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
2022-01-18 20:09:01 +00:00
Ahmad Amireh 4d0de671d3 ensure workspace pkgs aren't fetched from registry
refs SEC-4437
flag = none

[pin-commit-respondus_lockdown_browser=8746ff2ccfd6e9ac1d7280687c88e9fa67c0f693]
[pin-commit-multiple_root_accounts=7b11533084764b3a34f390e9a75df26e9dd871f9]

rationale in the script file and more context in the accompanying ticket

~ test plan ~

edit package.json and modify one of the explicit workspace dependencies
such as @instructure/ready to have a specifier other than "*", run the
script and verify it exits with 1

    yarn --silent workspaces info --json | \
    node script/yarn-validate-workspace-deps.js 2>/dev/null

Change-Id: I6624ada67a21d433477a7ad4d36acf5801853b7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282948
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ben Rinaca <brinaca@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
2022-01-18 19:15:21 +00:00
Drake Harper f85c04643f Don't show anonymous response selector when editting
closes VICE-2410
flag=partial_anonymity

Test Plan:
 - turn on redesign, anonymity and partial anonymit ff
 - go to a partially anonymous discussion
 - create an anonymous reply as a student
 - edit the reply
 > should not see anonymous response selector

Change-Id: I3cf2d4d896d8dcfa5a8687e9dae35489c3e90a8d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283030
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
2022-01-18 18:04:11 +00:00
Drake Harper c472adb29b Fix focus cut of on anonymous response selector
closes VICE-2411
flag=partial_anonymity

Test Plan:
 - turn on redesign, anonymity and partial anonymity ff
 - go to a partially anonymous discussion
 - create an anonymous reply as a student
 > focus should not be cut off for dropdown selector

Change-Id: I400590d3970f2e9196cab55cd0f46f12cccc8b0e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283035
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Chawn Neal <chawn.neal@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
2022-01-18 17:43:18 +00:00
Drake Harper 3057e1d27c Remove false focus highlight on anonymous avatar
closes VICE-2412
flag=partial_anonymity

Test Plan:
 - turn on redesign, anonymity and partial anonymity ff
 - go to a partially anonymous discussion
 - as a student:
 > should see anonymous avatar without blue border

Change-Id: I5773c39f2b82ec0f27e97f24d85706e73ee3cb25
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283038
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-01-18 17:38:10 +00:00
Sean Scally 592160d549 Adds additional test coverage to user_search_specs
I'd like to do some refactoring to user_search, but
wanted to see if I could cover all cases in the existing code first.

Change-Id: I40f50513d178d02dd194a463ec010c48d4334bd1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282892
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ben Rinaca <brinaca@instructure.com>
QA-Review: Sean Scally <sean.scally@instructure.com>
Product-Review: Sean Scally <sean.scally@instructure.com>
2022-01-18 17:08:07 +00:00
Omar Gerardo Soto-Fortuño 04d804be5e Add AddressBook container to HeaderInputs
closes VICE-2153

flag=react_inbox

test plan:
  - Specs pass
  - Go to Inbox
  - Click on the compose icon
  - You should be able to select To using the AddressBook
  - Send a message
  - Make sure selected users received the message

qa risk: low

Change-Id: Ie070548e8765fabacfaf664a69e257e275f4e04a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283015
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2022-01-18 16:45:19 +00:00
August Thornton be7e46587f fix user merge to include placeholder submissions
closes FOO-2586
flag = none

Test plan:
• Create an assignment and assign it to the one student with a
  due date (Assignment due date override for individual user)
  excluding the "everyone" default section scope
• Create a second user and merge the first student into the
  newly created user
• Check the submission API for the merged student and assignment
  and notice that the "cached_due_date" displays the assigned due
  date used when creating the assignment
• See Jira for additional notes and attachments
Change-Id: If1ecddc72939fafc373f8aa060ccfd252bd01d8a

Change-Id: Idae972fceb4f28d9b1f9a99fb70f3dba0fc0d9e1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282894
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ben Rinaca <brinaca@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2022-01-18 16:45:06 +00:00
Spencer Olson c6c76d5156 update graphql schema
flag=none

Test Plan:
- specs pass

Change-Id: I777e7949f4d0526ecede0026533019839437dba5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/280654
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
Reviewed-by: Kai Bjorkman <kbjorkman@instructure.com>
Reviewed-by: Dustin Cowles <dustin.cowles@instructure.com>
QA-Review: Kai Bjorkman <kbjorkman@instructure.com>
2022-01-18 16:40:53 +00:00
Juan Chavez a7c72e1315 Fix embed LTI UI issue for small screens
closes MAT-497

flag=none

test plan:
- Edit a wiki page
- Embed a Studio video in RCE
> Verify in HTML view that the iframe
contains lti-embed class
- Save wiki page
- Open wiki page preview
- With browser dev tools, adjust the screen
width to < 320px
> Verify that the page padding is removed for
LTI iframe
> Verify that the iframe width fills the page
> Verify that you can horizontally scroll
inside iframe. With this we need to make sure
that no content is cut, for example: audio
scroll controls

Change-Id: Id420208deb9161741748fccec6fafe336e435859
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282817
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: David Lyons <lyons@instructure.com>
2022-01-18 16:23:47 +00:00
James Butters 1634e7564f use new formatter to better caluclate number of nodes
flag = none

Change-Id: Ia3a5766acf100f3202b7d7667d4b026727a30b7a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282880
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2022-01-18 14:18:36 +00:00
Jenkins 785ef205b4 update zh-Hant translation
Change-Id: I8edc9e5c3b4c45740117565f302a474895b3c94a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282992
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:48:00 +00:00
Jenkins dd4bd500d9 update zh-Hans translation
Change-Id: I8cbdf93f4863a09428a7a95b9aae2615fa7ac6bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282991
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:47:33 +00:00
Jenkins 23b7aab622 update th translation
Change-Id: I212544231d4556fdc5dd02f952f1ecc181109f3e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282990
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:47:06 +00:00
Jenkins b7d15901a4 update sv-x-k12 translation
Change-Id: I65762bee81d8322bacb80ff3e56881300d42725a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282989
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:46:43 +00:00
Jenkins 753a914266 update sv translation
Change-Id: I6b9015fa7a057864de6595a949e658db710a1463
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282988
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:46:20 +00:00
Jenkins 3d3a179a51 update sl translation
Change-Id: I7cbe0bfcc3cf6ea6dce0048b65b18c632551caba
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282987
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:45:55 +00:00
Jenkins 4caa5c345c update ru translation
Change-Id: I5708f3bf056b06fe7056a4e9b1de567413db48b0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282986
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:45:31 +00:00
Jenkins e0e67b85bf update pt-BR translation
Change-Id: I79b02dec9439d14370e36c1c8934fb2826e3f1e2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282985
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:45:06 +00:00
Jenkins 58b2b09e2d update pt translation
Change-Id: If4549762fe5b38b6b795a08da65d450e09372718
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282984
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:44:42 +00:00
Jenkins d0bd30b682 update pl translation
Change-Id: I1f8dad5237b9d1a47a9f3f56e5cbd641e2dca08c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282983
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:44:18 +00:00
Jenkins cc7befc534 update nl translation
Change-Id: I6a47a07e785ce995a8b7cb61dda6785bc1af2836
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282982
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:43:54 +00:00
Jenkins 153ee58929 update nb-x-k12 translation
Change-Id: I2363fac83511ce82681192a48dcb9ef1433e0e97
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282981
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:43:30 +00:00
Jenkins 233ac0629e update nb translation
Change-Id: I94b14181ef0e53f045360ad813a4c3aef95d58dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282980
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:43:07 +00:00
Jenkins 1afaed965b update ja translation
Change-Id: If31b7f4d3d446fda902e61bc190c90809934af5e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282979
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:42:29 +00:00
Jenkins 0f95ccd873 update it translation
Change-Id: Ifa78b3fc6db5538811b110f94efcf2b663f287d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282978
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:42:02 +00:00
Jenkins 49c1a652fd update is translation
Change-Id: I26ceba4c1975b336d41f8ea7630af4ab4fed45f7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282977
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:41:39 +00:00
Jenkins 696d423c43 update ht translation
Change-Id: I9dd1d7264ef8abc1733247e6e6fea2b9f00fa414
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282976
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:41:15 +00:00
Jenkins 65c46213d7 update fr-CA translation
Change-Id: I82e4f1d70f2b978a27edd2e060e5674adc9cab61
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282975
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:40:52 +00:00
Jenkins 8fbfed1818 update fr translation
Change-Id: I7e856904a022fe823b8971d77398c93f830d46cd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282974
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:40:29 +00:00
Jenkins 080c3bb9ed update fi translation
Change-Id: I61f00d2d42a436bdbc6a22a7facb92c1275a83d8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282973
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:40:03 +00:00
Jenkins fc1652582d update es-ES translation
Change-Id: I66a2fdabf2fc4fe2463258eb11765cd88993f9dd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282972
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:39:39 +00:00
Jenkins d958204e67 update es translation
Change-Id: I8d7ca6808f42b62a0622e42f0815d5d05a0c0c6f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282971
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:39:17 +00:00
Jenkins cb1217eaae update en-GB translation
Change-Id: I24aa1d383aef4552ad4f62f2b2e96f4b98ac8a50
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282969
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:38:41 +00:00
Jenkins a8f335e2b4 update en-CA translation
Change-Id: I6da21ca402dfa8aae7d9dbe3df0d3f979873fd46
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282968
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:38:17 +00:00
Jenkins b66fd181c4 update en-AU translation
Change-Id: I97e62ab34955f914d1b5bfdebb2263831f2e7471
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282966
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:37:42 +00:00
Jenkins ee8c5ea544 update de translation
Change-Id: Ic83583d0ba36a482d461f27deb8938fbd07f631e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282965
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:37:18 +00:00
Jenkins 9baac11a9d update da-x-k12 translation
Change-Id: I89c953dcfef36db9eb05067deead58dd331a0300
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282964
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:36:54 +00:00
Jenkins 5f423ae4a9 update da translation
Change-Id: Icaa1f3e900967a0d9933f273544b451fcf7226ea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282963
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:36:31 +00:00
Jenkins ab158185e3 update cy translation
Change-Id: I104bdea685120ca4beb38d5aed969cfa53762a27
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282962
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:36:06 +00:00
Jenkins 9f6ae23248 update ca translation
Change-Id: Ie8bf0ed672edb50c279738b5bca88e0e4534d6f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282961
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:35:44 +00:00
Jenkins 4594b9e20d update ar translation
Change-Id: I4dc0d0cfe7b3fcf5e3c8be37a680336f7ad68bde
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282960
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 05:35:21 +00:00
Jenkins 989533fedb [i18n] Update package translations
Change-Id: I36ce34be21658a6c684297dee72c667ef614cbff
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282958
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-01-18 04:49:14 +00:00
Martin Yosifov b116cb77a8 Update GraphQL to Set Mastery Points Independently
closes OUT-4923
flag=individual_outcome_rating_and_calculation

Test plan:
- Enable Improved Outcomes Management FF
- Enable Individual Outcome Rating and Calculation FF
- Disable Account Level Mastery Scales FF
- Go to http://canvas.docker/graphiql
- Create an outcome via the graphql mutation below
replacing groupId as needed:
mutation {
  createLearningOutcome(
    input: {
      groupId: 1
      title: "Outcome with individual ratings"
      calculationMethod: "n_mastery"
      calculationInt: 1
      masteryPoints: 3
      ratings: [
        { description: "Rating 1", points: 5 }
        { description: "Rating 2", points: 3 }
        { description: "Rating 3", points: 1 }
      ]
    }
  ) {
    learningOutcome {
      _id
      title
      calculationMethod
      calculationInt
      masteryPoints
      pointsPossible
      ratings {
        description
        points
      }
    }
    errors {
      attribute
      message
    }
  }
}
- Verify that there are no errors in the response
- Verify that response contains correct outcome data
- Update an outcome via the graphql mutation below
replacing id with the id of the created outcome
mutation {
  updateLearningOutcome(
    input: {
      id: 123
      title: "Updated Outcome with individual ratings"
      calculationMethod: "decaying_average"
      calculationInt: 61
      masteryPoints: 5
      ratings: [
        { description: "Rating 1", points: 5 }
        { description: "Rating 2", points: 3 }
        { description: "Rating 3", points: 1 }
      ]
    }
  ) {
    learningOutcome {
      _id
      title
      calculationMethod
      calculationInt
      masteryPoints
      pointsPossible
      ratings {
        description
        points
      }
    }
    errors {
      attribute
      message
    }
  }
}
- Verify that there are no errors in the response
- Verify that response contains updated outcome data

Change-Id: Ide9de05322816bf5f617ef213b3b0a5c11dd4d12
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282134
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Manoel Quirino <manoel.quirino@instructure.com>
Reviewed-by: Chrystal Langston <chrystal.langston@instructure.com>
QA-Review: Brian Watson <bwatson@instructure.com>
Product-Review: Kyle Rosenbaum <krosenbaum@instructure.com>
2022-01-14 22:44:03 +00:00