{"action":"created","comment":{"url":"https://api.github.com/repos/andela/orophin-rc/pulls/comments/153178552","pull_request_review_id":79145468,"id":153178552,"diff_hunk":"@@ -0,0 +1,16 @@\n+import { ProductRatings } from \"/lib/collections\";\n+import { Meteor } from \"meteor/meteor\";\n+import { check } from \"meteor/check\";\n+\n+/**\n+ * productRatings publication\n+ * @param {String} productId - id of the current product\n+ * @return {Object} return product cursor\n+ */\n+Meteor.publish(\"ProductRatings\", function (productId) {\n+  check(productId, String);\n+  if (productId === \"\") {\n+    return this.ready();\n+  }\n+  return ProductRatings.find({ productId: productId  });","path":"server/publications/collections/ratings.js","position":15,"original_position":15,"commit_id":"dff94f0e9b839bd5dadafc4a6adf2b740b7dc0cb","original_commit_id":"dff94f0e9b839bd5dadafc4a6adf2b740b7dc0cb","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected property shorthand                          object-shorthand<br>Multiple spaces found before '}'                     no-multi-spaces","created_at":"2017-11-27T12:06:34Z","updated_at":"2017-11-27T12:06:34Z","html_url":"https://github.com/andela/orophin-rc/pull/5#discussion_r153178552","pull_request_url":"https://api.github.com/repos/andela/orophin-rc/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/comments/153178552"},"html":{"href":"https://github.com/andela/orophin-rc/pull/5#discussion_r153178552"},"pull_request":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/andela/orophin-rc/pulls/5","id":154790669,"html_url":"https://github.com/andela/orophin-rc/pull/5","diff_url":"https://github.com/andela/orophin-rc/pull/5.diff","patch_url":"https://github.com/andela/orophin-rc/pull/5.patch","issue_url":"https://api.github.com/repos/andela/orophin-rc/issues/5","number":5,"state":"open","locked":false,"title":"Feat/ratings and reviews/152798583","user":{"login":"codrex","id":27497967,"avatar_url":"https://avatars2.githubusercontent.com/u/27497967?v=4","gravatar_id":"","url":"https://api.github.com/users/codrex","html_url":"https://github.com/codrex","followers_url":"https://api.github.com/users/codrex/followers","following_url":"https://api.github.com/users/codrex/following{/other_user}","gists_url":"https://api.github.com/users/codrex/gists{/gist_id}","starred_url":"https://api.github.com/users/codrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codrex/subscriptions","organizations_url":"https://api.github.com/users/codrex/orgs","repos_url":"https://api.github.com/users/codrex/repos","events_url":"https://api.github.com/users/codrex/events{/privacy}","received_events_url":"https://api.github.com/users/codrex/received_events","type":"User","site_admin":false},"body":"## What does this PR do?\r\n- Implement ratings and review\r\n## Description of Task to be completed?\r\n- create schemas and collections for reviews and ratings\r\n- write Meteor methods for reviews and ratings\r\n- create react components for reviews and ratings\r\n- connect reviews and rating components to the backend in order to view and manipulate reviews and rating data that is stored in the backend.\r\n## How should this be manually tested?\r\n- clone repo\r\n- checkout branch `feat/ratings-and-reviews/152798583 `\r\n- start app, run `reaction`\r\n- navigate to the product display page\r\n ## Any background context you want to provide?\r\nN/A\r\n## What are the relevant pivotal tracker stories?\r\nhttps://www.pivotaltracker.com/story/show/152798583\r\n## Screenshots (if appropriate)\r\n<img width=\"639\" alt=\"screen shot 2017-11-27 at 12 51 36 pm\" src=\"https://user-images.githubusercontent.com/27497967/33265413-ed82d770-d371-11e7-9a3e-dfed90627fde.png\">\r\n<img width=\"592\" alt=\"screen shot 2017-11-27 at 12 52 01 pm\" src=\"https://user-images.githubusercontent.com/27497967/33265414-edbc4a3c-d371-11e7-9f1c-6d7b9582b2eb.png\">\r\n<img width=\"801\" alt=\"screen shot 2017-11-27 at 12 52 35 pm\" src=\"https://user-images.githubusercontent.com/27497967/33265415-ee2e4e34-d371-11e7-9621-bbf98a89b1f1.png\">\r\n\r\n#### Questions:","created_at":"2017-11-27T11:55:17Z","updated_at":"2017-11-27T12:06:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e20a77d510c72b7fc4553c6574714d5e6977330c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andela-ooduye","id":11836416,"avatar_url":"https://avatars3.githubusercontent.com/u/11836416?v=4","gravatar_id":"","url":"https://api.github.com/users/andela-ooduye","html_url":"https://github.com/andela-ooduye","followers_url":"https://api.github.com/users/andela-ooduye/followers","following_url":"https://api.github.com/users/andela-ooduye/following{/other_user}","gists_url":"https://api.github.com/users/andela-ooduye/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ooduye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ooduye/subscriptions","organizations_url":"https://api.github.com/users/andela-ooduye/orgs","repos_url":"https://api.github.com/users/andela-ooduye/repos","events_url":"https://api.github.com/users/andela-ooduye/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ooduye/received_events","type":"User","site_admin":false},{"login":"Ruqoyah","id":24945610,"avatar_url":"https://avatars0.githubusercontent.com/u/24945610?v=4","gravatar_id":"","url":"https://api.github.com/users/Ruqoyah","html_url":"https://github.com/Ruqoyah","followers_url":"https://api.github.com/users/Ruqoyah/followers","following_url":"https://api.github.com/users/Ruqoyah/following{/other_user}","gists_url":"https://api.github.com/users/Ruqoyah/gists{/gist_id}","starred_url":"https://api.github.com/users/Ruqoyah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ruqoyah/subscriptions","organizations_url":"https://api.github.com/users/Ruqoyah/orgs","repos_url":"https://api.github.com/users/Ruqoyah/repos","events_url":"https://api.github.com/users/Ruqoyah/events{/privacy}","received_events_url":"https://api.github.com/users/Ruqoyah/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/orophin-rc/pulls/5/commits","review_comments_url":"https://api.github.com/repos/andela/orophin-rc/pulls/5/comments","review_comment_url":"https://api.github.com/repos/andela/orophin-rc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/orophin-rc/issues/5/comments","statuses_url":"https://api.github.com/repos/andela/orophin-rc/statuses/dff94f0e9b839bd5dadafc4a6adf2b740b7dc0cb","head":{"label":"andela:feat/ratings-and-reviews/152798583","ref":"feat/ratings-and-reviews/152798583","sha":"dff94f0e9b839bd5dadafc4a6adf2b740b7dc0cb","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":110507447,"name":"orophin-rc","full_name":"andela/orophin-rc","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/orophin-rc","description":null,"fork":false,"url":"https://api.github.com/repos/andela/orophin-rc","forks_url":"https://api.github.com/repos/andela/orophin-rc/forks","keys_url":"https://api.github.com/repos/andela/orophin-rc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/orophin-rc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/orophin-rc/teams","hooks_url":"https://api.github.com/repos/andela/orophin-rc/hooks","issue_events_url":"https://api.github.com/repos/andela/orophin-rc/issues/events{/number}","events_url":"https://api.github.com/repos/andela/orophin-rc/events","assignees_url":"https://api.github.com/repos/andela/orophin-rc/assignees{/user}","branches_url":"https://api.github.com/repos/andela/orophin-rc/branches{/branch}","tags_url":"https://api.github.com/repos/andela/orophin-rc/tags","blobs_url":"https://api.github.com/repos/andela/orophin-rc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/orophin-rc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/orophin-rc/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/orophin-rc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/orophin-rc/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/orophin-rc/languages","stargazers_url":"https://api.github.com/repos/andela/orophin-rc/stargazers","contributors_url":"https://api.github.com/repos/andela/orophin-rc/contributors","subscribers_url":"https://api.github.com/repos/andela/orophin-rc/subscribers","subscription_url":"https://api.github.com/repos/andela/orophin-rc/subscription","commits_url":"https://api.github.com/repos/andela/orophin-rc/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/orophin-rc/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/orophin-rc/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/orophin-rc/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/orophin-rc/contents/{+path}","compare_url":"https://api.github.com/repos/andela/orophin-rc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/orophin-rc/merges","archive_url":"https://api.github.com/repos/andela/orophin-rc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/orophin-rc/downloads","issues_url":"https://api.github.com/repos/andela/orophin-rc/issues{/number}","pulls_url":"https://api.github.com/repos/andela/orophin-rc/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/orophin-rc/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/orophin-rc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/orophin-rc/labels{/name}","releases_url":"https://api.github.com/repos/andela/orophin-rc/releases{/id}","deployments_url":"https://api.github.com/repos/andela/orophin-rc/deployments","created_at":"2017-11-13T06:11:52Z","updated_at":"2017-11-13T09:32:17Z","pushed_at":"2017-11-27T12:06:18Z","git_url":"git://github.com/andela/orophin-rc.git","ssh_url":"git@github.com:andela/orophin-rc.git","clone_url":"https://github.com/andela/orophin-rc.git","svn_url":"https://github.com/andela/orophin-rc","homepage":null,"size":38575,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"efe64c6d3b292ce8cd9344bf7daa76db4f4fe1ee","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":110507447,"name":"orophin-rc","full_name":"andela/orophin-rc","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/orophin-rc","description":null,"fork":false,"url":"https://api.github.com/repos/andela/orophin-rc","forks_url":"https://api.github.com/repos/andela/orophin-rc/forks","keys_url":"https://api.github.com/repos/andela/orophin-rc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/orophin-rc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/orophin-rc/teams","hooks_url":"https://api.github.com/repos/andela/orophin-rc/hooks","issue_events_url":"https://api.github.com/repos/andela/orophin-rc/issues/events{/number}","events_url":"https://api.github.com/repos/andela/orophin-rc/events","assignees_url":"https://api.github.com/repos/andela/orophin-rc/assignees{/user}","branches_url":"https://api.github.com/repos/andela/orophin-rc/branches{/branch}","tags_url":"https://api.github.com/repos/andela/orophin-rc/tags","blobs_url":"https://api.github.com/repos/andela/orophin-rc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/orophin-rc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/orophin-rc/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/orophin-rc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/orophin-rc/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/orophin-rc/languages","stargazers_url":"https://api.github.com/repos/andela/orophin-rc/stargazers","contributors_url":"https://api.github.com/repos/andela/orophin-rc/contributors","subscribers_url":"https://api.github.com/repos/andela/orophin-rc/subscribers","subscription_url":"https://api.github.com/repos/andela/orophin-rc/subscription","commits_url":"https://api.github.com/repos/andela/orophin-rc/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/orophin-rc/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/orophin-rc/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/orophin-rc/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/orophin-rc/contents/{+path}","compare_url":"https://api.github.com/repos/andela/orophin-rc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/orophin-rc/merges","archive_url":"https://api.github.com/repos/andela/orophin-rc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/orophin-rc/downloads","issues_url":"https://api.github.com/repos/andela/orophin-rc/issues{/number}","pulls_url":"https://api.github.com/repos/andela/orophin-rc/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/orophin-rc/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/orophin-rc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/orophin-rc/labels{/name}","releases_url":"https://api.github.com/repos/andela/orophin-rc/releases{/id}","deployments_url":"https://api.github.com/repos/andela/orophin-rc/deployments","created_at":"2017-11-13T06:11:52Z","updated_at":"2017-11-13T09:32:17Z","pushed_at":"2017-11-27T12:06:18Z","git_url":"git://github.com/andela/orophin-rc.git","ssh_url":"git@github.com:andela/orophin-rc.git","clone_url":"https://github.com/andela/orophin-rc.git","svn_url":"https://github.com/andela/orophin-rc","homepage":null,"size":38575,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/5"},"html":{"href":"https://github.com/andela/orophin-rc/pull/5"},"issue":{"href":"https://api.github.com/repos/andela/orophin-rc/issues/5"},"comments":{"href":"https://api.github.com/repos/andela/orophin-rc/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/orophin-rc/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/andela/orophin-rc/statuses/dff94f0e9b839bd5dadafc4a6adf2b740b7dc0cb"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}