backend.ai
backend.ai copied to clipboard
feat: Update `query_accessible_vfolders()` to include shared-by/shared-with flags in the result
Is your feature request related to a problem? Please describe. Users cannot easily distinguish between private folders, folders shared by me, or folders shared by others.
Describe the solution you'd like Update query_accessible_vfolders() to include shared-by/shared-with flags in the result and apply them to the virtual folder's query filter.
Additional context
- If there is a row with a
vfolder_idwhose id matches in thevfolder_permissionstable, theshared_by_meis true. - If there is a row with a
user_idin thevfolder_permissionstable that matches the person who requestsuser_id, you can reversely refer to the vfolder table to get theshared_with_meinformation.