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

wikimedia / restbase / 884

Build:
Build:
LAST BUILD BRANCH: variants_for_everything
DEFAULT BRANCH: master
Ran 04 Mar 2015 02:23AM UTC
Jobs 3
Files 9
Run time 32s
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
884

Pull #205

travis-ci

gwicke
Don't swallow & generate content for non-404 errors

The unconditional catch handler in parsoid.js triggered content generation on
*any* errors, not just 404s. This led to a large number of revisions to be
stored on some pages I was using for benchmarking.

It also covered up a bug in the handling of requests for 'latest' revisions.
The frontend code (and a test) was creating internal requests with 'latest' as
the revision, but the revision parsing code in key_rev_value did not consider
that a valid revision. Combined with the earlier bug this meant that each
request for an existing version was causing a new revision to be parsed &
saved.

This patch solves both problems by

- only generating content on 404, and re-raising any other errors, and

- dropping the `/latest` pseudo-revision in favor of a straight request for
  the title.
Pull Request #205: Cassandra driver v2 fixes / tweaks

27 of 27 new or added lines in 3 files covered. (100.0%)

741 of 857 relevant lines covered (86.46%)

108.39 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
mods/parsoid.js
5
100.0
mods/page_revisions.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
mods/key_rev_value.js
3
100.0
lib/restbase.js
4
100.0
mods/parsoid.js
17
100.0
mods/page_revisions.js
Jobs
ID Job ID Ran Files Coverage
1 884.1 04 Mar 2015 02:23AM UTC 0
86.46
Travis Job 884.1
2 884.2 04 Mar 2015 02:24AM UTC 0
86.46
Travis Job 884.2
3 884.3 04 Mar 2015 02:24AM UTC 0
Travis Job 884.3
Source Files on build 884
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #884
  • Pull Request #205
  • PR Base - cassandra_driver_v2 (#872)
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