{"action":"created","issue":{"url":"https://api.github.com/repos/TGAC/brassica/issues/681","repository_url":"https://api.github.com/repos/TGAC/brassica","labels_url":"https://api.github.com/repos/TGAC/brassica/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/TGAC/brassica/issues/681/comments","events_url":"https://api.github.com/repos/TGAC/brassica/issues/681/events","html_url":"https://github.com/TGAC/brassica/pull/681","id":192256966,"number":681,"title":"A trial analysis API client stub","user":{"login":"Nuanda","id":107565,"avatar_url":"https://avatars.githubusercontent.com/u/107565?v=3","gravatar_id":"","url":"https://api.github.com/users/Nuanda","html_url":"https://github.com/Nuanda","followers_url":"https://api.github.com/users/Nuanda/followers","following_url":"https://api.github.com/users/Nuanda/following{/other_user}","gists_url":"https://api.github.com/users/Nuanda/gists{/gist_id}","starred_url":"https://api.github.com/users/Nuanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nuanda/subscriptions","organizations_url":"https://api.github.com/users/Nuanda/orgs","repos_url":"https://api.github.com/users/Nuanda/repos","events_url":"https://api.github.com/users/Nuanda/events{/privacy}","received_events_url":"https://api.github.com/users/Nuanda/received_events","type":"User","site_admin":false},"labels":[{"id":177193693,"url":"https://api.github.com/repos/TGAC/brassica/labels/feature","name":"feature","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"teatree1212","id":17452217,"avatar_url":"https://avatars.githubusercontent.com/u/17452217?v=3","gravatar_id":"","url":"https://api.github.com/users/teatree1212","html_url":"https://github.com/teatree1212","followers_url":"https://api.github.com/users/teatree1212/followers","following_url":"https://api.github.com/users/teatree1212/following{/other_user}","gists_url":"https://api.github.com/users/teatree1212/gists{/gist_id}","starred_url":"https://api.github.com/users/teatree1212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teatree1212/subscriptions","organizations_url":"https://api.github.com/users/teatree1212/orgs","repos_url":"https://api.github.com/users/teatree1212/repos","events_url":"https://api.github.com/users/teatree1212/events{/privacy}","received_events_url":"https://api.github.com/users/teatree1212/received_events","type":"User","site_admin":false},"assignees":[{"login":"teatree1212","id":17452217,"avatar_url":"https://avatars.githubusercontent.com/u/17452217?v=3","gravatar_id":"","url":"https://api.github.com/users/teatree1212","html_url":"https://github.com/teatree1212","followers_url":"https://api.github.com/users/teatree1212/followers","following_url":"https://api.github.com/users/teatree1212/following{/other_user}","gists_url":"https://api.github.com/users/teatree1212/gists{/gist_id}","starred_url":"https://api.github.com/users/teatree1212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teatree1212/subscriptions","organizations_url":"https://api.github.com/users/teatree1212/orgs","repos_url":"https://api.github.com/users/teatree1212/repos","events_url":"https://api.github.com/users/teatree1212/events{/privacy}","received_events_url":"https://api.github.com/users/teatree1212/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-11-29T11:29:54Z","updated_at":"2016-11-30T15:38:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TGAC/brassica/pulls/681","html_url":"https://github.com/TGAC/brassica/pull/681","diff_url":"https://github.com/TGAC/brassica/pull/681.diff","patch_url":"https://github.com/TGAC/brassica/pull/681.patch"},"body":"When finished it fixes #680 \r\n\r\n@teatree1212 per your request I started that with a client stub. Currently it finds the PT (by name), gets all TDs, PSUs and TSes related to that PT, and outputs a CSV document which pretty much resembles the one available at https://bip.earlham.ac.uk/trial_scorings/5.\r\n\r\nPlease take it from here and add further data. When in doubt how to query an individual table, see the 'Q' marker in the docs, or the definition of `permitted_params` inside individual model classes in the sources, to see what field is available for filtering."},"comment":{"url":"https://api.github.com/repos/TGAC/brassica/issues/comments/263905243","html_url":"https://github.com/TGAC/brassica/pull/681#issuecomment-263905243","issue_url":"https://api.github.com/repos/TGAC/brassica/issues/681","id":263905243,"user":{"login":"Nuanda","id":107565,"avatar_url":"https://avatars.githubusercontent.com/u/107565?v=3","gravatar_id":"","url":"https://api.github.com/users/Nuanda","html_url":"https://github.com/Nuanda","followers_url":"https://api.github.com/users/Nuanda/followers","following_url":"https://api.github.com/users/Nuanda/following{/other_user}","gists_url":"https://api.github.com/users/Nuanda/gists{/gist_id}","starred_url":"https://api.github.com/users/Nuanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nuanda/subscriptions","organizations_url":"https://api.github.com/users/Nuanda/orgs","repos_url":"https://api.github.com/users/Nuanda/repos","events_url":"https://api.github.com/users/Nuanda/events{/privacy}","received_events_url":"https://api.github.com/users/Nuanda/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T15:38:17Z","updated_at":"2016-11-30T15:38:17Z","body":"Re. JSON output - first you'd need to decide how to structure the output (by PSUs? by TDs?). Active Model is not available in the vanilla client script, unless you load it, but then again it can't be used as what you get are rather hashes and not the active models. But I think using JSON generator methods, as you do, is the way to go."}}
{"actor":{"display_login":"Nuanda"}}