Commit 30a949b
refactor(BA-5827): drop single-item Fragment write actions (bulk-only writes)
Writes are bulk-only by design (BEP-1052 §3); single-item create /
update / purge actions, service methods, adapter methods, and the
matching DTOs were dead weight after the foundation lands. Drop them
so the surface area matches what the API exposes.
- Remove `actions/{create,update,purge}.py`
- Strip the matching service methods + processors registration
- Strip the matching adapter methods (and ObjectNotFound import)
- Strip `Create/Update/PurgeAppConfigFragmentInput` and matching
`Payload` DTOs from `common/dto/manager/v2/app_config_fragment/`
Bulk service methods (admin_bulk_* and bulk_*_my) continue to call
`admin_repository.create / update / purge` directly, which is the
intended split: the repository keeps single-row primitives, the
service exposes only bulk operations to upper layers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b338b63 commit 30a949b
9 files changed
Lines changed: 15 additions & 286 deletions
File tree
- src/ai/backend
- common/dto/manager/v2/app_config_fragment
- manager
- api/adapters
- services/app_config_fragment
- actions
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | | - | |
27 | 22 | | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | | - | |
54 | | - | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
58 | | - | |
59 | 50 | | |
60 | | - | |
61 | 51 | | |
62 | 52 | | |
63 | | - | |
64 | | - | |
65 | 53 | | |
Lines changed: 0 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | | - | |
30 | 28 | | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 44 | | |
75 | 45 | | |
76 | 46 | | |
| |||
Lines changed: 10 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 43 | | |
68 | 44 | | |
69 | 45 | | |
70 | 46 | | |
71 | 47 | | |
72 | 48 | | |
73 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
74 | 59 | | |
75 | 60 | | |
76 | 61 | | |
| |||
119 | 104 | | |
120 | 105 | | |
121 | 106 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
Lines changed: 5 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | | - | |
27 | 22 | | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
| |||
41 | 35 | | |
42 | 36 | | |
43 | 37 | | |
44 | | - | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
| |||
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 57 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 58 | | |
72 | 59 | | |
73 | 60 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 61 | | |
78 | 62 | | |
79 | 63 | | |
80 | 64 | | |
81 | 65 | | |
82 | | - | |
| 66 | + | |
83 | 67 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
90 | 72 | | |
91 | 73 | | |
92 | 74 | | |
| |||
138 | 120 | | |
139 | 121 | | |
140 | 122 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 123 | | |
165 | 124 | | |
166 | 125 | | |
| |||
Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 0 additions & 38 deletions
This file was deleted.
0 commit comments