Commit ec1f870
committed
refactor(policies): simplify suppress renderer per /simplify review
- Drop renderEvaluation's (active, suppressed int) returns and count from
p.Violations in groupEvaluations. Single-purpose return signature.
- assessmentScopes: replace map dedup with slices.Contains (typical N=1-2).
- Trim narrative/spec comments on the new Suppressed/SuppressedCount fields
and on groupEvaluations/renderEvaluation — keep only the WHY (gate-counter
invariance across modes); proto field names speak for themselves.
- msg += idiom in policiesTable.
No behavior change; all 2408 unit tests still pass.
Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Chainloop-Trace-Sessions: 5bd2a917-fb7b-400c-9772-60ba6af6c9af, b66717f5-626e-4c20-8d33-59c129b5885d1 parent ad9c230 commit ec1f870
13 files changed
Lines changed: 68 additions & 126 deletions
File tree
- app
- cli
- cmd
- pkg/action
- controlplane/api
- controlplane/v1
- gen
- frontend/controlplane/v1
- jsonschema
- pkg/attestation/renderer/chainloop
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 309 | | |
317 | 310 | | |
318 | 311 | | |
| |||
330 | 323 | | |
331 | 324 | | |
332 | 325 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 326 | | |
338 | 327 | | |
339 | 328 | | |
| |||
359 | 348 | | |
360 | 349 | | |
361 | 350 | | |
362 | | - | |
363 | 351 | | |
364 | 352 | | |
365 | | - | |
| 353 | + | |
366 | 354 | | |
367 | 355 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 356 | | |
373 | 357 | | |
374 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
| |||
Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 151 | + | |
| 152 | + | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
263 | | - | |
264 | | - | |
265 | | - | |
| 261 | + | |
| 262 | + | |
266 | 263 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 264 | + | |
| 265 | + | |
271 | 266 | | |
272 | 267 | | |
273 | 268 | | |
| |||
Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
0 commit comments