{"action":"opened","issue":{"url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/issues/314","repository_url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario","labels_url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/issues/314/comments","events_url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/issues/314/events","html_url":"https://github.com/UrbanCCD-UChicago/plenario/issues/314","id":243530857,"number":314,"title":"`dataset_name__in` filter not applied","user":{"login":"brlodi","id":4230591,"avatar_url":"https://avatars2.githubusercontent.com/u/4230591?v=4","gravatar_id":"","url":"https://api.github.com/users/brlodi","html_url":"https://github.com/brlodi","followers_url":"https://api.github.com/users/brlodi/followers","following_url":"https://api.github.com/users/brlodi/following{/other_user}","gists_url":"https://api.github.com/users/brlodi/gists{/gist_id}","starred_url":"https://api.github.com/users/brlodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brlodi/subscriptions","organizations_url":"https://api.github.com/users/brlodi/orgs","repos_url":"https://api.github.com/users/brlodi/repos","events_url":"https://api.github.com/users/brlodi/events{/privacy}","received_events_url":"https://api.github.com/users/brlodi/received_events","type":"User","site_admin":false},"labels":[{"id":121940190,"url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/labels/api","name":"api","color":"e99695","default":false},{"id":69114086,"url":"https://api.github.com/repos/UrbanCCD-UChicago/plenario/labels/bug","name":"bug","color":"b60205","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-17T21:19:06Z","updated_at":"2017-07-17T21:19:06Z","closed_at":null,"body":"May be related to #177\r\n\r\nWhen issuing a query against the `/datasets` endpoint, any provided `dataset_name__in` parameter (containing a list of dataset names to match against) is apparently ignored. For instance,\r\n```\r\nhttp://plenar.io/v1/api/datasets?dataset_name__in=311_service_requests_vacant_and_abandoned_building,311_service_requests_pot_holes_reported&obs_date__ge=2017-04-18&obs_date__le=2017-07-17&agg=day\r\n```\r\nreturns 47 results not limited to the expected 2 datasets `[transportation_department_permits, land_use_permits]`. Removing the `dataset_name__in` parameter yields the same result.\r\n\r\nThe same parameter works as expected when applied to the `/timeseries` endpoint, eg:\r\n```\r\nhttp://plenar.io/v1/api/timeseries?dataset_name__in=311_service_requests_vacant_and_abandoned_building,311_service_requests_pot_holes_reported&obs_date__ge=2017-04-18&obs_date__le=2017-07-17&agg=day\r\n```\r\n"}}
{"actor":{"display_login":"brlodi"}}