{"action":"created","issue":{"url":"https://api.github.com/repos/cognoma/core-service/issues/33","repository_url":"https://api.github.com/repos/cognoma/core-service","labels_url":"https://api.github.com/repos/cognoma/core-service/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/cognoma/core-service/issues/33/comments","events_url":"https://api.github.com/repos/cognoma/core-service/issues/33/events","html_url":"https://github.com/cognoma/core-service/issues/33","id":181908058,"number":33,"title":"Add filter to and field selection to /samples","user":{"login":"awm33","id":3846080,"avatar_url":"https://avatars.githubusercontent.com/u/3846080?v=3","gravatar_id":"","url":"https://api.github.com/users/awm33","html_url":"https://github.com/awm33","followers_url":"https://api.github.com/users/awm33/followers","following_url":"https://api.github.com/users/awm33/following{/other_user}","gists_url":"https://api.github.com/users/awm33/gists{/gist_id}","starred_url":"https://api.github.com/users/awm33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awm33/subscriptions","organizations_url":"https://api.github.com/users/awm33/orgs","repos_url":"https://api.github.com/users/awm33/repos","events_url":"https://api.github.com/users/awm33/events{/privacy}","received_events_url":"https://api.github.com/users/awm33/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cognoma/core-service/labels/task","name":"task","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-09T20:11:22Z","updated_at":"2016-10-14T20:03:39Z","closed_at":null,"body":"In response to the needs presented in https://github.com/cognoma/cancer-data/pull/29 we need to add the ability for the frontend to get a list of samples related to a given mutated gene.\r\n\r\nExample:\r\n`/samples?mutations__gene=1234&mutations__status=true&&fields=sample_id`\r\n\r\nLooks like the [SearchFilter class](http://www.django-rest-framework.org/api-guide/filtering/#searchfilter) supports filtering related models. The [dynamic fields](https://github.com/dbrgn/drf-dynamic-fields) library can be used to filter fields. Note: Even though the examples use ModelSerializer, it should work with the regular Serializer used in this repo."},"comment":{"url":"https://api.github.com/repos/cognoma/core-service/issues/comments/253905803","html_url":"https://github.com/cognoma/core-service/issues/33#issuecomment-253905803","issue_url":"https://api.github.com/repos/cognoma/core-service/issues/33","id":253905803,"user":{"login":"dhimmel","id":1117703,"avatar_url":"https://avatars.githubusercontent.com/u/1117703?v=3","gravatar_id":"","url":"https://api.github.com/users/dhimmel","html_url":"https://github.com/dhimmel","followers_url":"https://api.github.com/users/dhimmel/followers","following_url":"https://api.github.com/users/dhimmel/following{/other_user}","gists_url":"https://api.github.com/users/dhimmel/gists{/gist_id}","starred_url":"https://api.github.com/users/dhimmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhimmel/subscriptions","organizations_url":"https://api.github.com/users/dhimmel/orgs","repos_url":"https://api.github.com/users/dhimmel/repos","events_url":"https://api.github.com/users/dhimmel/events{/privacy}","received_events_url":"https://api.github.com/users/dhimmel/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T20:03:39Z","updated_at":"2016-10-14T20:03:39Z","body":"Would it be possible to specify a list of genes as well and for each gene receive a list of samples with that mutation?"}}
{"actor":{"display_login":"dhimmel"}}