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

codeforamerica / ohana-api / 660
99%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2014 04:25PM UTC
Jobs 1
Files 63
Run time 30s
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
660

Pull #253

travis-ci

monfresh
Add ability to filter locations by activity status

Now that the OpenReferral spec requires a `status` field for Services,
it’s possible that all of the Services for a particular Location could
become `inactive` and/or `defunct`.

If that’s the case, I would assume that you would no longer want to
include that Location in search results because you wouldn’t be calling
that location or visiting it if it no longer provides any services.

To enable this filter, I added a boolean `active` field to the
Locations table that automatically gets updated if the Location’s
overall Services status changes.

To only show active locations, pass in the `status=active` parameter.
For example:
https://ohana-api-demo.herokuapp.com/api/search?status=active

To only show inactive locations, pass in `status=inactive`.

For clients that display information about a particular Location, it
might make sense to display a warning or other message if the Location
currently doesn’t have any active services. You can determine if that’s
the case by checking if the Location’s JSON contains an `active`
attribute set to `false`.
Pull Request #253: Add ability to filter locations by activity status

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

966 of 980 relevant lines covered (98.57%)

54.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 660.1 (2.1.2) 23 Oct 2014 04:25PM UTC 0
98.57
Travis Job 660.1
Source Files on build 660
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #660
  • Pull Request #253
  • PR Base - master (#658)
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