lablup / lablup/backend.ai

Represent shared/invited vfolders as rows of the `vfolders` table

Open
#1,955 0 comments 0 reactions 1 assignee Assigned to @jopemachine View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

It is complicated to query all accessible vFolders, and that's why `get_accessible_vfolders()` is hard to read and understand. The API joins `vfolders` and `vfolder_permissions` and takes additional steps to return list of dictionary.

Let's Insert shared/invited vFolders to vfolders table instead of `vfolder_permissions` table and migrate information of `vfolder_permissions` into `vfolders` for easy query.

related to #1900This will enable to replace `get_accessible_vfolders()` to RBAC API that returns `VFolderRow`

### Consideration

The migrated vfolders will have a different `id` from original vfolders. The migrated vfolders should have reference to original vfolder's id.

JIRA Issue: BA-137

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.