Commit 2193bde
committed
fix(gate): close the qualityGateMode: block loophole in settings/dashboard/API
normalizeReadinessGateMode downgrades gate.readiness.mode: block to advisory
at parse time, but that only covered the YAML gate: mapping. The identically
named qualityGateMode field reachable through .gittensory.yml's settings:
override, the maintainer dashboard save, and the internal settings write
endpoint all bypassed it, so a value supplied through any of those paths
still persisted and resolved as "block" — preserving the exact false belief
that a real quality floor is enforced.
Close it at every point the value can enter or be read:
- parseSettingsOverride now normalizes settings.qualityGateMode the same
way as gate.readiness.mode (exported for reuse).
- Both settings-write API routes (maintainer PATCH-style save and the
internal full-settings write) downgrade a written "block" before it
reaches the DB.
- resolveEffectiveSettings downgrades "block" as a final step regardless
of source, so a repo whose DB row already has quality_gate_mode = "block"
from before these guards existed is also corrected wherever effective
settings are read (the review/gate pipeline and the settings-preview
dashboard both go through this same resolver).1 parent 6d0e249 commit 2193bde
4 files changed
Lines changed: 85 additions & 13 deletions
File tree
- src
- api
- signals
- test
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
689 | 705 | | |
690 | 706 | | |
691 | 707 | | |
| |||
2105 | 2121 | | |
2106 | 2122 | | |
2107 | 2123 | | |
2108 | | - | |
| 2124 | + | |
| 2125 | + | |
2109 | 2126 | | |
2110 | 2127 | | |
2111 | 2128 | | |
| |||
3424 | 3441 | | |
3425 | 3442 | | |
3426 | 3443 | | |
3427 | | - | |
| 3444 | + | |
3428 | 3445 | | |
3429 | 3446 | | |
3430 | 3447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| |||
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
601 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
602 | 606 | | |
603 | 607 | | |
604 | 608 | | |
| |||
997 | 1001 | | |
998 | 1002 | | |
999 | 1003 | | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1000 | 1012 | | |
1001 | 1013 | | |
1002 | 1014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
272 | 286 | | |
273 | 287 | | |
274 | 288 | | |
| |||
2274 | 2288 | | |
2275 | 2289 | | |
2276 | 2290 | | |
2277 | | - | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2278 | 2295 | | |
2279 | 2296 | | |
2280 | 2297 | | |
| |||
2283 | 2300 | | |
2284 | 2301 | | |
2285 | 2302 | | |
| 2303 | + | |
2286 | 2304 | | |
2287 | 2305 | | |
2288 | 2306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1092 | 1106 | | |
1093 | 1107 | | |
1094 | 1108 | | |
| |||
1169 | 1183 | | |
1170 | 1184 | | |
1171 | 1185 | | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1172 | 1197 | | |
1173 | 1198 | | |
1174 | 1199 | | |
| |||
0 commit comments