codeforamerica / cfapi

The Code for America API. Tracks and motivates activity and participation across the civic technology movement.
http://codeforamerica.org/api
MIT License
113 stars 52 forks source link

Support searching for multiple org types at once #291

Closed ondrae closed 8 years ago

ondrae commented 8 years ago

On the Brigade Project Search page, we want to show Brigade and Code for All project, but not Government projects, by default. Currently the CfAPI didn't allow you to do that. This PR changes that.

We want the default results from /projects to be the same as if you searched for http://www.codeforamerica.org/brigade/projects?type=Brigade,Code+for+All. This PR will make both of those work, at least on the CfAPI side.

Hey @tmaybe I could use your review of this. I think it could also use your work for changing how we are doing string matching, to a safer way that would prevent sql injection.

tmaybe commented 8 years ago

I reviewed and also:

@ondrae this is ready for your review/merge

tmaybe commented 8 years ago

this is deployed on staging