lablup / lablup/backend.ai

Stop resources from holding on to the account

Open
#14,259 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

대상

- 유저를 가리키는 참조가 스무 개고 그중 일곱이 삭제를 막는다. 자원 엔티티가 그 안에 있어, 유저를 지우려면 자원을 먼저 지워야 하는 상태다.

- 자원의 소속은 프로젝트다. 유저를 가리키는 열은 소유가 아니라 내력이므로, 계정이 사라질 때 비워지면 된다.

- 유저 purge 가 자원을 지우던 단계를 걷어낸다. 계정 자신의 것 - 자격 증명, 로그인 기록, 개인 정보 - 은 그대로 함께 간다.

- 어떤 열이 자원이고 어떤 열이 계정 자신의 것인지 표로 확정한 뒤 착수한다.

완료 기준

- 자원을 가진 유저를 purge 해도 그 자원이 남는다. 계정 자신의 것은 함께 사라진다.

참고 (2026-09-05 main 기준)

- 삭제를 막는 참조: model_cards.creator, routings.session_owner, session_groups.owner_user_id

- 삭제 동작이 없는 참조: vfolders.user, sessions.user_uuid, session_templates.user_uuid

- 계정 자신의 것: keypairs.user, error_logs.user, login_sessions.user_id

- repositories/user/db_source/db_source.py 의 purge_user_by_uuid

JIRA Issue: BA-7687

Contributor guide

Open the contributing guide

Research direction

Start in repositories/user/db_source/db_source.py at purge_user_by_uuid. Map the listed user references into resources versus account-owned data, confirming the classification before changing deletion behavior. Verify that purging a user leaves their resources intact while removing keypairs, error logs, and login sessions, and test the purge path with a user who owns resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.