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

Unleash / unleash / 11931719859
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 20 Nov 2024 10:47AM UTC
Jobs 1
Files 699
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

20 Nov 2024 10:41AM UTC coverage: 87.697% (+0.06%) from 87.641%
11931719859

push

github

web-flow
chore(1-3133): change avg health to current health in project status (#8803)

This PR updates the project status service (and schemas and UI) to use
the project's current health instead of the 4-week average.

I nabbed the `calculateHealthRating` from
`src/lib/services/project-health-service.ts` instead of relying on the
service itself, because that service relies on the project service,
which relies on pretty much everything in the entire system.

However, I think we can split the health service into a service that
*does* need the project service (which is used for 1 of 3 methods) and a
service (or read model) that doesn't. We could then rely on the second
one for this service without too much overhead. Or we could extract the
`calculateHealthRating` into a shared function that takes its stores as
arguments. ... but I suggest doing that in a follow-up PR.

Because the calculation has been tested other places (especially if we
rely on a service / shared function for it), I've simplified the tests
to just verify that it's present.

I've changed the schema's `averageHealth` into an object in case we want
to include average health etc. in the future, but this is up for debate.

2780 of 3619 branches covered (76.82%)

14 of 14 new or added lines in 2 files covered. (100.0%)

14356 of 16370 relevant lines covered (87.7%)

723.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11931719859.1 20 Nov 2024 10:47AM UTC 0
87.7
GitHub Action Run
Source Files on build 11931719859
Detailed source file information is not available for this build.
  • Back to Repo
  • 04b2b488 on github
  • Prev Build on main (#11930285757)
  • Next Build on main (#11934032441)
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