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

alphagov / backdrop / 2211
92%
master: 89%

Build:
Build:
LAST BUILD BRANCH: upgrade_paas_stack
DEFAULT BRANCH: master
Ran 14 Jan 2015 12:36PM UTC
Jobs 1
Files 63
Run time 27s
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
2211

push

travis-ci

annapowellsmith
Add filter_by_prefix parameter for regex support

Add new filter_by_prefix parameter. This is similar to the existing
filter_by parameter, except that searches are anchored to the start of
the string.

The Mongo query is also constructed using 'find', but passed through as
{ 'pagePath': /^\\/housing-benefit.*/ } rather than { 'pagePath':
'/housing-benefit' }. Mongo will parse this as a regular expression
query.

We escape all strings passed into the filter using Python's re module.

The justification for this parameter is to support multi-part formats in
the info-frontend application - e.g. we would like to serve aggregate
statistics for the number of tickets submitted across all pages in
multi-part guides and smart answers. To do this with the existing
filter_by parameter would require a call to Backdrop for each page in
the guide or smart answer, and some of these formats have 30+ pages.

1989 of 2163 relevant lines covered (91.96%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2211.1 (SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1) 14 Jan 2015 12:36PM UTC 0
91.96
Travis Job 2211.1
Source Files on build 2211
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2211
  • 6f56fa84 on github
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