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

NZOI / nztrain / 19607018566
38%
master: 38%

Build:
Build:
LAST BUILD BRANCH: feature/subtask-scoring
DEFAULT BRANCH: master
Ran 23 Nov 2025 06:19AM UTC
Jobs 1
Files 140
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

23 Nov 2025 06:12AM UTC coverage: 37.776% (+0.1%) from 37.654%
19607018566

Pull #331

github

bagedevimo
Refactor contest#after_save

The prior version of this code is a bit hard to follow as also has one
hook doing two responsibilities. This is just a minor factor to
hopefully clear it all up a bit and move some of the responsibilities
around.

The long term goal is to let ContestRelation calculate it's own
finish_at from its parent Contest, then changes to Contest just ask
ContestRelation to recalculate, like every other way a contest_relation
might need to be updated.

We _could_ use touch: true on the has_many so that any saved changed to
contest causes an update of contest_relation, then have the
set_finish_at be a before_validation callback on ContestRelation, but I
always feel a little weird about the implictness of that.
Pull Request #331: De-weird-ish contest + contest_relation

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

2123 of 5620 relevant lines covered (37.78%)

6.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19607018566.1 23 Nov 2025 06:19AM UTC 140
37.78
GitHub Action Run
Source Files on build 19607018566
  • Tree
  • List 140
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19607018566
  • Pull Request #331
  • PR Base - master (#16547254388)
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

© 2025 Coveralls, Inc