Commit d9c05be
feat(BA-5829): add AppConfigFragment + AppConfig GQL surface
Adds the GraphQL exposure for AppConfigFragment and the merged
AppConfig view (BEP-1052 §2 / §5).
Service / processor additions (only what the GQL layer needs that is
not already in BA-5827):
- Merged-view actions: get_user_app_config, search_user_app_configs,
admin_search_app_configs (single-row + paginated reads of the
computed AppConfig view).
- Service methods + processor wiring + supported_actions for those
three actions.
Adapter additions:
- Merged-view methods: get_user_app_config / my_app_configs /
admin_search_app_configs / public_app_config_fragments. `my_*`
pulls the user from current_user() inside the adapter.
- Bulk-only `my` mutations: my_bulk_create / my_bulk_update —
bulk admin variants are wired in BA-5827 already.
DTO additions:
- common/dto/manager/v2/app_config/* — AppConfigNode,
GetUserAppConfigInput / Payload, SearchAppConfigsInput / Payload,
SearchMyAppConfigsInput, BulkCreate/UpdateMyAppConfigFragmentsPayload
(the my-bulk payloads live here because they carry AppConfigNode).
GraphQL:
- app_config package: AppConfigGQL, my/admin/public root resolvers.
- app_config_fragment package: scope-bound + admin queries, bulk-only
mutations (admin + my variants), AppConfigFragmentGQL +
AppConfigScopeTypeGQL + filter/order/key inputs.
- DataLoader: app_config_fragment_loader for N+1 batching.
- schema.py: register the new root queries / mutations.
Resolves BA-5829.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f671845 commit d9c05be
25 files changed
Lines changed: 472 additions & 189 deletions
File tree
- src/ai/backend
- common/dto/manager/v2/app_config
- manager
- api
- adapters
- gql
- app_config_fragment
- resolver
- types
- app_config
- resolver
- types
- data_loader
- services/app_config_fragment
- actions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
41 | 35 | | |
42 | 36 | | |
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 41 | | |
56 | 42 | | |
57 | 43 | | |
| |||
76 | 62 | | |
77 | 63 | | |
78 | 64 | | |
79 | | - | |
| 65 | + | |
80 | 66 | | |
81 | 67 | | |
82 | 68 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
0 commit comments