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

Unleash / unleash / 8878000196
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 29 Apr 2024 11:53AM UTC
Jobs 1
Files 622
Run time 1min
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

29 Apr 2024 11:47AM UTC coverage: 87.664% (+0.02%) from 87.649%
8878000196

push

github

web-flow
chore: remove workaround (#6942)

This PR removes the workaround introduced in
https://github.com/Unleash/unleash/pull/6931. After
https://github.com/ivarconr/unleash-enterprise/pull/1268 has been
merged, this should be safe to apply.

Notably, this PR: 
- tightens up the type for the enable change request function, so we can
use that to inform the code
- skips trying to do anything with an empty array

The last point is less important than it might seem because both the env
validation and the current implementation of the callback is essentially
a no-op when there are no envs. However, that's hard to enforce. If we
just exit out early, then at least we know nothing happens.

Optionally, we could do something like this instead, but I'm not sure
it's better or worse. Happy to take input.
```ts
            const crEnvs = newProject.changeRequestEnvironments ?? []
            await this.validateEnvironmentsExist(crEnvs.map((env) => env.name));
            const changeRequestEnvironments =
                await enableChangeRequestsForSpecifiedEnvironments(crEnvs,);

            data.changeRequestEnvironments = changeRequestEnvironments;
```

2600 of 3393 branches covered (76.63%)

6 of 7 new or added lines in 1 file covered. (85.71%)

1 existing line in 1 file now uncovered.

13033 of 14867 relevant lines covered (87.66%)

676.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8878000196.1 29 Apr 2024 11:53AM UTC 0
87.66
GitHub Action Run
Source Files on build 8878000196
Detailed source file information is not available for this build.
  • Back to Repo
  • 491cd588 on github
  • Prev Build on main (#8876613711)
  • Next Build on main (#8878055164)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc