lablup / lablup/backend.ai

Migrate Project scope ownership data to the Virtual Scope model

Open
#12,477 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

Migrate existing Project scope ownership rows in association_scopes_entities into the Virtual Scope chain: backfill virtual_scopes rows for existing Project owners, a self scope_binding per owner VS, scope_bindings for existing scope->Project links, and entity_memberships for existing Project->child ownership. Verify no ownership/permission regressions after migration.

[Aligned to BEP-1062 (#12842): correct table names are virtual_scopes / scope_bindings / entity_memberships (previously scope_virtual / virtual_entity, which do not exist in code). Resolution is non-recursive; ownership resolves via the self scope_binding.]

JIRA Issue: BA-6663

Contributor guide

Open the contributing guide

Research direction

Start by tracing the backend models and migration entry points for association_scopes_entities, virtual_scopes, scope_bindings, and entity_memberships, then read the alignment in BEP-1062 (#12842). Done means existing Project ownership, scope-to-Project links, and Project-to-child memberships are represented in the Virtual Scope chain, with ownership and permission regressions checked.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization, backend, database
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.