Skip to content

Commit

Permalink
Revert "Add group roles to @groups serializer"
Browse files Browse the repository at this point in the history
This reverts commit a430318.
  • Loading branch information
sneridagh committed Mar 4, 2019
1 parent a430318 commit d59fb19
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 34 deletions.
2 changes: 0 additions & 2 deletions news/682.feature

This file was deleted.

1 change: 0 additions & 1 deletion src/plone/restapi/serializer/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __call__(self):
'email': group.getProperty('email'),
'title': group.getProperty('title'),
'description': group.getProperty('description'),
'roles': group.getRoles(),
}


Expand Down
16 changes: 0 additions & 16 deletions src/plone/restapi/tests/http-examples/groups.resp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ Content-Type: application/json
"email": "",
"groupname": "Administrators",
"id": "Administrators",
"roles": [
"Manager",
"Authenticated"
],
"title": "Administrators"
},
{
Expand All @@ -20,10 +16,6 @@ Content-Type: application/json
"email": "",
"groupname": "Reviewers",
"id": "Reviewers",
"roles": [
"Reviewer",
"Authenticated"
],
"title": "Reviewers"
},
{
Expand All @@ -32,10 +24,6 @@ Content-Type: application/json
"email": "",
"groupname": "Site Administrators",
"id": "Site Administrators",
"roles": [
"Site Administrator",
"Authenticated"
],
"title": "Site Administrators"
},
{
Expand All @@ -44,9 +32,6 @@ Content-Type: application/json
"email": "ploneteam@plone.org",
"groupname": "ploneteam",
"id": "ploneteam",
"roles": [
"Authenticated"
],
"title": "Plone Team"
},
{
Expand All @@ -55,7 +40,6 @@ Content-Type: application/json
"email": "",
"groupname": "AuthenticatedUsers",
"id": "AuthenticatedUsers",
"roles": [],
"title": "Authenticated Users (Virtual Group)"
}
]
4 changes: 0 additions & 4 deletions src/plone/restapi/tests/http-examples/groups_created.resp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ Location: http://localhost:55001/plone/@groups/fwt
"email": "fwt@plone.org",
"groupname": "fwt",
"id": "fwt",
"roles": [
"Manager",
"Authenticated"
],
"title": "Framework Team",
"users": {
"@id": "http://localhost:55001/plone/@groups",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ Content-Type: application/json
"email": "ploneteam@plone.org",
"groupname": "ploneteam",
"id": "ploneteam",
"roles": [
"Authenticated"
],
"title": "Plone Team"
}
]
3 changes: 0 additions & 3 deletions src/plone/restapi/tests/http-examples/groups_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Content-Type: application/json
"email": "ploneteam@plone.org",
"groupname": "ploneteam",
"id": "ploneteam",
"roles": [
"Authenticated"
],
"title": "Plone Team",
"users": {
"@id": "http://localhost:55001/plone/@groups/ploneteam",
Expand Down
3 changes: 0 additions & 3 deletions src/plone/restapi/tests/http-examples/principals.resp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ Content-Type: application/json
"email": "ploneteam@plone.org",
"groupname": "ploneteam",
"id": "ploneteam",
"roles": [
"Authenticated"
],
"title": "Plone Team"
}
],
Expand Down
2 changes: 0 additions & 2 deletions src/plone/restapi/tests/test_services_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def test_list_groups(self):
self.assertEqual('Plone Team', ptgroup.get('title'))
self.assertEqual('We are Plone', ptgroup.get('description'))

self.assertEqual(ptgroup.get('roles'), ['Authenticated'])

# We don't want the group members listed in the overview as there
# might be loads.
self.assertTrue(
Expand Down

0 comments on commit d59fb19

Please sign in to comment.