-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated listings when setting service_area #357
Comments
This problem with |
Thanks for reporting this. This is probably due to removing the I couldn't remember why we needed the |
I've identified the issue. It happens when the |
Is it possible to just return the specific service record at the location that matches rather than all the services at the location? For me at least that would be desired behavior. Being able to limit the results to the particular service matching the keyword rather than seeing all the services at the location. |
Search returns Location objects. What you are seeing in the results is the same Location repeated, not multiple services. The solution is to use |
I just fixed this. Could you grab the latest changes and try it again, please? |
This works great here. Thanks @monfresh. |
I'm having an issue with repeated listings when including
&service_area=County
I just merged from the master branch at https://github.com/codeforamerica/ohana-api to bring my local installation up to date. I'm pretty sure this was working correctly a few days ago before having synced with the repo. When running
git diff upstream/master
with my current branch the only differences are in my database.yml and settings.yml.The url address below is
http://elizabeth.duckdns.org:4000/locations?keyword=Food+Pantries&service_area=Clallam
I reset and re-imported my data to see if that was the issue, same problem. When viewing the service record in
localhost:8080/admin
the service_area is only listed once in the service record.The record "The Answer for Youth" has 5 services, and is seen repeating 5 times. The same happens with other agencies. I checked my taxonomy for each service record and each does have different taxonomy codes selected.
If I do not use
&service_area=County
and instead use&location=port angeles
I get the expected result of one listing for the service.Anyone else having this issue?
The text was updated successfully, but these errors were encountered: