canvas-lms/app
Dora, Csolakov 8e29279b89 Update API to only require“Enable Personal Pronouns”for changing pronoun
testplan:
1.log in to Canvas as admin
2.navigate to the Account Settings page
3.tick the 'Enable personal pronouns' box (do NOT tick the "Allow users
to change their pronouns in Canvas" box)
4.tick the 'Enable profiles' box
5.navigate to the User Settings page(Account->Settings)
6.click the 'Edit Settings' button
7.pick a different pronoun and click the 'Update settings' button
8.confirm the pronoun change
9.navigate to the User Profile page(Account->Profile)
10.in the kebab menu choose the 'Edit Profile' option
11.pick a different pronoun and save it
12.confirm the pronoun change
13.log in to Canvas as a user
14.note that you previously set the 'Enable personal pronouns' so the
user can see their pronouns
15.navigate to the User Settings page and click 'Edit settings' button
16.confirm that the user can see their pronoun but can't change it
17.navigate to the User Profile page and click the 'Edit profile' button
18.confirm that the pronoun change box is disabled(can't change it)
19.open Canvas API in Postman
20.add a new request(type:PUT url:/api/v1/users/:id name:Update User)
21.in the Body tab select 'form-data' and add 'user[pronouns]' as key
and a pronoun as value(like 'He/Him')
22.in Canvas API's Authorization tab authorise as admin
23.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be a user id)
24.note that you previously set the 'Enable personal pronouns' so admin
can change their own pronouns and any other student's pronouns
25.confirm that the response is '200 OK'
26.authorise as user
27.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be the user's id)
28.confirm that the response is '401 Unauthorized'

refs VICE-3824
flag=none

Change-Id: I1504ac42d0839793b4b5e61c6a6a34f17b4c5aca
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347345
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Sam Garza <sam.garza@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Roland Beres <roland.beres@instructure.com>
2024-05-22 19:05:20 +00:00
..
controllers Update API to only require“Enable Personal Pronouns”for changing pronoun 2024-05-22 19:05:20 +00:00
graphql fix subscribe field when (un)archiving 2024-05-22 09:46:23 +00:00
helpers add REST backend support for discussion summary prototype 2024-05-10 15:05:33 +00:00
messages pseudonym login attribute migration 2024-05-07 03:50:58 +00:00
middleware rails 7.1: fix schema caching 2024-02-05 16:14:47 +00:00
models Update API to only require“Enable Personal Pronouns”for changing pronoun 2024-05-22 19:05:20 +00:00
observers Add live event rubric_assesed 2023-11-16 21:01:40 +00:00
presenters Revert "link to new assignment page when a2 enabled" 2024-05-09 16:04:24 +00:00
serializers support startDateTime in the Line Items API 2024-03-26 18:58:20 +00:00
services Account for account level groups in LTI Logging 2024-05-20 19:54:40 +00:00
stylesheets Add sticky footer to account and course. 2024-05-22 18:22:54 +00:00
views Update API to only require“Enable Personal Pronouns”for changing pronoun 2024-05-22 19:05:20 +00:00