lablup / lablup/backend.ai

Define QuotaScope GQL types and wire Adapter

Open
#10,550 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

Define Strawberry GQL types for QuotaScope backed by v2 DTOs (common/dto/manager/v2/quota_scope/) and create the QuotaScope Adapter layer.

Scope:
- QuotaScopeGQL node type (from QuotaScopeNode DTO)
- SetQuotaInputGQL / UnsetQuotaInputGQL input types
- SetQuotaPayloadGQL / UnsetQuotaPayloadGQL / GetQuotaScopePayloadGQL payload types
- QuotaScopeFilterGQL / QuotaScopeOrderByGQL filter/order types
- QuotaScopeAdapter (api/adapters/quota_scope.py) calling existing service actions
- Module __init__.py exports

Target files:
- api/gql/quota_scope/types/ (node.py, mutations.py, filters.py, __init__.py)
- api/adapters/quota_scope.py

## Success Criteria
- [ ] All GQL types compile and match v2 DTO field names
- [ ] Adapter correctly calls Get/Search/Set/Unset QuotaScope service actions
- [ ] pants check passes for affected packages

JIRA Issue: BA-5429

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.