lablup / lablup/backend.ai

Create service_configs table and repository

Open
#7,781 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 database infrastructure for storing service configurations.

## Tasks

### Database Table

- Create `service_configs` table via alembic migration
- Schema: `id`, `key` (unique), `value` (JSONB), `description`, `created_at`, `updated_at`

### Repository

- `ServiceConfigRepository` with CRUD operations
- TTL-based caching for performance
- Methods: `get(key)`, `set(key, value)`, `delete(key)`, `list_all()`

### Seed Data

- Default configuration values for initial deployment

## Files to Create/Modify

- `src/ai/backend/manager/models/service_config/row.py`
- `src/ai/backend/manager/repositories/service_config/repository.py`
- Alembic migration file

JIRA Issue: BA-3760

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.