{"action":"created","comment":{"url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/comments/231787268","pull_request_review_id":172832367,"id":231787268,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTc4NzI2OA==","diff_hunk":"@@ -9,7 +9,7 @@ def index\n   def create\n     authorize :mqtt_user\n     @home = policy_scope(Home).find(params[:home_id])\n-    @home.provision_mqtt!\n+    flash[:notice] = @home.provision_mqtt!","path":"app/controllers/admin/mqtt_users_controller.rb","position":5,"original_position":5,"commit_id":"ba1cbc7fc57201fc767496d1c0fcf72aa3695544","original_commit_id":"ba1cbc7fc57201fc767496d1c0fcf72aa3695544","user":{"login":"Br3nda","id":12266,"node_id":"MDQ6VXNlcjEyMjY2","avatar_url":"https://avatars0.githubusercontent.com/u/12266?v=4","gravatar_id":"","url":"https://api.github.com/users/Br3nda","html_url":"https://github.com/Br3nda","followers_url":"https://api.github.com/users/Br3nda/followers","following_url":"https://api.github.com/users/Br3nda/following{/other_user}","gists_url":"https://api.github.com/users/Br3nda/gists{/gist_id}","starred_url":"https://api.github.com/users/Br3nda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Br3nda/subscriptions","organizations_url":"https://api.github.com/users/Br3nda/orgs","repos_url":"https://api.github.com/users/Br3nda/repos","events_url":"https://api.github.com/users/Br3nda/events{/privacy}","received_events_url":"https://api.github.com/users/Br3nda/received_events","type":"User","site_admin":false},"body":"The flash can be passed as a param to redirects. ","created_at":"2018-11-08T07:39:36Z","updated_at":"2018-11-08T07:40:23Z","html_url":"https://github.com/WhareHauora/wharehauora-server/pull/621#discussion_r231787268","pull_request_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/comments/231787268"},"html":{"href":"https://github.com/WhareHauora/wharehauora-server/pull/621#discussion_r231787268"},"pull_request":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621"}}},"pull_request":{"url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621","id":228858226,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4ODU4MjI2","html_url":"https://github.com/WhareHauora/wharehauora-server/pull/621","diff_url":"https://github.com/WhareHauora/wharehauora-server/pull/621.diff","patch_url":"https://github.com/WhareHauora/wharehauora-server/pull/621.patch","issue_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/621","number":621,"state":"open","locked":false,"title":"Fix runtime error in provision_mqtt!","user":{"login":"JamesYang76","id":30302772,"node_id":"MDQ6VXNlcjMwMzAyNzcy","avatar_url":"https://avatars0.githubusercontent.com/u/30302772?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesYang76","html_url":"https://github.com/JamesYang76","followers_url":"https://api.github.com/users/JamesYang76/followers","following_url":"https://api.github.com/users/JamesYang76/following{/other_user}","gists_url":"https://api.github.com/users/JamesYang76/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesYang76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesYang76/subscriptions","organizations_url":"https://api.github.com/users/JamesYang76/orgs","repos_url":"https://api.github.com/users/JamesYang76/repos","events_url":"https://api.github.com/users/JamesYang76/events{/privacy}","received_events_url":"https://api.github.com/users/JamesYang76/received_events","type":"User","site_admin":false},"body":"## Description\r\n- When mac address already exist in homes and mqtt_users tables, runtime error happen in making a provision .\r\n- This happens because invalid data in production DB.\r\n\r\n## Solution\r\n- If  mac address already exists, do not make a provision\r\n- Notification to flash message \"The Mac Address #{gateway_mac_address} is already used in #{home_name} House\"\r\n","created_at":"2018-11-06T22:35:10Z","updated_at":"2018-11-08T07:40:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2c496cb0366037c14eef67cf5166f7a169a5c0c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jakebriggs","id":2532736,"node_id":"MDQ6VXNlcjI1MzI3MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/2532736?v=4","gravatar_id":"","url":"https://api.github.com/users/jakebriggs","html_url":"https://github.com/jakebriggs","followers_url":"https://api.github.com/users/jakebriggs/followers","following_url":"https://api.github.com/users/jakebriggs/following{/other_user}","gists_url":"https://api.github.com/users/jakebriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/jakebriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakebriggs/subscriptions","organizations_url":"https://api.github.com/users/jakebriggs/orgs","repos_url":"https://api.github.com/users/jakebriggs/repos","events_url":"https://api.github.com/users/jakebriggs/events{/privacy}","received_events_url":"https://api.github.com/users/jakebriggs/received_events","type":"User","site_admin":false},{"login":"raquelxmoss","id":7959274,"node_id":"MDQ6VXNlcjc5NTkyNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7959274?v=4","gravatar_id":"","url":"https://api.github.com/users/raquelxmoss","html_url":"https://github.com/raquelxmoss","followers_url":"https://api.github.com/users/raquelxmoss/followers","following_url":"https://api.github.com/users/raquelxmoss/following{/other_user}","gists_url":"https://api.github.com/users/raquelxmoss/gists{/gist_id}","starred_url":"https://api.github.com/users/raquelxmoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raquelxmoss/subscriptions","organizations_url":"https://api.github.com/users/raquelxmoss/orgs","repos_url":"https://api.github.com/users/raquelxmoss/repos","events_url":"https://api.github.com/users/raquelxmoss/events{/privacy}","received_events_url":"https://api.github.com/users/raquelxmoss/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621/commits","review_comments_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621/comments","review_comment_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/621/comments","statuses_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/statuses/ba1cbc7fc57201fc767496d1c0fcf72aa3695544","head":{"label":"JamesYang76:master","ref":"master","sha":"ba1cbc7fc57201fc767496d1c0fcf72aa3695544","user":{"login":"JamesYang76","id":30302772,"node_id":"MDQ6VXNlcjMwMzAyNzcy","avatar_url":"https://avatars0.githubusercontent.com/u/30302772?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesYang76","html_url":"https://github.com/JamesYang76","followers_url":"https://api.github.com/users/JamesYang76/followers","following_url":"https://api.github.com/users/JamesYang76/following{/other_user}","gists_url":"https://api.github.com/users/JamesYang76/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesYang76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesYang76/subscriptions","organizations_url":"https://api.github.com/users/JamesYang76/orgs","repos_url":"https://api.github.com/users/JamesYang76/repos","events_url":"https://api.github.com/users/JamesYang76/events{/privacy}","received_events_url":"https://api.github.com/users/JamesYang76/received_events","type":"User","site_admin":false},"repo":{"id":156451322,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY0NTEzMjI=","name":"wharehauora-server","full_name":"JamesYang76/wharehauora-server","private":false,"owner":{"login":"JamesYang76","id":30302772,"node_id":"MDQ6VXNlcjMwMzAyNzcy","avatar_url":"https://avatars0.githubusercontent.com/u/30302772?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesYang76","html_url":"https://github.com/JamesYang76","followers_url":"https://api.github.com/users/JamesYang76/followers","following_url":"https://api.github.com/users/JamesYang76/following{/other_user}","gists_url":"https://api.github.com/users/JamesYang76/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesYang76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesYang76/subscriptions","organizations_url":"https://api.github.com/users/JamesYang76/orgs","repos_url":"https://api.github.com/users/JamesYang76/repos","events_url":"https://api.github.com/users/JamesYang76/events{/privacy}","received_events_url":"https://api.github.com/users/JamesYang76/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JamesYang76/wharehauora-server","description":"Signup website, and REST api","fork":true,"url":"https://api.github.com/repos/JamesYang76/wharehauora-server","forks_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/forks","keys_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/teams","hooks_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/hooks","issue_events_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/issues/events{/number}","events_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/events","assignees_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/assignees{/user}","branches_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/branches{/branch}","tags_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/tags","blobs_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/languages","stargazers_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/stargazers","contributors_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/contributors","subscribers_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/subscribers","subscription_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/subscription","commits_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/contents/{+path}","compare_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/merges","archive_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/downloads","issues_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/issues{/number}","pulls_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/labels{/name}","releases_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/releases{/id}","deployments_url":"https://api.github.com/repos/JamesYang76/wharehauora-server/deployments","created_at":"2018-11-06T21:37:49Z","updated_at":"2018-11-08T06:47:52Z","pushed_at":"2018-11-08T06:47:50Z","git_url":"git://github.com/JamesYang76/wharehauora-server.git","ssh_url":"git@github.com:JamesYang76/wharehauora-server.git","clone_url":"https://github.com/JamesYang76/wharehauora-server.git","svn_url":"https://github.com/JamesYang76/wharehauora-server","homepage":"","size":6311,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WhareHauora:master","ref":"master","sha":"76d7d264e86fe29a9d38279ed987a6f10f2db24d","user":{"login":"WhareHauora","id":19439976,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDM5OTc2","avatar_url":"https://avatars1.githubusercontent.com/u/19439976?v=4","gravatar_id":"","url":"https://api.github.com/users/WhareHauora","html_url":"https://github.com/WhareHauora","followers_url":"https://api.github.com/users/WhareHauora/followers","following_url":"https://api.github.com/users/WhareHauora/following{/other_user}","gists_url":"https://api.github.com/users/WhareHauora/gists{/gist_id}","starred_url":"https://api.github.com/users/WhareHauora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhareHauora/subscriptions","organizations_url":"https://api.github.com/users/WhareHauora/orgs","repos_url":"https://api.github.com/users/WhareHauora/repos","events_url":"https://api.github.com/users/WhareHauora/events{/privacy}","received_events_url":"https://api.github.com/users/WhareHauora/received_events","type":"Organization","site_admin":false},"repo":{"id":68872031,"node_id":"MDEwOlJlcG9zaXRvcnk2ODg3MjAzMQ==","name":"wharehauora-server","full_name":"WhareHauora/wharehauora-server","private":false,"owner":{"login":"WhareHauora","id":19439976,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDM5OTc2","avatar_url":"https://avatars1.githubusercontent.com/u/19439976?v=4","gravatar_id":"","url":"https://api.github.com/users/WhareHauora","html_url":"https://github.com/WhareHauora","followers_url":"https://api.github.com/users/WhareHauora/followers","following_url":"https://api.github.com/users/WhareHauora/following{/other_user}","gists_url":"https://api.github.com/users/WhareHauora/gists{/gist_id}","starred_url":"https://api.github.com/users/WhareHauora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhareHauora/subscriptions","organizations_url":"https://api.github.com/users/WhareHauora/orgs","repos_url":"https://api.github.com/users/WhareHauora/repos","events_url":"https://api.github.com/users/WhareHauora/events{/privacy}","received_events_url":"https://api.github.com/users/WhareHauora/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WhareHauora/wharehauora-server","description":"Signup website, and REST api","fork":false,"url":"https://api.github.com/repos/WhareHauora/wharehauora-server","forks_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/forks","keys_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/teams","hooks_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/hooks","issue_events_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/events{/number}","events_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/events","assignees_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/assignees{/user}","branches_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/branches{/branch}","tags_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/tags","blobs_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/statuses/{sha}","languages_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/languages","stargazers_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/stargazers","contributors_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/contributors","subscribers_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/subscribers","subscription_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/subscription","commits_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/contents/{+path}","compare_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/merges","archive_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/downloads","issues_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues{/number}","pulls_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls{/number}","milestones_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/milestones{/number}","notifications_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/labels{/name}","releases_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/releases{/id}","deployments_url":"https://api.github.com/repos/WhareHauora/wharehauora-server/deployments","created_at":"2016-09-22T01:21:01Z","updated_at":"2018-11-05T01:38:53Z","pushed_at":"2018-11-08T06:47:51Z","git_url":"git://github.com/WhareHauora/wharehauora-server.git","ssh_url":"git@github.com:WhareHauora/wharehauora-server.git","clone_url":"https://github.com/WhareHauora/wharehauora-server.git","svn_url":"https://github.com/WhareHauora/wharehauora-server","homepage":"","size":6299,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":17,"open_issues":49,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621"},"html":{"href":"https://github.com/WhareHauora/wharehauora-server/pull/621"},"issue":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/621"},"comments":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/WhareHauora/wharehauora-server/statuses/ba1cbc7fc57201fc767496d1c0fcf72aa3695544"}},"author_association":"NONE"}}
{"actor":{"display_login":"Br3nda"}}