{"action":"created","issue":{"url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/93","repository_url":"https://api.github.com/repos/pg-irc/pathways-backend","labels_url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/93/comments","events_url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/93/events","html_url":"https://github.com/pg-irc/pathways-backend/issues/93","id":252120757,"number":93,"title":"Implement a search API","user":{"login":"dylanmccall","id":132063,"avatar_url":"https://avatars0.githubusercontent.com/u/132063?v=4","gravatar_id":"","url":"https://api.github.com/users/dylanmccall","html_url":"https://github.com/dylanmccall","followers_url":"https://api.github.com/users/dylanmccall/followers","following_url":"https://api.github.com/users/dylanmccall/following{/other_user}","gists_url":"https://api.github.com/users/dylanmccall/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanmccall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanmccall/subscriptions","organizations_url":"https://api.github.com/users/dylanmccall/orgs","repos_url":"https://api.github.com/users/dylanmccall/repos","events_url":"https://api.github.com/users/dylanmccall/events{/privacy}","received_events_url":"https://api.github.com/users/dylanmccall/received_events","type":"User","site_admin":false},"labels":[{"id":657180009,"url":"https://api.github.com/repos/pg-irc/pathways-backend/labels/APIs","name":"APIs","color":"c2e0c6","default":false},{"id":661338114,"url":"https://api.github.com/repos/pg-irc/pathways-backend/labels/Task","name":"Task","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-22T23:50:47Z","updated_at":"2017-09-01T17:16:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"So, we need a search API, probably in place of the HSDA one. Our search API has a different set of requirements from theirs. For instance, while our data set includes *many* different taxonomy terms, we don't really want to expose all of those as search filters. It is likely that the list of filters we want to use will change quite fluidly, so it is better to treat them as content rather than baked in to the front-end. In addition, we need an API that responds in a way that lets the client very quickly put stuff on a map without any further network operations.\r\n\r\nI described what I think this API could look like over here: https://gist.github.com/dylanmccall/2875fe98953f27a08a4d337cdb0d179c.\r\n\r\n * [ ] Add a simple search/query endpoint. It should return a result as described in #92, with services and related data in a single place. (Initially, return an empty set, or the first ten services. This sub-task is done as soon as the endpoint generates a correct response).\r\n  * [ ] Implement filtering for the search/query endpoint based on filters included in the request payload. A search should match *nothing* by default.\r\n * [ ] Add a mechanism to create field filters that are stored in the database. These filters must map to database queries.\r\n * [ ] Add a search/template endpoint that returns a list of available filters, and some hard-coded (or auto-generated) region filter specifications.\r\n* [ ] Change the search/template endpoint to return filters from the database in addition to auto-generated region filters, and the search/query endpoint to understand filters that are described in the database.\r\n"},"comment":{"url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/comments/326636268","html_url":"https://github.com/pg-irc/pathways-backend/issues/93#issuecomment-326636268","issue_url":"https://api.github.com/repos/pg-irc/pathways-backend/issues/93","id":326636268,"user":{"login":"greggish","id":3630150,"avatar_url":"https://avatars3.githubusercontent.com/u/3630150?v=4","gravatar_id":"","url":"https://api.github.com/users/greggish","html_url":"https://github.com/greggish","followers_url":"https://api.github.com/users/greggish/followers","following_url":"https://api.github.com/users/greggish/following{/other_user}","gists_url":"https://api.github.com/users/greggish/gists{/gist_id}","starred_url":"https://api.github.com/users/greggish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greggish/subscriptions","organizations_url":"https://api.github.com/users/greggish/orgs","repos_url":"https://api.github.com/users/greggish/repos","events_url":"https://api.github.com/users/greggish/events{/privacy}","received_events_url":"https://api.github.com/users/greggish/received_events","type":"User","site_admin":false},"created_at":"2017-09-01T17:16:28Z","updated_at":"2017-09-01T17:16:28Z","author_association":"NONE","body":"FYI, see kin's update here: https://github.com/openreferral/api-specification/issues/46"}}
{"actor":{"display_login":"greggish"}}