Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(BA-624): Add vfolder repository layer in manager #3669

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/3669.feat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Repository for VFolder in manager
2 changes: 1 addition & 1 deletion docs/manager/rest-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Backend.AI Manager API",
"description": "Backend.AI Manager REST API specification",
"version": "25.1.1",
"version": "25.2.0",
"contact": {
"name": "Lablup Inc.",
"url": "https://docs.backend.ai",
Expand Down
4 changes: 2 additions & 2 deletions src/ai/backend/common/dto/manager/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class VFolderItemField(BaseModel):
cloneable: bool
status: VFolderOperationStatusField
is_owner: bool
user_email: str
group_name: str
user_email: Optional[str]
group_name: Optional[str]
type: str # legacy
max_files: int
cur_size: int
4 changes: 2 additions & 2 deletions src/ai/backend/common/dto/manager/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic import AliasChoices, BaseModel, Field

from ai.backend.common import typed_validators as tv
from ai.backend.common.dto.manager.dto import VFolderPermissionDTO
from ai.backend.common.dto.manager.field import VFolderPermissionField
seedspirit marked this conversation as resolved.
Show resolved Hide resolved
from ai.backend.common.types import VFolderUsageMode


Expand All @@ -17,7 +17,7 @@ class VFolderCreateReq(BaseModel):
default=None,
)
usage_mode: VFolderUsageMode = Field(default=VFolderUsageMode.GENERAL)
permission: VFolderPermissionDTO = Field(default=VFolderPermissionDTO.READ_WRITE)
permission: VFolderPermissionField = Field(default=VFolderPermissionField.READ_WRITE)
seedspirit marked this conversation as resolved.
Show resolved Hide resolved
unmanaged_path: Optional[str] = Field(
validation_alias=AliasChoices("unmanaged_path", "unmanagedPath"),
default=None,
Expand Down
Loading
Loading