Commit 54b6e59
The `-X theirs` rebase onto BA-5829 lost the merged-view adapter
split (`AppConfigFragmentAdapter` -> `AppConfigAdapter` for merged
views) and the import-cycle fix (lightened `app_config_fragment/__init__`
+ `strawberry.lazy()` on `AppConfigGQL.fragments` + JSON scalar on
fragment payload fields). Re-apply BA-5829's versions of:
- `api/adapters/app_config.py` — gains the merged-view + my_bulk
surface (and pulls `app_config.types` re-exports along with it).
- `api/adapters/app_config_fragment.py` — narrowed back to raw fragment
ops only; merged-view methods no longer live here.
- `api/gql/app_config_fragment/__init__.py` — emptied so `app_config.types`
doesn't re-enter the partially-initialized package via the resolver.
- `api/gql/app_config_fragment/resolver/__init__.py` — drops the
removed `scoped_app_config_fragments` re-export.
- `api/gql/app_config_fragment/types/{node,bulk_inputs}.py` —
switches the `config` field type from `dict[str, Any]` to the
`JSON` scalar so Strawberry can resolve it.
- `api/gql/app_config/resolver/query.py` — calls the merged-view
methods on `AppConfigAdapter` (not the fragment adapter).
- `api/gql/data_loader/data_loaders.py` — drops the stale
`batch_load_by_ids` reference on `AppConfigFragmentAdapter`.
- `api/gql/schema.py` — imports resolver functions via the submodule
paths directly, matching the lighter `app_config_fragment` package
init.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2085bc0 commit 54b6e59
8 files changed
Lines changed: 40 additions & 146 deletions
File tree
- src/ai/backend/manager/api
- adapters
- gql
- app_config_fragment
- resolver
- types
- app_config/resolver
- data_loader
Lines changed: 1 addition & 87 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 9 | | |
28 | 10 | | |
29 | 11 | | |
30 | 12 | | |
31 | 13 | | |
32 | 14 | | |
33 | 15 | | |
34 | | - | |
35 | | - | |
36 | 16 | | |
37 | 17 | | |
38 | 18 | | |
| |||
53 | 33 | | |
54 | 34 | | |
55 | 35 | | |
56 | | - | |
57 | 36 | | |
58 | 37 | | |
59 | 38 | | |
60 | | - | |
61 | 39 | | |
62 | 40 | | |
63 | 41 | | |
| |||
67 | 45 | | |
68 | 46 | | |
69 | 47 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 48 | + | |
74 | 49 | | |
75 | 50 | | |
76 | 51 | | |
| |||
84 | 59 | | |
85 | 60 | | |
86 | 61 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 62 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 63 | | |
101 | 64 | | |
102 | 65 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 66 | | |
107 | 67 | | |
108 | 68 | | |
| |||
330 | 290 | | |
331 | 291 | | |
332 | 292 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | 293 | | |
380 | 294 | | |
381 | 295 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 8 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
| 41 | + | |
45 | 42 | | |
46 | 43 | | |
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
130 | | - | |
131 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
534 | | - | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| |||
0 commit comments