Commit 2bf1a6b
fix(gate-57): drop the caller-less cascade-delete wrapper (#128)
gate-57 orphaned-write-capability reported 1 finding over 82 lib/Service
files: DashboardVersionService::deleteVersionsForDashboard().
It was a literal pass-through to DashboardVersionMapper::deleteByDashboardUuid()
with zero callers. The live cascade path is Listener\VersionsListener, which is
registered against DashboardDeletedEvent in Application.php per
dashboard-cascade-events REQ-CSC-002/REQ-CSC-003 and calls the mapper directly,
inside the log-and-continue envelope REQ-CSC-006 requires. Routing the listener
through a second wrapper would add a hop and nothing else, so the wrapper is
removed rather than wired.
The dashboard-versioning spec claimed the wrapper was 'wired and ready for the
sibling cascade-events listener; the dashboard delete path itself does not yet
invoke them'. That was stale — the listener has shipped. The spec now records
the real path and states that there is deliberately no service-layer wrapper.
Before: 1 finding over 82 files. After: 0 findings over 82 files.
Co-authored-by: Conduction Release Bot <release-bot@conduction.nl>1 parent 8f1949f commit 2bf1a6b
4 files changed
Lines changed: 13 additions & 14 deletions
File tree
- lib/Service
- openspec/specs/dashboard-versioning
- tests/Unit/Service
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
530 | 542 | | |
531 | 543 | | |
532 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | 548 | | |
561 | 549 | | |
562 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
543 | 542 | | |
544 | 543 | | |
545 | 544 | | |
| |||
0 commit comments