• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash / 29569171275
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 17 Jul 2026 09:18AM UTC
Jobs 1
Files 1201
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2026 09:12AM UTC coverage: 87.455% (+0.004%) from 87.451%
29569171275

push

github

web-flow
fix: no phantom feature delete events

## Summary

Fixes an audit-log inconsistency where deleting a feature that was not
actually removed could still emit a `feature-deleted` event.

The store already guarded deletes so only archived flags can be removed,
but the service layer emitted delete events based on intent rather than
the rows actually deleted. This could leave the DB with a live feature
while the event log said it had been deleted.

## What changed

- Added a failing regression test first, following a brief TDD flow, to
capture the no-op delete/event mismatch.
- Consolidated singular feature delete through the plural
`deleteFeatures([featureName], projectId, auditUser)` path.
- Fixed the plural delete eligibility check to use `toggle.archived`
instead of `archivedAt !== null`.
- Changed `batchDelete` to return the deleted feature rows via `DELETE
... RETURNING`, so events are emitted only for rows that were actually
removed.
- Kept the legacy archive delete behavior idempotent: no-op deletes
still return success, but no longer emit phantom `feature-deleted`
events.

1938 of 2135 branches covered (90.77%)

13 of 13 new or added lines in 4 files covered. (100.0%)

5 existing lines in 3 files now uncovered.

15525 of 17752 relevant lines covered (87.45%)

807.77 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
85.59
0.0% src/lib/features/playground/feature-evaluator/constraint.ts
2
69.05
-2.38% src/lib/server-impl.ts
1
78.55
-0.26% src/lib/metrics.ts
Jobs
ID Job ID Ran Files Coverage
1 29569171275.1 17 Jul 2026 09:18AM UTC 1201
87.45
GitHub Action Run
Source Files on build 29569171275
  • Tree
  • List 1201
  • Changed 9
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29569171275
  • 9bbda20e on github
  • Prev Build on main (#29509312930)
  • Next Build on main (#29571675035)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc