lablup / lablup/backend.ai

Name the vfolder permission row after the mount permission it holds

Open
#14,316 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
21h 49m
Merged PRs (30d)
404

Description

vfolder_permissions 표는 세션 안에서의 마운트 권한만 담는다. BA-7665 로 share cap 이 그 옆에 함께 기록되면서 VFolderPermission\* 이라는 이름이 둘 중 어느 쪽인지 가린다. 이름을 마운트 권한으로 한정한다.

대상

- VFolderPermissionRow -> VFolderMountPermissionRow
- VFolderPermissionData / VFolderPermissionID / VFolderPermissionCreator / VFolderPermissionBatchPurger / VFolderUserPermissionBatchPurger / UserVFolderPermissionPurger 도 VFolderMountPermission\* 로

제약

- __tablename__ 은 vfolder_permissions 로 둔다. 표 이름을 바꾸면 마이그레이션이 붙는다.
- 순수 리네임 커밋으로 유지한다. 동작 변경을 섞지 않는다.

범위

- src 13개 파일, 테스트 8개 파일, 식별자 약 180곳. 기계적 치환이라 파일 수는 많지만 한 번에 읽힌다.

JIRA Issue: BA-7723

Contributor guide

Open the contributing guide

Research direction

Search the 13 src files and 8 test files for VFolderPermissionRow and the listed VFolderPermission* identifiers. Rename them mechanically to VFolderMountPermission* while keeping __tablename__ as vfolder_permissions and changing no behavior. Run the affected tests and confirm all references use the new mount-permission names.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.