{"action":"created","comment":{"url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/comments/94023648","pull_request_review_id":14553518,"id":94023648,"diff_hunk":"@@ -0,0 +1,15 @@\n+import { Meteor } from 'meteor/meteor';\n+import { Organizations } from '/organizations/collection';\n+import { OrganizationApis } from '../';\n+\n+Meteor.publish('singleOrganizationApis', (slug) => {\n+  let organizationApis = {};\n+  // Get organization\n+  const organization = Organizations.findOne({ slug });\n+  // Check organization exist\n+  if (organization) {\n+    organizationApis = OrganizationApis.find({ organizationId: organization._id });","path":"organization_apis/collection/server/publications.js","position":11,"original_position":11,"commit_id":"83af7a70ba3b9f7a060f6fee850be3dbaa7063fd","original_commit_id":"83af7a70ba3b9f7a060f6fee850be3dbaa7063fd","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"body":"Passing in the `organizationId` as an argument would simplify this line:\r\n\r\n```\r\norganizationApis = OrganizationApis.find({ organizationId });\r\n```","created_at":"2016-12-28T11:46:54Z","updated_at":"2016-12-28T11:46:54Z","html_url":"https://github.com/Digipalvelutehdas/APIKA/pull/194#discussion_r94023648","pull_request_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/comments/94023648"},"html":{"href":"https://github.com/Digipalvelutehdas/APIKA/pull/194#discussion_r94023648"},"pull_request":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194","id":99539403,"html_url":"https://github.com/Digipalvelutehdas/APIKA/pull/194","diff_url":"https://github.com/Digipalvelutehdas/APIKA/pull/194.diff","patch_url":"https://github.com/Digipalvelutehdas/APIKA/pull/194.patch","issue_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/194","number":194,"state":"open","locked":false,"title":"Feature/organization apis publication","user":{"login":"jykae","id":293452,"avatar_url":"https://avatars.githubusercontent.com/u/293452?v=3","gravatar_id":"","url":"https://api.github.com/users/jykae","html_url":"https://github.com/jykae","followers_url":"https://api.github.com/users/jykae/followers","following_url":"https://api.github.com/users/jykae/following{/other_user}","gists_url":"https://api.github.com/users/jykae/gists{/gist_id}","starred_url":"https://api.github.com/users/jykae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jykae/subscriptions","organizations_url":"https://api.github.com/users/jykae/orgs","repos_url":"https://api.github.com/users/jykae/repos","events_url":"https://api.github.com/users/jykae/events{/privacy}","received_events_url":"https://api.github.com/users/jykae/received_events","type":"User","site_admin":false},"body":"Closes #193 ","created_at":"2016-12-28T11:38:56Z","updated_at":"2016-12-28T11:46:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61dbece93598a05b6d046fb90cd936cd8d04780a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194/commits","review_comments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194/comments","review_comment_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/194/comments","statuses_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/statuses/83af7a70ba3b9f7a060f6fee850be3dbaa7063fd","head":{"label":"Digipalvelutehdas:feature/organization-apis-publication","ref":"feature/organization-apis-publication","sha":"83af7a70ba3b9f7a060f6fee850be3dbaa7063fd","user":{"login":"Digipalvelutehdas","id":12421888,"avatar_url":"https://avatars.githubusercontent.com/u/12421888?v=3","gravatar_id":"","url":"https://api.github.com/users/Digipalvelutehdas","html_url":"https://github.com/Digipalvelutehdas","followers_url":"https://api.github.com/users/Digipalvelutehdas/followers","following_url":"https://api.github.com/users/Digipalvelutehdas/following{/other_user}","gists_url":"https://api.github.com/users/Digipalvelutehdas/gists{/gist_id}","starred_url":"https://api.github.com/users/Digipalvelutehdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Digipalvelutehdas/subscriptions","organizations_url":"https://api.github.com/users/Digipalvelutehdas/orgs","repos_url":"https://api.github.com/users/Digipalvelutehdas/repos","events_url":"https://api.github.com/users/Digipalvelutehdas/events{/privacy}","received_events_url":"https://api.github.com/users/Digipalvelutehdas/received_events","type":"Organization","site_admin":false},"repo":{"id":46119242,"name":"APIKA","full_name":"Digipalvelutehdas/APIKA","owner":{"login":"Digipalvelutehdas","id":12421888,"avatar_url":"https://avatars.githubusercontent.com/u/12421888?v=3","gravatar_id":"","url":"https://api.github.com/users/Digipalvelutehdas","html_url":"https://github.com/Digipalvelutehdas","followers_url":"https://api.github.com/users/Digipalvelutehdas/followers","following_url":"https://api.github.com/users/Digipalvelutehdas/following{/other_user}","gists_url":"https://api.github.com/users/Digipalvelutehdas/gists{/gist_id}","starred_url":"https://api.github.com/users/Digipalvelutehdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Digipalvelutehdas/subscriptions","organizations_url":"https://api.github.com/users/Digipalvelutehdas/orgs","repos_url":"https://api.github.com/users/Digipalvelutehdas/repos","events_url":"https://api.github.com/users/Digipalvelutehdas/events{/privacy}","received_events_url":"https://api.github.com/users/Digipalvelutehdas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Digipalvelutehdas/APIKA","description":"APIKA dashboard","fork":false,"url":"https://api.github.com/repos/Digipalvelutehdas/APIKA","forks_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/forks","keys_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/teams","hooks_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/hooks","issue_events_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/events{/number}","events_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/events","assignees_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/assignees{/user}","branches_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/branches{/branch}","tags_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/tags","blobs_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/refs{/sha}","trees_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/statuses/{sha}","languages_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/languages","stargazers_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/stargazers","contributors_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/contributors","subscribers_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/subscribers","subscription_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/subscription","commits_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/commits{/sha}","git_commits_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/commits{/sha}","comments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/comments{/number}","issue_comment_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/comments{/number}","contents_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/contents/{+path}","compare_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/merges","archive_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/downloads","issues_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues{/number}","pulls_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls{/number}","milestones_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/milestones{/number}","notifications_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/labels{/name}","releases_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/releases{/id}","deployments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/deployments","created_at":"2015-11-13T11:54:50Z","updated_at":"2016-11-22T08:35:06Z","pushed_at":"2016-12-28T11:38:57Z","git_url":"git://github.com/Digipalvelutehdas/APIKA.git","ssh_url":"git@github.com:Digipalvelutehdas/APIKA.git","clone_url":"https://github.com/Digipalvelutehdas/APIKA.git","svn_url":"https://github.com/Digipalvelutehdas/APIKA","homepage":null,"size":19879,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":86,"forks":2,"open_issues":86,"watchers":1,"default_branch":"develop"}},"base":{"label":"Digipalvelutehdas:develop","ref":"develop","sha":"150c6ed31fcf8b5ea40c8ddaf6910a4e8210c231","user":{"login":"Digipalvelutehdas","id":12421888,"avatar_url":"https://avatars.githubusercontent.com/u/12421888?v=3","gravatar_id":"","url":"https://api.github.com/users/Digipalvelutehdas","html_url":"https://github.com/Digipalvelutehdas","followers_url":"https://api.github.com/users/Digipalvelutehdas/followers","following_url":"https://api.github.com/users/Digipalvelutehdas/following{/other_user}","gists_url":"https://api.github.com/users/Digipalvelutehdas/gists{/gist_id}","starred_url":"https://api.github.com/users/Digipalvelutehdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Digipalvelutehdas/subscriptions","organizations_url":"https://api.github.com/users/Digipalvelutehdas/orgs","repos_url":"https://api.github.com/users/Digipalvelutehdas/repos","events_url":"https://api.github.com/users/Digipalvelutehdas/events{/privacy}","received_events_url":"https://api.github.com/users/Digipalvelutehdas/received_events","type":"Organization","site_admin":false},"repo":{"id":46119242,"name":"APIKA","full_name":"Digipalvelutehdas/APIKA","owner":{"login":"Digipalvelutehdas","id":12421888,"avatar_url":"https://avatars.githubusercontent.com/u/12421888?v=3","gravatar_id":"","url":"https://api.github.com/users/Digipalvelutehdas","html_url":"https://github.com/Digipalvelutehdas","followers_url":"https://api.github.com/users/Digipalvelutehdas/followers","following_url":"https://api.github.com/users/Digipalvelutehdas/following{/other_user}","gists_url":"https://api.github.com/users/Digipalvelutehdas/gists{/gist_id}","starred_url":"https://api.github.com/users/Digipalvelutehdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Digipalvelutehdas/subscriptions","organizations_url":"https://api.github.com/users/Digipalvelutehdas/orgs","repos_url":"https://api.github.com/users/Digipalvelutehdas/repos","events_url":"https://api.github.com/users/Digipalvelutehdas/events{/privacy}","received_events_url":"https://api.github.com/users/Digipalvelutehdas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Digipalvelutehdas/APIKA","description":"APIKA dashboard","fork":false,"url":"https://api.github.com/repos/Digipalvelutehdas/APIKA","forks_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/forks","keys_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/teams","hooks_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/hooks","issue_events_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/events{/number}","events_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/events","assignees_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/assignees{/user}","branches_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/branches{/branch}","tags_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/tags","blobs_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/refs{/sha}","trees_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/statuses/{sha}","languages_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/languages","stargazers_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/stargazers","contributors_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/contributors","subscribers_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/subscribers","subscription_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/subscription","commits_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/commits{/sha}","git_commits_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/git/commits{/sha}","comments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/comments{/number}","issue_comment_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/comments{/number}","contents_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/contents/{+path}","compare_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/merges","archive_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/downloads","issues_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues{/number}","pulls_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls{/number}","milestones_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/milestones{/number}","notifications_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/labels{/name}","releases_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/releases{/id}","deployments_url":"https://api.github.com/repos/Digipalvelutehdas/APIKA/deployments","created_at":"2015-11-13T11:54:50Z","updated_at":"2016-11-22T08:35:06Z","pushed_at":"2016-12-28T11:38:57Z","git_url":"git://github.com/Digipalvelutehdas/APIKA.git","ssh_url":"git@github.com:Digipalvelutehdas/APIKA.git","clone_url":"https://github.com/Digipalvelutehdas/APIKA.git","svn_url":"https://github.com/Digipalvelutehdas/APIKA","homepage":null,"size":19879,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":86,"forks":2,"open_issues":86,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194"},"html":{"href":"https://github.com/Digipalvelutehdas/APIKA/pull/194"},"issue":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/194"},"comments":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/Digipalvelutehdas/APIKA/statuses/83af7a70ba3b9f7a060f6fee850be3dbaa7063fd"}}}}
{"actor":{"display_login":"brylie"}}