lablup / lablup/backend.ai

Deprecate EnumValueType/EnumType in src/ai/backend/manager/models/base.py and standardize on StrEnumType

Open
#9,366 0 comments 0 reactions 0 assignees View on GitHub
deprecation manager tech-debt
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

Background
src/ai/backend/manager/models/base.py currently contains EnumValueType, EnumType, and StrEnumType.

Goal
Deprecate EnumValueType and EnumType, and standardize enum handling on StrEnumType only.

Scope
1. Define and implement deprecation policy for EnumValueType and EnumType
2. Migrate existing usages in the manager codebase to StrEnumType incrementally
3. Update related tests, typing, and documentation
4. Document removal timeline and backward\-compatibility guidance

Definition of Done
\- New code does not use EnumValueType or EnumType
\- Existing usages are migrated or have a clear migration plan
\- CI and quality checks pass
\- Changes and migration guidance are documented

JIRA Issue: BA-4703

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.