lablup / lablup/backend.ai

vfolder APIs calls from admin blocked because of strict broad status check

Open
#1,864 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

All vfolder API functions call `ensure_vfolder_status()` to check vfolder's status.And `ensure_vfolder_status()` calls `query_accessible_vfolders()` to fetch all accessible vfolders.Admins sometimes are blocked when check vfolder's status in `ensure_vfolder_status` because admins can access to too many folders and the `ensure_vfolder_status` function checks status of all accessible vfolder entries.

e.g) All users have `.local` vfolder and some of them are under deleted status. A user whose vfolder is `ready` status can rename it from `.local`, but admin cannot rename any `.local` vfolder.

JIRA Issue: BA-156

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.