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

Unleash / unleash / 10469024186
87%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 20 Aug 2024 09:36AM UTC
Jobs 1
Files 656
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 Aug 2024 09:31AM UTC coverage: 87.505% (+0.2%) from 87.337%
10469024186

push

github

web-flow
fix: don't count flags multiple times (bonus: don't count non-project events) (#7931)

This PR fixes an issue where the number of flags belonging to a project
was wrong in the new getProjectsForAdminUi.

The cause was that we now join with the events table to get the most
"lastUpdatedAt" data. This meant that we got multiple rows for each
flag, so we counted the same flag multiple times. The fix was to use a
"distinct".

Additionally, I used this as an excuse to write some more tests that I'd
been thinking about. And in doing so also uncovered another bug that
would only ever surface in verrry rare conditions: if a flag had been
created in project A, but moved to project B AND the
feature-project-change event hadn't fired correctly, project B's last
updated could show data from that feature in project A.

I've also taken the liberty of doing a little bit of cleanup.

2684 of 3525 branches covered (76.14%)

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

6 existing lines in 1 file now uncovered.

13642 of 15590 relevant lines covered (87.5%)

712.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10469024186.1 20 Aug 2024 09:36AM UTC 0
87.5
GitHub Action Run
Source Files on build 10469024186
Detailed source file information is not available for this build.
  • Back to Repo
  • 7c774b22 on github
  • Prev Build on main (#10467450164)
  • Next Build on main (#10469240244)
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