{"action":"created","comment":{"url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/comments/225842707","pull_request_review_id":165527715,"id":225842707,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTg0MjcwNw==","diff_hunk":"@@ -32,11 +32,30 @@\n   end\n \n   describe 'GET #show' do\n-    it 'shows a feedback report for an event' do\n+    context 'when event date/time is past' do\n+      it 'shows a feedback report for an event' do\n+        event.update(start_time: Date.today - 1)\n \n-      json_response = make_request(headers) { get :show, event_id: event.id, id: 0 }\n+        json_response = make_request(headers) { get :show, event_id: event.id, id: 0 }\n \n-      expect(json_response.keys).to include(:id, :description, :shown_to_guests, :report, :feedback_responses)\n+        expected_report = [{:key=>\"interest\", :label=>\"Indicated interest\", :total=>2, :male=>1, :female=>1},\n+                           {:key=>\"checked_in\", :label=>\"Checked In\", :total=>2, :male=>1, :female=>1},\n+                           {:key=>\"feedback\", :label=>\"Gave Feedback\", :total=>2, :male=>1, :female=>1},\n+                           {:key=>\"satisfaction\", :label=>\"Avg. Satisfaction (1 - 10)\", :total=>4, :male=>6, :female=>3},\n+                           {:key=>\"nps\", :label=>\"Net promoter Score (NPS)\", :total=>0.5, :male=>0.6, :female=>0.4}]\n+\n+        expect(json_response[:report]).to eq(expected_report)\n+      end\n+    end\n+\n+    context 'when event date/time is in the future' do\n+      it 'shows a feedback report for an event' do\n+        event.update(start_time: Date.today + 1)\n+\n+        json_response = make_request(headers) { get :show, event_id: event.id, id: 0 }\n+\n+        expect(json_response[:report]).to eq ('not due')","path":"spec/controllers/api/v1/web/feedback_reports_controller_spec.rb","position":29,"original_position":29,"commit_id":"25a7fc62501d0ab8a13d6eec46550b4ef99322bc","original_commit_id":"25a7fc62501d0ab8a13d6eec46550b4ef99322bc","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Lint/ParenthesesAsGroupedExpression: (...) interpreted as grouped expression.<br>Style/RedundantParentheses: Don't use parentheses around a literal.","created_at":"2018-10-17T09:12:51Z","updated_at":"2018-10-17T09:12:53Z","html_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178#discussion_r225842707","pull_request_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/comments/225842707"},"html":{"href":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178#discussion_r225842707"},"pull_request":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178","id":223524632,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNTI0NjMy","html_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178","diff_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178.diff","patch_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178.patch","issue_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/178","number":178,"state":"open","locked":false,"title":"add reviews and ratings to event","user":{"login":"innocentamadi","id":12391897,"node_id":"MDQ6VXNlcjEyMzkxODk3","avatar_url":"https://avatars3.githubusercontent.com/u/12391897?v=4","gravatar_id":"","url":"https://api.github.com/users/innocentamadi","html_url":"https://github.com/innocentamadi","followers_url":"https://api.github.com/users/innocentamadi/followers","following_url":"https://api.github.com/users/innocentamadi/following{/other_user}","gists_url":"https://api.github.com/users/innocentamadi/gists{/gist_id}","starred_url":"https://api.github.com/users/innocentamadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innocentamadi/subscriptions","organizations_url":"https://api.github.com/users/innocentamadi/orgs","repos_url":"https://api.github.com/users/innocentamadi/repos","events_url":"https://api.github.com/users/innocentamadi/events{/privacy}","received_events_url":"https://api.github.com/users/innocentamadi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-17T09:12:30Z","updated_at":"2018-10-17T09:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178/commits","review_comments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178/comments","review_comment_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/178/comments","statuses_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/statuses/25a7fc62501d0ab8a13d6eec46550b4ef99322bc","head":{"label":"TechMeetupsNG:feature/#306-event-ratings-appear-on-past-events","ref":"feature/#306-event-ratings-appear-on-past-events","sha":"25a7fc62501d0ab8a13d6eec46550b4ef99322bc","user":{"login":"TechMeetupsNG","id":33851215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODUxMjE1","avatar_url":"https://avatars0.githubusercontent.com/u/33851215?v=4","gravatar_id":"","url":"https://api.github.com/users/TechMeetupsNG","html_url":"https://github.com/TechMeetupsNG","followers_url":"https://api.github.com/users/TechMeetupsNG/followers","following_url":"https://api.github.com/users/TechMeetupsNG/following{/other_user}","gists_url":"https://api.github.com/users/TechMeetupsNG/gists{/gist_id}","starred_url":"https://api.github.com/users/TechMeetupsNG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechMeetupsNG/subscriptions","organizations_url":"https://api.github.com/users/TechMeetupsNG/orgs","repos_url":"https://api.github.com/users/TechMeetupsNG/repos","events_url":"https://api.github.com/users/TechMeetupsNG/events{/privacy}","received_events_url":"https://api.github.com/users/TechMeetupsNG/received_events","type":"Organization","site_admin":false},"repo":{"id":112009283,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwMDkyODM=","name":"techmeetupsng-backend","full_name":"TechMeetupsNG/techmeetupsng-backend","private":false,"owner":{"login":"TechMeetupsNG","id":33851215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODUxMjE1","avatar_url":"https://avatars0.githubusercontent.com/u/33851215?v=4","gravatar_id":"","url":"https://api.github.com/users/TechMeetupsNG","html_url":"https://github.com/TechMeetupsNG","followers_url":"https://api.github.com/users/TechMeetupsNG/followers","following_url":"https://api.github.com/users/TechMeetupsNG/following{/other_user}","gists_url":"https://api.github.com/users/TechMeetupsNG/gists{/gist_id}","starred_url":"https://api.github.com/users/TechMeetupsNG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechMeetupsNG/subscriptions","organizations_url":"https://api.github.com/users/TechMeetupsNG/orgs","repos_url":"https://api.github.com/users/TechMeetupsNG/repos","events_url":"https://api.github.com/users/TechMeetupsNG/events{/privacy}","received_events_url":"https://api.github.com/users/TechMeetupsNG/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend","description":null,"fork":false,"url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend","forks_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/forks","keys_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/teams","hooks_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/hooks","issue_events_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/events{/number}","events_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/events","assignees_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/assignees{/user}","branches_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/branches{/branch}","tags_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/tags","blobs_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/languages","stargazers_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/stargazers","contributors_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/contributors","subscribers_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/subscribers","subscription_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/subscription","commits_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/contents/{+path}","compare_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/merges","archive_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/downloads","issues_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues{/number}","pulls_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/labels{/name}","releases_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/releases{/id}","deployments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/deployments","created_at":"2017-11-25T14:21:20Z","updated_at":"2018-10-16T18:42:31Z","pushed_at":"2018-10-17T09:12:30Z","git_url":"git://github.com/TechMeetupsNG/techmeetupsng-backend.git","ssh_url":"git@github.com:TechMeetupsNG/techmeetupsng-backend.git","clone_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend.git","svn_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend","homepage":null,"size":2837,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"TechMeetupsNG:develop","ref":"develop","sha":"1adf2a398d9a8f0632b6d160f72bfcf74cae3cfd","user":{"login":"TechMeetupsNG","id":33851215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODUxMjE1","avatar_url":"https://avatars0.githubusercontent.com/u/33851215?v=4","gravatar_id":"","url":"https://api.github.com/users/TechMeetupsNG","html_url":"https://github.com/TechMeetupsNG","followers_url":"https://api.github.com/users/TechMeetupsNG/followers","following_url":"https://api.github.com/users/TechMeetupsNG/following{/other_user}","gists_url":"https://api.github.com/users/TechMeetupsNG/gists{/gist_id}","starred_url":"https://api.github.com/users/TechMeetupsNG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechMeetupsNG/subscriptions","organizations_url":"https://api.github.com/users/TechMeetupsNG/orgs","repos_url":"https://api.github.com/users/TechMeetupsNG/repos","events_url":"https://api.github.com/users/TechMeetupsNG/events{/privacy}","received_events_url":"https://api.github.com/users/TechMeetupsNG/received_events","type":"Organization","site_admin":false},"repo":{"id":112009283,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwMDkyODM=","name":"techmeetupsng-backend","full_name":"TechMeetupsNG/techmeetupsng-backend","private":false,"owner":{"login":"TechMeetupsNG","id":33851215,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODUxMjE1","avatar_url":"https://avatars0.githubusercontent.com/u/33851215?v=4","gravatar_id":"","url":"https://api.github.com/users/TechMeetupsNG","html_url":"https://github.com/TechMeetupsNG","followers_url":"https://api.github.com/users/TechMeetupsNG/followers","following_url":"https://api.github.com/users/TechMeetupsNG/following{/other_user}","gists_url":"https://api.github.com/users/TechMeetupsNG/gists{/gist_id}","starred_url":"https://api.github.com/users/TechMeetupsNG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechMeetupsNG/subscriptions","organizations_url":"https://api.github.com/users/TechMeetupsNG/orgs","repos_url":"https://api.github.com/users/TechMeetupsNG/repos","events_url":"https://api.github.com/users/TechMeetupsNG/events{/privacy}","received_events_url":"https://api.github.com/users/TechMeetupsNG/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend","description":null,"fork":false,"url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend","forks_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/forks","keys_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/teams","hooks_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/hooks","issue_events_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/events{/number}","events_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/events","assignees_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/assignees{/user}","branches_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/branches{/branch}","tags_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/tags","blobs_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/languages","stargazers_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/stargazers","contributors_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/contributors","subscribers_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/subscribers","subscription_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/subscription","commits_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/contents/{+path}","compare_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/merges","archive_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/downloads","issues_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues{/number}","pulls_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/labels{/name}","releases_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/releases{/id}","deployments_url":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/deployments","created_at":"2017-11-25T14:21:20Z","updated_at":"2018-10-16T18:42:31Z","pushed_at":"2018-10-17T09:12:30Z","git_url":"git://github.com/TechMeetupsNG/techmeetupsng-backend.git","ssh_url":"git@github.com:TechMeetupsNG/techmeetupsng-backend.git","clone_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend.git","svn_url":"https://github.com/TechMeetupsNG/techmeetupsng-backend","homepage":null,"size":2837,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178"},"html":{"href":"https://github.com/TechMeetupsNG/techmeetupsng-backend/pull/178"},"issue":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/178"},"comments":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/TechMeetupsNG/techmeetupsng-backend/statuses/25a7fc62501d0ab8a13d6eec46550b4ef99322bc"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}