{"action":"created","comment":{"url":"https://api.github.com/repos/atlasapi/atlas/pulls/comments/64725244","id":64725244,"diff_hunk":"@@ -173,6 +209,24 @@ public String apply(Availability input) {\n             }\n         });\n     }\n+\n+    private List<Availability> getNitroAvailabilities(Clip clip) throws GlycerinException {\n+        ImmutableList.Builder<Availability> availabilities = ImmutableList.builder();\n+\n+        AvailabilityQuery query = AvailabilityQuery.builder()\n+                .withDescendantsOf(clip.getPid())\n+                .withPageSize(pageSize)\n+                .build();\n+\n+        GlycerinResponse<Availability> availabilitiesResponse = glycerin.execute(query);","path":"src/main/java/org/atlasapi/remotesite/bbc/nitro/GlycerinNitroClipsAdapter.java","position":70,"original_position":70,"commit_id":"3aee192d68537e30252e7ad743b84cc3fdec0820","original_commit_id":"e329c163755d58876e2a18b02eb3783fe8384ed9","user":{"login":"emilssolmanis","id":663720,"avatar_url":"https://avatars.githubusercontent.com/u/663720?v=3","gravatar_id":"","url":"https://api.github.com/users/emilssolmanis","html_url":"https://github.com/emilssolmanis","followers_url":"https://api.github.com/users/emilssolmanis/followers","following_url":"https://api.github.com/users/emilssolmanis/following{/other_user}","gists_url":"https://api.github.com/users/emilssolmanis/gists{/gist_id}","starred_url":"https://api.github.com/users/emilssolmanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilssolmanis/subscriptions","organizations_url":"https://api.github.com/users/emilssolmanis/orgs","repos_url":"https://api.github.com/users/emilssolmanis/repos","events_url":"https://api.github.com/users/emilssolmanis/events{/privacy}","received_events_url":"https://api.github.com/users/emilssolmanis/received_events","type":"User","site_admin":false},"body":"So make one for `AvailabilityQuery`. This is inconsistent otherwise.","created_at":"2016-05-26T10:41:33Z","updated_at":"2016-05-26T10:41:33Z","html_url":"https://github.com/atlasapi/atlas/pull/961#discussion_r64725244","pull_request_url":"https://api.github.com/repos/atlasapi/atlas/pulls/961","_links":{"self":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/comments/64725244"},"html":{"href":"https://github.com/atlasapi/atlas/pull/961#discussion_r64725244"},"pull_request":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/961"}}},"pull_request":{"url":"https://api.github.com/repos/atlasapi/atlas/pulls/961","id":71274263,"html_url":"https://github.com/atlasapi/atlas/pull/961","diff_url":"https://github.com/atlasapi/atlas/pull/961.diff","patch_url":"https://github.com/atlasapi/atlas/pull/961.patch","issue_url":"https://api.github.com/repos/atlasapi/atlas/issues/961","number":961,"state":"open","locked":false,"title":"Adding pagination to decrease the heap overhead size","user":{"login":"MartinsIrbe","id":13367583,"avatar_url":"https://avatars.githubusercontent.com/u/13367583?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinsIrbe","html_url":"https://github.com/MartinsIrbe","followers_url":"https://api.github.com/users/MartinsIrbe/followers","following_url":"https://api.github.com/users/MartinsIrbe/following{/other_user}","gists_url":"https://api.github.com/users/MartinsIrbe/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinsIrbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinsIrbe/subscriptions","organizations_url":"https://api.github.com/users/MartinsIrbe/orgs","repos_url":"https://api.github.com/users/MartinsIrbe/repos","events_url":"https://api.github.com/users/MartinsIrbe/events{/privacy}","received_events_url":"https://api.github.com/users/MartinsIrbe/received_events","type":"User","site_admin":false},"body":"- Calling Nitro with 30 PIDs at once.\r\n- Paginating over Programmes, page by page (Page size = 30)","created_at":"2016-05-24T18:59:18Z","updated_at":"2016-05-26T10:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcc4490f7916eabd165d2b37d99e5b4086c710af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atlasapi/atlas/pulls/961/commits","review_comments_url":"https://api.github.com/repos/atlasapi/atlas/pulls/961/comments","review_comment_url":"https://api.github.com/repos/atlasapi/atlas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atlasapi/atlas/issues/961/comments","statuses_url":"https://api.github.com/repos/atlasapi/atlas/statuses/3aee192d68537e30252e7ad743b84cc3fdec0820","head":{"label":"atlasapi:MBST-15437-calling-nitro-with-30-pids","ref":"MBST-15437-calling-nitro-with-30-pids","sha":"3aee192d68537e30252e7ad743b84cc3fdec0820","user":{"login":"atlasapi","id":325129,"avatar_url":"https://avatars.githubusercontent.com/u/325129?v=3","gravatar_id":"","url":"https://api.github.com/users/atlasapi","html_url":"https://github.com/atlasapi","followers_url":"https://api.github.com/users/atlasapi/followers","following_url":"https://api.github.com/users/atlasapi/following{/other_user}","gists_url":"https://api.github.com/users/atlasapi/gists{/gist_id}","starred_url":"https://api.github.com/users/atlasapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlasapi/subscriptions","organizations_url":"https://api.github.com/users/atlasapi/orgs","repos_url":"https://api.github.com/users/atlasapi/repos","events_url":"https://api.github.com/users/atlasapi/events{/privacy}","received_events_url":"https://api.github.com/users/atlasapi/received_events","type":"Organization","site_admin":false},"repo":{"id":762119,"name":"atlas","full_name":"atlasapi/atlas","owner":{"login":"atlasapi","id":325129,"avatar_url":"https://avatars.githubusercontent.com/u/325129?v=3","gravatar_id":"","url":"https://api.github.com/users/atlasapi","html_url":"https://github.com/atlasapi","followers_url":"https://api.github.com/users/atlasapi/followers","following_url":"https://api.github.com/users/atlasapi/following{/other_user}","gists_url":"https://api.github.com/users/atlasapi/gists{/gist_id}","starred_url":"https://api.github.com/users/atlasapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlasapi/subscriptions","organizations_url":"https://api.github.com/users/atlasapi/orgs","repos_url":"https://api.github.com/users/atlasapi/repos","events_url":"https://api.github.com/users/atlasapi/events{/privacy}","received_events_url":"https://api.github.com/users/atlasapi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlasapi/atlas","description":"the global video & audio index","fork":false,"url":"https://api.github.com/repos/atlasapi/atlas","forks_url":"https://api.github.com/repos/atlasapi/atlas/forks","keys_url":"https://api.github.com/repos/atlasapi/atlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlasapi/atlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlasapi/atlas/teams","hooks_url":"https://api.github.com/repos/atlasapi/atlas/hooks","issue_events_url":"https://api.github.com/repos/atlasapi/atlas/issues/events{/number}","events_url":"https://api.github.com/repos/atlasapi/atlas/events","assignees_url":"https://api.github.com/repos/atlasapi/atlas/assignees{/user}","branches_url":"https://api.github.com/repos/atlasapi/atlas/branches{/branch}","tags_url":"https://api.github.com/repos/atlasapi/atlas/tags","blobs_url":"https://api.github.com/repos/atlasapi/atlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlasapi/atlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlasapi/atlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlasapi/atlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlasapi/atlas/statuses/{sha}","languages_url":"https://api.github.com/repos/atlasapi/atlas/languages","stargazers_url":"https://api.github.com/repos/atlasapi/atlas/stargazers","contributors_url":"https://api.github.com/repos/atlasapi/atlas/contributors","subscribers_url":"https://api.github.com/repos/atlasapi/atlas/subscribers","subscription_url":"https://api.github.com/repos/atlasapi/atlas/subscription","commits_url":"https://api.github.com/repos/atlasapi/atlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlasapi/atlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlasapi/atlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlasapi/atlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlasapi/atlas/contents/{+path}","compare_url":"https://api.github.com/repos/atlasapi/atlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlasapi/atlas/merges","archive_url":"https://api.github.com/repos/atlasapi/atlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlasapi/atlas/downloads","issues_url":"https://api.github.com/repos/atlasapi/atlas/issues{/number}","pulls_url":"https://api.github.com/repos/atlasapi/atlas/pulls{/number}","milestones_url":"https://api.github.com/repos/atlasapi/atlas/milestones{/number}","notifications_url":"https://api.github.com/repos/atlasapi/atlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlasapi/atlas/labels{/name}","releases_url":"https://api.github.com/repos/atlasapi/atlas/releases{/id}","deployments_url":"https://api.github.com/repos/atlasapi/atlas/deployments","created_at":"2010-07-07T16:28:33Z","updated_at":"2016-05-18T08:49:19Z","pushed_at":"2016-05-26T10:24:22Z","git_url":"git://github.com/atlasapi/atlas.git","ssh_url":"git@github.com:atlasapi/atlas.git","clone_url":"https://github.com/atlasapi/atlas.git","svn_url":"https://github.com/atlasapi/atlas","homepage":"http://atlas.metabroadcast.com/","size":24853,"stargazers_count":28,"watchers_count":28,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":17,"forks":11,"open_issues":17,"watchers":28,"default_branch":"master"}},"base":{"label":"atlasapi:master","ref":"master","sha":"62aa696f196ec77f411739bc446f489341d73b0a","user":{"login":"atlasapi","id":325129,"avatar_url":"https://avatars.githubusercontent.com/u/325129?v=3","gravatar_id":"","url":"https://api.github.com/users/atlasapi","html_url":"https://github.com/atlasapi","followers_url":"https://api.github.com/users/atlasapi/followers","following_url":"https://api.github.com/users/atlasapi/following{/other_user}","gists_url":"https://api.github.com/users/atlasapi/gists{/gist_id}","starred_url":"https://api.github.com/users/atlasapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlasapi/subscriptions","organizations_url":"https://api.github.com/users/atlasapi/orgs","repos_url":"https://api.github.com/users/atlasapi/repos","events_url":"https://api.github.com/users/atlasapi/events{/privacy}","received_events_url":"https://api.github.com/users/atlasapi/received_events","type":"Organization","site_admin":false},"repo":{"id":762119,"name":"atlas","full_name":"atlasapi/atlas","owner":{"login":"atlasapi","id":325129,"avatar_url":"https://avatars.githubusercontent.com/u/325129?v=3","gravatar_id":"","url":"https://api.github.com/users/atlasapi","html_url":"https://github.com/atlasapi","followers_url":"https://api.github.com/users/atlasapi/followers","following_url":"https://api.github.com/users/atlasapi/following{/other_user}","gists_url":"https://api.github.com/users/atlasapi/gists{/gist_id}","starred_url":"https://api.github.com/users/atlasapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlasapi/subscriptions","organizations_url":"https://api.github.com/users/atlasapi/orgs","repos_url":"https://api.github.com/users/atlasapi/repos","events_url":"https://api.github.com/users/atlasapi/events{/privacy}","received_events_url":"https://api.github.com/users/atlasapi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atlasapi/atlas","description":"the global video & audio index","fork":false,"url":"https://api.github.com/repos/atlasapi/atlas","forks_url":"https://api.github.com/repos/atlasapi/atlas/forks","keys_url":"https://api.github.com/repos/atlasapi/atlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atlasapi/atlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atlasapi/atlas/teams","hooks_url":"https://api.github.com/repos/atlasapi/atlas/hooks","issue_events_url":"https://api.github.com/repos/atlasapi/atlas/issues/events{/number}","events_url":"https://api.github.com/repos/atlasapi/atlas/events","assignees_url":"https://api.github.com/repos/atlasapi/atlas/assignees{/user}","branches_url":"https://api.github.com/repos/atlasapi/atlas/branches{/branch}","tags_url":"https://api.github.com/repos/atlasapi/atlas/tags","blobs_url":"https://api.github.com/repos/atlasapi/atlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atlasapi/atlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atlasapi/atlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/atlasapi/atlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atlasapi/atlas/statuses/{sha}","languages_url":"https://api.github.com/repos/atlasapi/atlas/languages","stargazers_url":"https://api.github.com/repos/atlasapi/atlas/stargazers","contributors_url":"https://api.github.com/repos/atlasapi/atlas/contributors","subscribers_url":"https://api.github.com/repos/atlasapi/atlas/subscribers","subscription_url":"https://api.github.com/repos/atlasapi/atlas/subscription","commits_url":"https://api.github.com/repos/atlasapi/atlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/atlasapi/atlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/atlasapi/atlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/atlasapi/atlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/atlasapi/atlas/contents/{+path}","compare_url":"https://api.github.com/repos/atlasapi/atlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atlasapi/atlas/merges","archive_url":"https://api.github.com/repos/atlasapi/atlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atlasapi/atlas/downloads","issues_url":"https://api.github.com/repos/atlasapi/atlas/issues{/number}","pulls_url":"https://api.github.com/repos/atlasapi/atlas/pulls{/number}","milestones_url":"https://api.github.com/repos/atlasapi/atlas/milestones{/number}","notifications_url":"https://api.github.com/repos/atlasapi/atlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atlasapi/atlas/labels{/name}","releases_url":"https://api.github.com/repos/atlasapi/atlas/releases{/id}","deployments_url":"https://api.github.com/repos/atlasapi/atlas/deployments","created_at":"2010-07-07T16:28:33Z","updated_at":"2016-05-18T08:49:19Z","pushed_at":"2016-05-26T10:24:22Z","git_url":"git://github.com/atlasapi/atlas.git","ssh_url":"git@github.com:atlasapi/atlas.git","clone_url":"https://github.com/atlasapi/atlas.git","svn_url":"https://github.com/atlasapi/atlas","homepage":"http://atlas.metabroadcast.com/","size":24853,"stargazers_count":28,"watchers_count":28,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":17,"forks":11,"open_issues":17,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/961"},"html":{"href":"https://github.com/atlasapi/atlas/pull/961"},"issue":{"href":"https://api.github.com/repos/atlasapi/atlas/issues/961"},"comments":{"href":"https://api.github.com/repos/atlasapi/atlas/issues/961/comments"},"review_comments":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/961/comments"},"review_comment":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atlasapi/atlas/pulls/961/commits"},"statuses":{"href":"https://api.github.com/repos/atlasapi/atlas/statuses/3aee192d68537e30252e7ad743b84cc3fdec0820"}}}}
{"actor":{"display_login":"emilssolmanis"}}