Skip to content

Commit 0a7c615

Browse files
jopemachineclaude
andcommitted
refactor(BA-5832): rename extra_config -> config in CLI / SDK and stale GQL leftovers
The CLI helptext (`bulk-create` / `bulk-update`) and a few GQL type fields still referenced `extra_config`; align them with the column rename. Also refresh the schema dump for the residual `extraConfig` fields. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b3b1cfa commit 0a7c615

6 files changed

Lines changed: 13 additions & 15 deletions

File tree

docs/manager/graphql-reference/supergraph.graphql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ input AdminAppConfigFragmentItemInput
199199
key: AppConfigFragmentKeyInput!
200200

201201
"""Raw configuration payload."""
202-
extraConfig: JSON!
202+
config: JSON!
203203
}
204204

205205
"""Added in UNRELEASED. Per-item input for admin bulk create / update."""
@@ -1082,7 +1082,7 @@ type AppConfigFragment
10821082
name: String!
10831083

10841084
"""Raw configuration payload, or null."""
1085-
extraConfig: JSON
1085+
config: JSON
10861086

10871087
"""Creation timestamp."""
10881088
createdAt: DateTime!
@@ -11568,7 +11568,7 @@ input MyAppConfigFragmentItemInput
1156811568
name: String!
1156911569

1157011570
"""Raw configuration payload."""
11571-
extraConfig: JSON!
11571+
config: JSON!
1157211572
}
1157311573

1157411574
"""

docs/manager/graphql-reference/v2-schema.graphql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ input AdminAppConfigFragmentItemInput {
151151
key: AppConfigFragmentKeyInput!
152152

153153
"""Raw configuration payload."""
154-
extraConfig: JSON!
154+
config: JSON!
155155
}
156156

157157
"""Added in UNRELEASED. Per-item input for admin bulk create / update."""
@@ -762,7 +762,7 @@ type AppConfigFragment {
762762
name: String!
763763

764764
"""Raw configuration payload, or null."""
765-
extraConfig: JSON
765+
config: JSON
766766

767767
"""Creation timestamp."""
768768
createdAt: DateTime!
@@ -7450,7 +7450,7 @@ input MyAppConfigFragmentItemInput {
74507450
name: String!
74517451

74527452
"""Raw configuration payload."""
7453-
extraConfig: JSON!
7453+
config: JSON!
74547454
}
74557455

74567456
"""

src/ai/backend/client/cli/v2/admin/app_config_fragment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def _run() -> None:
9999
"--items",
100100
required=True,
101101
help=(
102-
"JSON list of `{key: {scope_type, scope_id, name}, extra_config}` items, "
102+
"JSON list of `{key: {scope_type, scope_id, name}, config}` items, "
103103
"or `@path/to/items.json`."
104104
),
105105
)
@@ -129,7 +129,7 @@ async def _run() -> None:
129129
@click.option(
130130
"--items",
131131
required=True,
132-
help="Same shape as `bulk-create`; replaces `extra_config` wholesale.",
132+
help="Same shape as `bulk-create`; replaces `config` wholesale.",
133133
)
134134
def bulk_update(items: str) -> None:
135135
"""Bulk-update fragments (partial-success semantics)."""

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _load_items(items_arg: str) -> list[dict[str, Any]]:
8383
@click.option(
8484
"--items",
8585
required=True,
86-
help="JSON list of `{name, extra_config}` items, or `@path/to/items.json`.",
86+
help="JSON list of `{name, config}` items, or `@path/to/items.json`.",
8787
)
8888
def bulk_create(items: str) -> None:
8989
"""Bulk-create USER-scope fragments; returns recomputed merged views."""
@@ -111,7 +111,7 @@ async def _run() -> None:
111111
@click.option(
112112
"--items",
113113
required=True,
114-
help="Same shape as `bulk-create`; replaces `extra_config` wholesale.",
114+
help="Same shape as `bulk-create`; replaces `config` wholesale.",
115115
)
116116
def bulk_update(items: str) -> None:
117117
"""Bulk-update USER-scope fragments; returns recomputed merged views."""

src/ai/backend/manager/api/gql/app_config_fragment/types/bulk_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
)
4747
class AdminAppConfigFragmentItemInputGQL(PydanticInputMixin[AdminItemInputDTO]):
4848
key: AppConfigFragmentKeyInputGQL = gql_field(description="Natural-key identifier.")
49-
extra_config: dict[str, Any] = gql_field(description="Raw configuration payload.")
49+
config: dict[str, Any] = gql_field(description="Raw configuration payload.")
5050

5151

5252
@gql_pydantic_input(
@@ -91,7 +91,7 @@ class AdminBulkPurgeAppConfigFragmentInputGQL(PydanticInputMixin[AdminBulkPurgeI
9191
)
9292
class MyAppConfigFragmentItemInputGQL(PydanticInputMixin[MyItemInputDTO]):
9393
name: str = gql_field(description="Policy name.")
94-
extra_config: dict[str, Any] = gql_field(description="Raw configuration payload.")
94+
config: dict[str, Any] = gql_field(description="Raw configuration payload.")
9595

9696

9797
@gql_pydantic_input(

src/ai/backend/manager/api/gql/app_config_fragment/types/node.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class AppConfigFragmentGQL(PydanticOutputMixin[AppConfigFragmentNode]):
4141
scope_type: AppConfigScopeType = gql_field(description="Scope type.")
4242
scope_id: str = gql_field(description="Scope id.")
4343
name: str = gql_field(description="Policy name (FK to app_config_policies).")
44-
extra_config: dict[str, Any] | None = gql_field(
45-
description="Raw configuration payload, or null."
46-
)
44+
config: dict[str, Any] | None = gql_field(description="Raw configuration payload, or null.")
4745
created_at: datetime = gql_field(description="Creation timestamp.")
4846
updated_at: datetime | None = gql_field(description="Last update timestamp.")

0 commit comments

Comments
 (0)