We're updating the issue view to help you get more done. 

Expose selected (internal) functionality from Python client in Py and R clients.

Description

Title was, "Add private methods from python client to R client" but I think the task is really to decide what to add as "public" methods in both Python and R clients. That is, if it's a public method in the R client it should be a public method in the Python client too. Further, this is an opportunity to reconsider the method name and signature for each method.

Original description:

The python client has some private methods that are not exposed in the R client, which causes a mismatch in functionality between the clients. syn._storeACL() is one example. I asked in slack whether there is a way to remove public access to a folder in Synapse, while keeping edit permissions for a couple users. shared the following method in Python:

1 2 3 4 5 6 7 8 9 10 11 entity_id = "syn16816585" keep_userid = 3324230 admin_permission_list = ['DELETE', 'READ', 'MODERATE', 'CREATE', 'CHANGE_SETTINGS', 'UPDATE', 'DOWNLOAD', 'CHANGE_PERMISSIONS'] acl = {'resourceAccess': [ {'accessType': admin_permission_list, 'principalId': keep_userid} ] } syn._storeACL(entity_id, acl)

However without a `synStoreACL()` function in the R client I can't translate this code to R.

Environment

None

Status

Assignee

Kimyen Truong

Reporter

Kara Woo

Labels

Validator

Bruce Hoff

Release Version History

None

Priority

Major