lablup / lablup/backend.ai

Split the grant write ops off the generalized v2 write ops

Open
#14,109 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

V2WriteOps composes V2GrantWriteOps, so a caller holding the generalized write ops can hand out and take back entity grants. Grants carry permission caps, which belongs beside the permission ops (BA-7560) rather than in the ops every entity write path holds.

Scope:
- Remove V2GrantWriteOps from the V2WriteOps composition and hand it out through its own provider context.
- Move the 6 call sites over: vfolder/repository.py (5), entity_invitation/repository.py (1), plus the repository test.
- V2WriteOps keeps entity, global, field, dangling field, update and batch writes.

JIRA Issue: BA-7580

Contributor guide

Open the contributing guide

Research direction

Start by locating the V2WriteOps and V2GrantWriteOps composition and provider contexts. Update the five call sites in vfolder/repository.py, the call site in entity_invitation/repository.py, and the repository test. Done means grant operations come from their own provider context while V2WriteOps retains the listed entity, global, field, dangling-field, update, and batch writes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.