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

Unleash / unleash / 22221286087
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 20 Feb 2026 11:01AM UTC
Jobs 1
Files 1155
Run time 2min
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

20 Feb 2026 10:53AM UTC coverage: 86.147% (-0.003%) from 86.15%
22221286087

push

github

web-flow
Extract Contstraint validation (#11371)

## About the changes

I want to reuse constraint validation in multiple places later on so
this is a refactor to make that easier.

First step in adding validation to segments is about moving it our of
feature-toggle-service.
For now it's a soft move as I left method definitions (some tests were
falling) to make the PR smaller. I plan to clean it up in the following
steps.


* tests are generated

Created a subtask for this:
[2-4216](https://linear.app/unleash/issue/2-4216/clean-up-feature-toggle-service-constraints-validation-and-update-the)

### Important files

- [ ] I'm not really using `createFakeConstraintsReadModel` as with it
some e2e tests started failing. Not sure what to do about it.

## Discussion points

- [ ] constraints vs constraint? Or maybe something else entirely? 
- [ ] should it be in features? 
- [ ] read-model vs validator? 

<img width="253" height="140" alt="Zrzut ekranu 2026-02-20 o 09 13 59"
src="https://github.com/user-attachments/assets/d82db907-1757-429a-a64a-0b85842f1113"
/>

1747 of 1964 branches covered (88.95%)

32 of 35 new or added lines in 5 files covered. (91.43%)

5 existing lines in 2 files now uncovered.

14583 of 16928 relevant lines covered (86.15%)

918.27 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
75.0
src/lib/features/constraints/createConstraintsReadModel.ts
2
0.0
src/lib/features/constraints/fake-constraints-read-model.ts

Uncovered Existing Lines

Lines Coverage ∆ File
2
56.16
-1.37% src/lib/services/email-service.ts
3
83.64
-1.82% src/lib/features/playground/feature-evaluator/constraint.ts
Jobs
ID Job ID Ran Files Coverage
1 22221286087.1 20 Feb 2026 11:01AM UTC 1155
86.15
GitHub Action Run
Source Files on build 22221286087
  • Tree
  • List 1155
  • Changed 7
  • Source Changed 2
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22221286087
  • c1f452fe on github
  • Prev Build on main (#22218185122)
  • Next Build on main (#22226127964)
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