tapis-project / tapis-apps

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Apps: Support new listType for my apps tab in portals #33

Closed scblack321 closed 1 year ago

scblack321 commented 1 year ago

Support a listType that returns items that are either owned or shared non-public with the user.

From WMA/Portals:

There are two categories here separating apps: “My Apps”: Apps owned by the user and apps that are shared with the user, like I am user A, and user B shares an app they made with me, it will appear in My Apps. This also assumes EXECUTE permissions, otherwise things break “App Categories”: These are categories we assign to public apps (isPublic=True) by adding a field to the notes field of a public app. Only public apps we select for the portal appear here.

scblack321 commented 1 year ago

Add support for new listTypes: SHARED_DIRECT, READ_PERM, MINE boolean allItems = AuthListType.ALL.equals(listTypeEnum); // Include everything boolean publicOnly = AuthListType.SHARED_PUBLIC.equals(listTypeEnum); // Include only publicly shared boolean sharedOnly = AuthListType.SHARED_DIRECT.equals(listTypeEnum); // Include only shared directly with user boolean mine = AuthListType.MINE.equals(listTypeEnum); // Include owned and directly shared with user boolean readPermOnly = AuthListType.READ_PERM.equals(listTypeEnum); // Include only directly granted READ/MODIFY