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

codeforamerica / ohana-api / 1025
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: mb-update-factory-bot
DEFAULT BRANCH: master
Ran 14 Aug 2015 04:18AM UTC
Jobs 1
Files 121
Run time 36min
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
1025

push

travis-ci

monfresh
Replace pg_search with activerecord query

Why:

We're only using the pg_search gem for the keyword search, and the query that it generates is not that complicated. Upgrading to the latest version of the pg_search gem breaks our tests. So, instead of having to rely on a third party, we can generate the same query ourselves using activerecord, and reduce our dependencies with the same stone.

How:

To figure out what the proper query was, I fired up the Rails console and ran `Location.keyword('food')`. That gave me the SQL query I needed, which I then converted to activerecord so that the result would return an ActiveRecord::Relation that can be chained with other scopes.

1719 of 1729 relevant lines covered (99.42%)

67.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1025.1 (2.2.1) 14 Aug 2015 04:54AM UTC 0
99.42
Travis Job 1025.1
Source Files on build 1025
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1025
  • 7b6e11c6 on github
  • Next Build on replace-pg-search (#1027)
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