Skip to content

Commit 1d1575f

Browse files
committed
chore(BA-5822): drop legacy AppConfig SDK + CLI + DTO surfaces
Extends the legacy-AppConfig drop to the client side: - `client/v2/domains_v2/app_config.py` — `V2AppConfigClient` with `upsert_domain_config` / `delete_user_config` / etc. is removed alongside its `v2_registry` `@cached_property` wiring. - `client/cli/v2/app_config/` — legacy `./bai app-config get-domain`, `upsert-user`, etc. are removed from the CLI tree. - `common/dto/manager/v2/app_config/` — legacy DTO module (`UpsertDomainConfigInput`, `DeleteUserConfigPayload`, ...) is deleted. Per #11295 review: BEP-1052's new SDK / CLI / DTO surfaces will land in their own PRs and should not also have to repeal the legacy versions there.
1 parent ff257c4 commit 1d1575f

8 files changed

Lines changed: 0 additions & 341 deletions

File tree

src/ai/backend/client/cli/v2/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ def notification() -> None:
251251
"""Notification commands."""
252252

253253

254-
@v2.group(cls=LazyGroup, import_name="ai.backend.client.cli.v2.app_config:app_config")
255-
def app_config() -> None:
256-
"""App config commands."""
257-
258-
259254
@v2.group(
260255
cls=LazyGroup,
261256
import_name="ai.backend.client.cli.v2.prometheus_query_preset:prometheus_query_preset",

src/ai/backend/client/cli/v2/app_config/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/ai/backend/client/cli/v2/app_config/commands.py

Lines changed: 0 additions & 103 deletions
This file was deleted.

src/ai/backend/client/v2/domains_v2/app_config.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/ai/backend/client/v2/v2_registry.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
if TYPE_CHECKING:
1818
from .domains_v2.agent import V2AgentClient
19-
from .domains_v2.app_config import V2AppConfigClient
2019
from .domains_v2.artifact import V2ArtifactClient
2120
from .domains_v2.artifact_registry import V2ArtifactRegistryClient
2221
from .domains_v2.audit_log import V2AuditLogClient
@@ -89,12 +88,6 @@ def agent(self) -> V2AgentClient:
8988

9089
return V2AgentClient(self._client)
9190

92-
@cached_property
93-
def app_config(self) -> V2AppConfigClient:
94-
from .domains_v2.app_config import V2AppConfigClient
95-
96-
return V2AppConfigClient(self._client)
97-
9891
@cached_property
9992
def artifact(self) -> V2ArtifactClient:
10093
from .domains_v2.artifact import V2ArtifactClient

src/ai/backend/common/dto/manager/v2/app_config/__init__.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/ai/backend/common/dto/manager/v2/app_config/request.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/ai/backend/common/dto/manager/v2/app_config/response.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)