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

Unleash / unleash / 8997965770
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 08 May 2024 07:32AM 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

08 May 2024 07:26AM UTC coverage: 87.737% (+0.05%) from 87.686%
8997965770

push

github

web-flow
chore: add automatic ID generation algorithm (#7001)

This PR adds a function to automatically generate a project ID on
creation. Using this when the id is missing will be handled in following
PRs.

The function uses the existing `slug` package to create a slug, and then
takes the 12 characters of a uuidv4 string to generate an ID.

The included tests check that the 12 character hash is added and that
the resulting string is url friendly (by checking that
`encodeURIComponent` doesn't change it).

We could also test a lot of edge cases (such as dealing with double
spaces, trimming the string, etc), but I think that's better handled by
the library itself (but you can check out what I removed in
https://github.com/Unleash/unleash/pull/7001/commits/2d9bcb639
for an idea).

The function doesn't really need to be in the service; it could be moved to a util. But for proximity, I'll create it here first.

2606 of 3394 branches covered (76.78%)

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

1 existing line in 1 file now uncovered.

13050 of 14874 relevant lines covered (87.74%)

675.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8997965770.1 08 May 2024 07:32AM UTC 0
87.74
GitHub Action Run
Source Files on build 8997965770
Detailed source file information is not available for this build.
  • Back to Repo
  • 861ae6aa on github
  • Prev Build on main (#8993068686)
  • Next Build on main (#8998424627)
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