MCPcopy Index your code
hub / github.com/diffgram/diffgram / remove

Method remove

default/methods/share/share.py:309–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 )
308
309 def remove(self):
310 existing_roles = self.member_to_modify.user.get_roles_in_project(project_string_id = self.project_string_id)
311 if self.member_to_modify.kind == "human":
312 self.remove_user()
313
314 if self.member_to_modify.kind == "api":
315 self.remove_auth_api()
316 for role in existing_roles:
317 RoleMemberObject.remove(
318 session = self.session,
319 default_role_name = role,
320 member_id = self.member_to_modify.id,
321 object_id = self.project.id,
322 object_type = ValidObjectTypes.project
323 )
324 def remove_auth_api(self):
325
326 auth_api = self.member_to_modify.auth_api

Callers 9

mainMethod · 0.95
remove_userMethod · 0.45
group_update_coreFunction · 0.45
clear_allMethod · 0.45
remove_scriptMethod · 0.45
remove_edgesMethod · 0.45
register_allFunction · 0.45
clean_up_temp_fileMethod · 0.45

Calls 3

remove_userMethod · 0.95
remove_auth_apiMethod · 0.95
get_roles_in_projectMethod · 0.80

Tested by

no test coverage detected