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

codeforamerica / ohana-api / 1027 / 1
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: mb-update-factory-bot
DEFAULT BRANCH: master
Ran 14 Aug 2015 05:17PM UTC
Files 121
Run time 3s
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

14 Aug 2015 05:10PM UTC coverage: 99.422%. Remained the same
2.2.1

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

Source Files on job 1027.1 (2.2.1)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1027
  • Travis Job 1027.1
  • ae238e8f on github
  • Prev Job for 2.2.1 on replace-pg-search (#1025.1)
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