lablup / lablup/backend.ai

Implement Admin GraphQL API for service configuration

Open
#7,782 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

## Overview

Create GraphQL API endpoints for superadmins to manage service configurations.

## Tasks

### GraphQL Schema

- `ServiceConfigNode` type with fields: `key`, `value`, `description`, `updatedAt`
- Query: `service_configs`, `service_config(key: String!)`
- Mutations: `create_service_config`, `update_service_config`, `delete_service_config`

### Authorization

- Superadmin-only access for all operations
- Read access potentially for admins (configurable)

### Input Validation

- Key format validation
- Value type validation based on config key

## Files to Create/Modify

- `src/ai/backend/manager/api/gql/service_config.py`
- Update GraphQL schema root

JIRA Issue: BA-3761

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.