Skip to content

Commit 7f807e5

Browse files
committed
Update transcripts for new org membership stuff
1 parent cacc95b commit 7f807e5

File tree

4 files changed

+82
-1
lines changed

4 files changed

+82
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"body": {
3+
"members": [
4+
{
5+
"avatarUrl": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro",
6+
"handle": "admin",
7+
"name": "Admin User",
8+
"userId": "U-<UUID>"
9+
},
10+
{
11+
"avatarUrl": null,
12+
"handle": "some-user",
13+
"name": null,
14+
"userId": "U-<UUID>"
15+
},
16+
{
17+
"avatarUrl": null,
18+
"handle": "test",
19+
"name": null,
20+
"userId": "U-<UUID>"
21+
},
22+
{
23+
"avatarUrl": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro",
24+
"handle": "transcripts",
25+
"name": "The Transcript User",
26+
"userId": "U-<UUID>"
27+
}
28+
]
29+
},
30+
"status": [
31+
{
32+
"status_code": 200
33+
}
34+
]
35+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"body": {
3+
"members": [
4+
{
5+
"avatarUrl": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro",
6+
"handle": "admin",
7+
"name": "Admin User",
8+
"userId": "U-<UUID>"
9+
},
10+
{
11+
"avatarUrl": null,
12+
"handle": "test",
13+
"name": null,
14+
"userId": "U-<UUID>"
15+
},
16+
{
17+
"avatarUrl": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50?f=y&d=retro",
18+
"handle": "transcripts",
19+
"name": "The Transcript User",
20+
"userId": "U-<UUID>"
21+
}
22+
]
23+
},
24+
"status": [
25+
{
26+
"status_code": 200
27+
}
28+
]
29+
}

transcripts/share-apis/roles/maintainer-project-view.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@
2020
},
2121
"permissions": [
2222
"project:view",
23-
"project:contribute"
23+
"project:contribute",
24+
"project:maintain",
25+
"project:create",
26+
"org:view",
27+
"org:edit",
28+
"team:view",
29+
"notification_hub_entry:view",
30+
"notification_hub_entry:update",
31+
"notification_subscription:view",
32+
"notification_subscription:manage",
33+
"notification_delivery_method:view",
34+
"notification_delivery_method:manage"
2435
],
2536
"releaseDownloads": [],
2637
"slug": "privateorgproject",

transcripts/share-apis/roles/run.zsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ fetch "$test_user" POST grant-project-contributor '/orgs/unison/roles' "
3636
]
3737
}"
3838

39+
# Now the user should be a member of the org
40+
fetch "$test_user" GET check-contributor-membership-addition '/orgs/unison/members'
41+
3942
fetch "$some_user" GET maintainer-project-view '/users/unison/projects/privateorgproject'
4043

4144
# Remove the user from the org again
@@ -49,3 +52,6 @@ fetch "$test_user" DELETE revoke-project-contributor '/orgs/unison/roles' "
4952
}"
5053

5154
fetch "$some_user" GET non-maintainer-project-view '/users/unison/projects/privateorgproject'
55+
56+
# Now the user should be no longer be a member of the org
57+
fetch "$test_user" GET check-contributor-membership-removal '/orgs/unison/members'

0 commit comments

Comments
 (0)