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

trotzig / diffux / 128
99%

Build:
DEFAULT BRANCH: master
Ran 09 Feb 2014 05:48AM UTC
Jobs 2
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

pending completion
128

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%)

40.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 128.1 (2.0.0) 09 Feb 2014 05:49AM UTC 0
98.83
Travis Job 128.1
2 128.2 (2.1.0) 09 Feb 2014 05:48AM UTC 0
98.83
Travis Job 128.2
Source Files on build 128
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #128
  • 131fe401 on github
  • Prev Build on master (#127)
  • Next Build on master (#129)
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