{"action":"created","comment":{"url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/comments/32543523","id":32543523,"diff_hunk":"@@ -1,21 +1,34 @@\n 'use strict';\n-angular.module('HomeCooked.services')\n-  .factory('HCMessaging', ['$log', '$ionicLoading', '$ionicPopup',\n-    function($log, $ionicLoading, $ionicPopup) {\n-      var showError = function(error) {\n-        $ionicLoading.hide();\n-        $log.error(error);\n-        $ionicPopup.alert({\n-          title: 'Sorry, something went wrong',\n-          template: '<p align=\"center\">' +\n-          'Sorry for the inconvenience.<br><a ng-hide=\"showmore\" href ng-click=\"showmore=true\">show more</a>' +\n-          '<p>' +\n-          '<pre ng-show=\"showmore\" style=\"font-size: x-small\"><code>' +\n-          JSON.stringify(error, null, '  ') + '</code></pre>'\n-        });\n-      };\n-      return {\n-        showError: showError\n-      };\n-    }]\n-);\n+(function () {","path":"app/scripts/hc-messaging.service.js","position":22,"original_position":22,"commit_id":"c5778fd96bdbec9f071e9aa6927094a42e445250","original_commit_id":"c5778fd96bdbec9f071e9aa6927094a42e445250","user":{"login":"dbaq","id":1867703,"avatar_url":"https://avatars.githubusercontent.com/u/1867703?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaq","html_url":"https://github.com/dbaq","followers_url":"https://api.github.com/users/dbaq/followers","following_url":"https://api.github.com/users/dbaq/following{/other_user}","gists_url":"https://api.github.com/users/dbaq/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaq/subscriptions","organizations_url":"https://api.github.com/users/dbaq/orgs","repos_url":"https://api.github.com/users/dbaq/repos","events_url":"https://api.github.com/users/dbaq/events{/privacy}","received_events_url":"https://api.github.com/users/dbaq/received_events","type":"User","site_admin":false},"body":"same here for use strict","created_at":"2015-06-16T16:57:33Z","updated_at":"2015-06-16T16:57:33Z","html_url":"https://github.com/hmecookd/HomeCooked/pull/36#discussion_r32543523","pull_request_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/comments/32543523"},"html":{"href":"https://github.com/hmecookd/HomeCooked/pull/36#discussion_r32543523"},"pull_request":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36","id":37764055,"html_url":"https://github.com/hmecookd/HomeCooked/pull/36","diff_url":"https://github.com/hmecookd/HomeCooked/pull/36.diff","patch_url":"https://github.com/hmecookd/HomeCooked/pull/36.patch","issue_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/36","number":36,"state":"open","locked":false,"title":"Feature/delete dish","user":{"login":"valdrinkoshi","id":6173664,"avatar_url":"https://avatars.githubusercontent.com/u/6173664?v=3","gravatar_id":"","url":"https://api.github.com/users/valdrinkoshi","html_url":"https://github.com/valdrinkoshi","followers_url":"https://api.github.com/users/valdrinkoshi/followers","following_url":"https://api.github.com/users/valdrinkoshi/following{/other_user}","gists_url":"https://api.github.com/users/valdrinkoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/valdrinkoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valdrinkoshi/subscriptions","organizations_url":"https://api.github.com/users/valdrinkoshi/orgs","repos_url":"https://api.github.com/users/valdrinkoshi/repos","events_url":"https://api.github.com/users/valdrinkoshi/events{/privacy}","received_events_url":"https://api.github.com/users/valdrinkoshi/received_events","type":"User","site_admin":false},"body":"Currently BE side allows unconditional delete of dishes, but this PR handles also the case when we have an error, notifying the user","created_at":"2015-06-16T06:45:30Z","updated_at":"2015-06-16T16:57:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71889b3de60e5121b49abbc24471fc33d76e2f13","assignee":{"login":"dbaq","id":1867703,"avatar_url":"https://avatars.githubusercontent.com/u/1867703?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaq","html_url":"https://github.com/dbaq","followers_url":"https://api.github.com/users/dbaq/followers","following_url":"https://api.github.com/users/dbaq/following{/other_user}","gists_url":"https://api.github.com/users/dbaq/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaq/subscriptions","organizations_url":"https://api.github.com/users/dbaq/orgs","repos_url":"https://api.github.com/users/dbaq/repos","events_url":"https://api.github.com/users/dbaq/events{/privacy}","received_events_url":"https://api.github.com/users/dbaq/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36/commits","review_comments_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36/comments","review_comment_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/36/comments","statuses_url":"https://api.github.com/repos/hmecookd/HomeCooked/statuses/c5778fd96bdbec9f071e9aa6927094a42e445250","head":{"label":"hmecookd:feature/delete-dish","ref":"feature/delete-dish","sha":"c5778fd96bdbec9f071e9aa6927094a42e445250","user":{"login":"hmecookd","id":9409781,"avatar_url":"https://avatars.githubusercontent.com/u/9409781?v=3","gravatar_id":"","url":"https://api.github.com/users/hmecookd","html_url":"https://github.com/hmecookd","followers_url":"https://api.github.com/users/hmecookd/followers","following_url":"https://api.github.com/users/hmecookd/following{/other_user}","gists_url":"https://api.github.com/users/hmecookd/gists{/gist_id}","starred_url":"https://api.github.com/users/hmecookd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmecookd/subscriptions","organizations_url":"https://api.github.com/users/hmecookd/orgs","repos_url":"https://api.github.com/users/hmecookd/repos","events_url":"https://api.github.com/users/hmecookd/events{/privacy}","received_events_url":"https://api.github.com/users/hmecookd/received_events","type":"Organization","site_admin":false},"repo":{"id":25857378,"name":"HomeCooked","full_name":"hmecookd/HomeCooked","owner":{"login":"hmecookd","id":9409781,"avatar_url":"https://avatars.githubusercontent.com/u/9409781?v=3","gravatar_id":"","url":"https://api.github.com/users/hmecookd","html_url":"https://github.com/hmecookd","followers_url":"https://api.github.com/users/hmecookd/followers","following_url":"https://api.github.com/users/hmecookd/following{/other_user}","gists_url":"https://api.github.com/users/hmecookd/gists{/gist_id}","starred_url":"https://api.github.com/users/hmecookd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmecookd/subscriptions","organizations_url":"https://api.github.com/users/hmecookd/orgs","repos_url":"https://api.github.com/users/hmecookd/repos","events_url":"https://api.github.com/users/hmecookd/events{/privacy}","received_events_url":"https://api.github.com/users/hmecookd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmecookd/HomeCooked","description":"","fork":false,"url":"https://api.github.com/repos/hmecookd/HomeCooked","forks_url":"https://api.github.com/repos/hmecookd/HomeCooked/forks","keys_url":"https://api.github.com/repos/hmecookd/HomeCooked/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmecookd/HomeCooked/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmecookd/HomeCooked/teams","hooks_url":"https://api.github.com/repos/hmecookd/HomeCooked/hooks","issue_events_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/events{/number}","events_url":"https://api.github.com/repos/hmecookd/HomeCooked/events","assignees_url":"https://api.github.com/repos/hmecookd/HomeCooked/assignees{/user}","branches_url":"https://api.github.com/repos/hmecookd/HomeCooked/branches{/branch}","tags_url":"https://api.github.com/repos/hmecookd/HomeCooked/tags","blobs_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmecookd/HomeCooked/statuses/{sha}","languages_url":"https://api.github.com/repos/hmecookd/HomeCooked/languages","stargazers_url":"https://api.github.com/repos/hmecookd/HomeCooked/stargazers","contributors_url":"https://api.github.com/repos/hmecookd/HomeCooked/contributors","subscribers_url":"https://api.github.com/repos/hmecookd/HomeCooked/subscribers","subscription_url":"https://api.github.com/repos/hmecookd/HomeCooked/subscription","commits_url":"https://api.github.com/repos/hmecookd/HomeCooked/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmecookd/HomeCooked/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmecookd/HomeCooked/contents/{+path}","compare_url":"https://api.github.com/repos/hmecookd/HomeCooked/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmecookd/HomeCooked/merges","archive_url":"https://api.github.com/repos/hmecookd/HomeCooked/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmecookd/HomeCooked/downloads","issues_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues{/number}","pulls_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls{/number}","milestones_url":"https://api.github.com/repos/hmecookd/HomeCooked/milestones{/number}","notifications_url":"https://api.github.com/repos/hmecookd/HomeCooked/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmecookd/HomeCooked/labels{/name}","releases_url":"https://api.github.com/repos/hmecookd/HomeCooked/releases{/id}","created_at":"2014-10-28T07:14:46Z","updated_at":"2015-06-16T05:17:13Z","pushed_at":"2015-06-16T07:24:31Z","git_url":"git://github.com/hmecookd/HomeCooked.git","ssh_url":"git@github.com:hmecookd/HomeCooked.git","clone_url":"https://github.com/hmecookd/HomeCooked.git","svn_url":"https://github.com/hmecookd/HomeCooked","homepage":"","size":6404,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":2,"default_branch":"master"}},"base":{"label":"hmecookd:master","ref":"master","sha":"cb7eed4ff99d66467da21872419cc399acaf004b","user":{"login":"hmecookd","id":9409781,"avatar_url":"https://avatars.githubusercontent.com/u/9409781?v=3","gravatar_id":"","url":"https://api.github.com/users/hmecookd","html_url":"https://github.com/hmecookd","followers_url":"https://api.github.com/users/hmecookd/followers","following_url":"https://api.github.com/users/hmecookd/following{/other_user}","gists_url":"https://api.github.com/users/hmecookd/gists{/gist_id}","starred_url":"https://api.github.com/users/hmecookd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmecookd/subscriptions","organizations_url":"https://api.github.com/users/hmecookd/orgs","repos_url":"https://api.github.com/users/hmecookd/repos","events_url":"https://api.github.com/users/hmecookd/events{/privacy}","received_events_url":"https://api.github.com/users/hmecookd/received_events","type":"Organization","site_admin":false},"repo":{"id":25857378,"name":"HomeCooked","full_name":"hmecookd/HomeCooked","owner":{"login":"hmecookd","id":9409781,"avatar_url":"https://avatars.githubusercontent.com/u/9409781?v=3","gravatar_id":"","url":"https://api.github.com/users/hmecookd","html_url":"https://github.com/hmecookd","followers_url":"https://api.github.com/users/hmecookd/followers","following_url":"https://api.github.com/users/hmecookd/following{/other_user}","gists_url":"https://api.github.com/users/hmecookd/gists{/gist_id}","starred_url":"https://api.github.com/users/hmecookd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmecookd/subscriptions","organizations_url":"https://api.github.com/users/hmecookd/orgs","repos_url":"https://api.github.com/users/hmecookd/repos","events_url":"https://api.github.com/users/hmecookd/events{/privacy}","received_events_url":"https://api.github.com/users/hmecookd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmecookd/HomeCooked","description":"","fork":false,"url":"https://api.github.com/repos/hmecookd/HomeCooked","forks_url":"https://api.github.com/repos/hmecookd/HomeCooked/forks","keys_url":"https://api.github.com/repos/hmecookd/HomeCooked/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmecookd/HomeCooked/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmecookd/HomeCooked/teams","hooks_url":"https://api.github.com/repos/hmecookd/HomeCooked/hooks","issue_events_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/events{/number}","events_url":"https://api.github.com/repos/hmecookd/HomeCooked/events","assignees_url":"https://api.github.com/repos/hmecookd/HomeCooked/assignees{/user}","branches_url":"https://api.github.com/repos/hmecookd/HomeCooked/branches{/branch}","tags_url":"https://api.github.com/repos/hmecookd/HomeCooked/tags","blobs_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmecookd/HomeCooked/statuses/{sha}","languages_url":"https://api.github.com/repos/hmecookd/HomeCooked/languages","stargazers_url":"https://api.github.com/repos/hmecookd/HomeCooked/stargazers","contributors_url":"https://api.github.com/repos/hmecookd/HomeCooked/contributors","subscribers_url":"https://api.github.com/repos/hmecookd/HomeCooked/subscribers","subscription_url":"https://api.github.com/repos/hmecookd/HomeCooked/subscription","commits_url":"https://api.github.com/repos/hmecookd/HomeCooked/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmecookd/HomeCooked/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmecookd/HomeCooked/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmecookd/HomeCooked/contents/{+path}","compare_url":"https://api.github.com/repos/hmecookd/HomeCooked/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmecookd/HomeCooked/merges","archive_url":"https://api.github.com/repos/hmecookd/HomeCooked/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmecookd/HomeCooked/downloads","issues_url":"https://api.github.com/repos/hmecookd/HomeCooked/issues{/number}","pulls_url":"https://api.github.com/repos/hmecookd/HomeCooked/pulls{/number}","milestones_url":"https://api.github.com/repos/hmecookd/HomeCooked/milestones{/number}","notifications_url":"https://api.github.com/repos/hmecookd/HomeCooked/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmecookd/HomeCooked/labels{/name}","releases_url":"https://api.github.com/repos/hmecookd/HomeCooked/releases{/id}","created_at":"2014-10-28T07:14:46Z","updated_at":"2015-06-16T05:17:13Z","pushed_at":"2015-06-16T07:24:31Z","git_url":"git://github.com/hmecookd/HomeCooked.git","ssh_url":"git@github.com:hmecookd/HomeCooked.git","clone_url":"https://github.com/hmecookd/HomeCooked.git","svn_url":"https://github.com/hmecookd/HomeCooked","homepage":"","size":6404,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36"},"html":{"href":"https://github.com/hmecookd/HomeCooked/pull/36"},"issue":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/issues/36"},"comments":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/hmecookd/HomeCooked/statuses/c5778fd96bdbec9f071e9aa6927094a42e445250"}}}}