Skip to content

Commit 04178ad

Browse files
authored
[SYNPY-1426] Deprecate acl and permission management methods (#1223)
* Deprecation of acl and permission management methods - Added comprehensive integration tests for ACL functionality across various entity types, including Dataset, DatasetCollection, MaterializedView, and VirtualTable. - Implemented tests for listing and deleting permissions, ensuring correct behavior for both synchronous and asynchronous methods. - Verified that permissions are correctly set and removed, including checks for mixed case entity types.
1 parent 1aed1b9 commit 04178ad

File tree

9 files changed

+2411
-135
lines changed

9 files changed

+2411
-135
lines changed

synapseclient/api/__init__.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,23 @@
3535
get_entities_by_md5,
3636
get_entity,
3737
get_entity_acl,
38+
get_entity_acl_list,
39+
get_entity_acl_with_benefactor,
40+
get_entity_benefactor,
3841
get_entity_path,
42+
get_entity_permissions,
3943
get_entity_provenance,
44+
get_entity_type,
4045
get_upload_destination,
4146
get_upload_destination_location,
4247
post_entity,
48+
post_entity_acl,
4349
put_entity,
50+
put_entity_acl,
51+
set_entity_permissions,
4452
set_entity_provenance,
4553
update_activity,
54+
update_entity_acl,
4655
)
4756
from .file_services import (
4857
AddPartResponse,
@@ -99,11 +108,14 @@
99108
get_team,
100109
get_team_members,
101110
get_team_open_invitations,
111+
get_teams_for_user,
102112
invite_to_team,
103113
post_team_list,
104114
send_membership_invitation,
105115
)
106116
from .user_services import (
117+
get_user_bundle,
118+
get_user_by_principal_id_or_name,
107119
get_user_group_headers_batch,
108120
get_user_profile_by_id,
109121
get_user_profile_by_username,
@@ -138,6 +150,11 @@
138150
"delete_entity",
139151
"delete_entity_acl",
140152
"get_entity_acl",
153+
"get_entity_acl_list",
154+
"get_entity_acl_with_benefactor",
155+
"get_entity_benefactor",
156+
"get_entity_permissions",
157+
"get_entity_type",
141158
"get_upload_destination",
142159
"get_upload_destination_location",
143160
"create_access_requirements_if_none",
@@ -151,6 +168,10 @@
151168
"create_activity",
152169
"update_activity",
153170
"get_children",
171+
"post_entity_acl",
172+
"put_entity_acl",
173+
"set_entity_permissions",
174+
"update_entity_acl",
154175
# configuration_services
155176
"get_config_file",
156177
"get_config_section_dict",
@@ -206,12 +227,15 @@
206227
"get_team",
207228
"find_team",
208229
"get_team_members",
230+
"get_teams_for_user",
209231
"send_membership_invitation",
210232
"get_team_open_invitations",
211233
"get_membership_status",
212234
"delete_membership_invitation",
213235
"invite_to_team",
214236
# user_services
237+
"get_user_bundle",
238+
"get_user_by_principal_id_or_name",
215239
"get_user_group_headers_batch",
216240
"get_user_profile_by_id",
217241
"get_user_profile_by_username",

0 commit comments

Comments
 (0)