Commit 161c9fa
fix(server): register the area-guidance context and let reads answer absence
Three findings from reviewing the branch, none of which local runs had shown.
The full-context budget failed in CI and not here, because the local suite never
runs SpringTestContextArchitectureTest — `pnpm run test:server:verification` is
the command that does, and it is what CI runs. PracticeAreaStatusIntegrationTest
earns a second application context: its nested class registers an
AreaGuidanceProvider bean, and "a provider is present" cannot be tested from the
same context as "none is registered". That is a reviewed cost, so it is now
recorded as one with its justification rather than left to fail the gate.
FeedbackResponseService read the caller through the throwing lookup on all three
methods, including its two reads. CurrentDeveloperLookup says the opposite in as
many words: absence is a normal answer for a read, and only a write has no
meaningful empty result. Its two neighbours already keep that; this one now does
too, so a signed-in person who was never synced as a developer sees no response
and zero counts instead of an error.
ObservationService still declared the visibility policy it stopped using when
the reflection surface moved out. The field was injected and read nowhere.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017XBuU2tfPFntHoE34Cmw1Z1 parent c6417c3 commit 161c9fa
4 files changed
Lines changed: 67 additions & 38 deletions
File tree
- server/src
- main/java/de/tum/cit/aet/hephaestus/practices
- feedback
- observation
- test/java/de/tum/cit/aet/hephaestus
- architecture
- practices/feedback
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
84 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| 98 | + | |
89 | 99 | | |
90 | 100 | | |
91 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
server/src/test/java/de/tum/cit/aet/hephaestus/architecture/SpringTestContextArchitectureTest.java
Lines changed: 17 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
| |||
server/src/test/java/de/tum/cit/aet/hephaestus/practices/feedback/FeedbackResponseServiceTest.java
Lines changed: 33 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
133 | | - | |
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
| |||
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
157 | | - | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
173 | 179 | | |
174 | 180 | | |
175 | 181 | | |
176 | | - | |
177 | 182 | | |
178 | 183 | | |
179 | 184 | | |
| |||
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
218 | | - | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
| |||
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
238 | | - | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| |||
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
257 | | - | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| |||
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
271 | | - | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | 339 | | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
345 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
346 | 358 | | |
347 | 359 | | |
348 | 360 | | |
| |||
357 | 369 | | |
358 | 370 | | |
359 | 371 | | |
360 | | - | |
361 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
362 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
363 | 385 | | |
364 | 386 | | |
365 | 387 | | |
| |||
397 | 419 | | |
398 | 420 | | |
399 | 421 | | |
400 | | - | |
401 | 422 | | |
402 | 423 | | |
403 | 424 | | |
| |||
0 commit comments