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

trotzig / diffux / 128 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 09 Feb 2014 05:49AM UTC
Files 22
Run time –
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

09 Feb 2014 05:45AM UTC coverage: 98.83% (+0.4%) from 98.442%
2.0.0

push

travis-ci

trotzig
Add counter caches to sweeps

I wanted to display a short text explaining the status of a sweep.
Instead of making expensive count queries for every sweep, I decided to
save some counter caches instead. This might be a tiny bit YAGNI at this
point, but I'm pretty sure we'll find them useful moving forward.

The only user-facing outcome of this commit is that the sweeps#index
page will have a new column named "Status". This column will display
with a few words the most important information about the snapshots in a
sweep.

If you need to backfill old sweeps, run this:

```bash
bundle exec rails runner "Sweep.all.each {|sweep| sweep.update_counters! }"
```

338 of 342 relevant lines covered (98.83%)

20.04 hits per line

Source Files on job 128.1 (2.0.0)
  • Tree
  • List 0
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 128
  • Travis Job 128.1
  • 131fe401 on github
  • Prev Job for 2.0.0 on master (#127.1)
  • Next Job for 2.0.0 on master (#129.1)
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