{"action":"created","comment":{"url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/comments/75071694","id":75071694,"diff_hunk":"@@ -265,10 +265,11 @@ DELIMITER ;\n /*!50003 SET @saved_sql_mode       = @@sql_mode */ ;\n /*!50003 SET sql_mode              = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;\n DELIMITER ;;\n-CREATE DEFINER=`root`@`localhost` PROCEDURE `project_delete`(IN projectID bigint(20))\n+CREATE DEFINER=`root`@`localhost` PROCEDURE `project_delete`(IN projectID bigint(20),\n+                                                             IN revokeUsername varchar(25))\n   BEGIN\n     DELETE FROM Project\n-    WHERE Project.ProjectID = projectID;\n+    WHERE Project.ProjectID = projectID AND Project.Owner = revokeUsername;","path":"config/defaults/mysqlSchemaSetup.sql","position":10,"original_position":10,"commit_id":"f21db10b7578609fd1faf245cdf4d31f61053595","original_commit_id":"d67085257a840ff75d71ef1aa01bc7b7a13f77ad","user":{"login":"jshap70","id":9045475,"avatar_url":"https://avatars.githubusercontent.com/u/9045475?v=3","gravatar_id":"","url":"https://api.github.com/users/jshap70","html_url":"https://github.com/jshap70","followers_url":"https://api.github.com/users/jshap70/followers","following_url":"https://api.github.com/users/jshap70/following{/other_user}","gists_url":"https://api.github.com/users/jshap70/gists{/gist_id}","starred_url":"https://api.github.com/users/jshap70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshap70/subscriptions","organizations_url":"https://api.github.com/users/jshap70/orgs","repos_url":"https://api.github.com/users/jshap70/repos","events_url":"https://api.github.com/users/jshap70/events{/privacy}","received_events_url":"https://api.github.com/users/jshap70/received_events","type":"User","site_admin":false},"body":"no, we only want the project owner to be able to delete the whole project","created_at":"2016-08-17T07:05:52Z","updated_at":"2016-08-17T07:05:52Z","html_url":"https://github.com/CodeCollaborate/Server/pull/11#discussion_r75071694","pull_request_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/comments/75071694"},"html":{"href":"https://github.com/CodeCollaborate/Server/pull/11#discussion_r75071694"},"pull_request":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11","id":80357433,"html_url":"https://github.com/CodeCollaborate/Server/pull/11","diff_url":"https://github.com/CodeCollaborate/Server/pull/11.diff","patch_url":"https://github.com/CodeCollaborate/Server/pull/11.patch","issue_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/11","number":11,"state":"open","locked":false,"title":"Intgoprocdandeling - aka: server function processing","user":{"login":"jshap70","id":9045475,"avatar_url":"https://avatars.githubusercontent.com/u/9045475?v=3","gravatar_id":"","url":"https://api.github.com/users/jshap70","html_url":"https://github.com/jshap70","followers_url":"https://api.github.com/users/jshap70/followers","following_url":"https://api.github.com/users/jshap70/following{/other_user}","gists_url":"https://api.github.com/users/jshap70/gists{/gist_id}","starred_url":"https://api.github.com/users/jshap70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshap70/subscriptions","organizations_url":"https://api.github.com/users/jshap70/orgs","repos_url":"https://api.github.com/users/jshap70/repos","events_url":"https://api.github.com/users/jshap70/events{/privacy}","received_events_url":"https://api.github.com/users/jshap70/received_events","type":"User","site_admin":false},"body":"The primary focus of this branch was to implement the process functions on requests, which are found in \r\n\r\n- modules/datahandling/filerequests.go\r\n- modules/datahandling/projectrequests.go\r\n- modules/datahandling/userrequests.go\r\n\r\nHowever, at 35+ files changed it's obvious that there were some other things that were pulled into it. Whether or not that was the right call is up to your own interpretation, but ¯\\\\_(ツ)_/¯. The biggest changes affect \r\n\r\n- rabbitmq subscriptions and publishing\r\n- datahandling refactors to allow for publishing of results\r\n- database refactors to allow for mocking\r\n\r\nThe only thing really left has to do with 'at least X permission level is needed to do Y', but we haven't really talked about how we're doing that and whether we're just going to hard code that in, so I'm leaving that out for now. \r\n\r\nso yeah. odds are I'll be walking whoever is mainly reviewing it through it because it seems like a lot at first glance, but it's manageable. :beers:   ","created_at":"2016-08-07T03:46:36Z","updated_at":"2016-08-17T07:05:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8db712847b2e1339e3c0dec03922d8e7117c5ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11/commits","review_comments_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11/comments","review_comment_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/11/comments","statuses_url":"https://api.github.com/repos/CodeCollaborate/Server/statuses/f21db10b7578609fd1faf245cdf4d31f61053595","head":{"label":"CodeCollaborate:Intgoprocdandeling","ref":"Intgoprocdandeling","sha":"f21db10b7578609fd1faf245cdf4d31f61053595","user":{"login":"CodeCollaborate","id":14879560,"avatar_url":"https://avatars.githubusercontent.com/u/14879560?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCollaborate","html_url":"https://github.com/CodeCollaborate","followers_url":"https://api.github.com/users/CodeCollaborate/followers","following_url":"https://api.github.com/users/CodeCollaborate/following{/other_user}","gists_url":"https://api.github.com/users/CodeCollaborate/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCollaborate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCollaborate/subscriptions","organizations_url":"https://api.github.com/users/CodeCollaborate/orgs","repos_url":"https://api.github.com/users/CodeCollaborate/repos","events_url":"https://api.github.com/users/CodeCollaborate/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCollaborate/received_events","type":"Organization","site_admin":false},"repo":{"id":53530468,"name":"Server","full_name":"CodeCollaborate/Server","owner":{"login":"CodeCollaborate","id":14879560,"avatar_url":"https://avatars.githubusercontent.com/u/14879560?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCollaborate","html_url":"https://github.com/CodeCollaborate","followers_url":"https://api.github.com/users/CodeCollaborate/followers","following_url":"https://api.github.com/users/CodeCollaborate/following{/other_user}","gists_url":"https://api.github.com/users/CodeCollaborate/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCollaborate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCollaborate/subscriptions","organizations_url":"https://api.github.com/users/CodeCollaborate/orgs","repos_url":"https://api.github.com/users/CodeCollaborate/repos","events_url":"https://api.github.com/users/CodeCollaborate/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCollaborate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCollaborate/Server","description":"Centralized server for coordination of collaborative editing","fork":false,"url":"https://api.github.com/repos/CodeCollaborate/Server","forks_url":"https://api.github.com/repos/CodeCollaborate/Server/forks","keys_url":"https://api.github.com/repos/CodeCollaborate/Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCollaborate/Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCollaborate/Server/teams","hooks_url":"https://api.github.com/repos/CodeCollaborate/Server/hooks","issue_events_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCollaborate/Server/events","assignees_url":"https://api.github.com/repos/CodeCollaborate/Server/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCollaborate/Server/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCollaborate/Server/tags","blobs_url":"https://api.github.com/repos/CodeCollaborate/Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCollaborate/Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCollaborate/Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCollaborate/Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCollaborate/Server/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCollaborate/Server/languages","stargazers_url":"https://api.github.com/repos/CodeCollaborate/Server/stargazers","contributors_url":"https://api.github.com/repos/CodeCollaborate/Server/contributors","subscribers_url":"https://api.github.com/repos/CodeCollaborate/Server/subscribers","subscription_url":"https://api.github.com/repos/CodeCollaborate/Server/subscription","commits_url":"https://api.github.com/repos/CodeCollaborate/Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCollaborate/Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCollaborate/Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeCollaborate/Server/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCollaborate/Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCollaborate/Server/merges","archive_url":"https://api.github.com/repos/CodeCollaborate/Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCollaborate/Server/downloads","issues_url":"https://api.github.com/repos/CodeCollaborate/Server/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCollaborate/Server/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCollaborate/Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCollaborate/Server/labels{/name}","releases_url":"https://api.github.com/repos/CodeCollaborate/Server/releases{/id}","deployments_url":"https://api.github.com/repos/CodeCollaborate/Server/deployments","created_at":"2016-03-09T20:45:37Z","updated_at":"2016-06-26T21:58:47Z","pushed_at":"2016-08-17T07:03:45Z","git_url":"git://github.com/CodeCollaborate/Server.git","ssh_url":"git@github.com:CodeCollaborate/Server.git","clone_url":"https://github.com/CodeCollaborate/Server.git","svn_url":"https://github.com/CodeCollaborate/Server","homepage":"","size":208,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"test"}},"base":{"label":"CodeCollaborate:test","ref":"test","sha":"5d9470d09f830e5834de42ae53aef76bac04c65d","user":{"login":"CodeCollaborate","id":14879560,"avatar_url":"https://avatars.githubusercontent.com/u/14879560?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCollaborate","html_url":"https://github.com/CodeCollaborate","followers_url":"https://api.github.com/users/CodeCollaborate/followers","following_url":"https://api.github.com/users/CodeCollaborate/following{/other_user}","gists_url":"https://api.github.com/users/CodeCollaborate/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCollaborate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCollaborate/subscriptions","organizations_url":"https://api.github.com/users/CodeCollaborate/orgs","repos_url":"https://api.github.com/users/CodeCollaborate/repos","events_url":"https://api.github.com/users/CodeCollaborate/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCollaborate/received_events","type":"Organization","site_admin":false},"repo":{"id":53530468,"name":"Server","full_name":"CodeCollaborate/Server","owner":{"login":"CodeCollaborate","id":14879560,"avatar_url":"https://avatars.githubusercontent.com/u/14879560?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeCollaborate","html_url":"https://github.com/CodeCollaborate","followers_url":"https://api.github.com/users/CodeCollaborate/followers","following_url":"https://api.github.com/users/CodeCollaborate/following{/other_user}","gists_url":"https://api.github.com/users/CodeCollaborate/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeCollaborate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeCollaborate/subscriptions","organizations_url":"https://api.github.com/users/CodeCollaborate/orgs","repos_url":"https://api.github.com/users/CodeCollaborate/repos","events_url":"https://api.github.com/users/CodeCollaborate/events{/privacy}","received_events_url":"https://api.github.com/users/CodeCollaborate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeCollaborate/Server","description":"Centralized server for coordination of collaborative editing","fork":false,"url":"https://api.github.com/repos/CodeCollaborate/Server","forks_url":"https://api.github.com/repos/CodeCollaborate/Server/forks","keys_url":"https://api.github.com/repos/CodeCollaborate/Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeCollaborate/Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeCollaborate/Server/teams","hooks_url":"https://api.github.com/repos/CodeCollaborate/Server/hooks","issue_events_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/events{/number}","events_url":"https://api.github.com/repos/CodeCollaborate/Server/events","assignees_url":"https://api.github.com/repos/CodeCollaborate/Server/assignees{/user}","branches_url":"https://api.github.com/repos/CodeCollaborate/Server/branches{/branch}","tags_url":"https://api.github.com/repos/CodeCollaborate/Server/tags","blobs_url":"https://api.github.com/repos/CodeCollaborate/Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeCollaborate/Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeCollaborate/Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeCollaborate/Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeCollaborate/Server/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeCollaborate/Server/languages","stargazers_url":"https://api.github.com/repos/CodeCollaborate/Server/stargazers","contributors_url":"https://api.github.com/repos/CodeCollaborate/Server/contributors","subscribers_url":"https://api.github.com/repos/CodeCollaborate/Server/subscribers","subscription_url":"https://api.github.com/repos/CodeCollaborate/Server/subscription","commits_url":"https://api.github.com/repos/CodeCollaborate/Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeCollaborate/Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeCollaborate/Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeCollaborate/Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeCollaborate/Server/contents/{+path}","compare_url":"https://api.github.com/repos/CodeCollaborate/Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeCollaborate/Server/merges","archive_url":"https://api.github.com/repos/CodeCollaborate/Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeCollaborate/Server/downloads","issues_url":"https://api.github.com/repos/CodeCollaborate/Server/issues{/number}","pulls_url":"https://api.github.com/repos/CodeCollaborate/Server/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeCollaborate/Server/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeCollaborate/Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeCollaborate/Server/labels{/name}","releases_url":"https://api.github.com/repos/CodeCollaborate/Server/releases{/id}","deployments_url":"https://api.github.com/repos/CodeCollaborate/Server/deployments","created_at":"2016-03-09T20:45:37Z","updated_at":"2016-06-26T21:58:47Z","pushed_at":"2016-08-17T07:03:45Z","git_url":"git://github.com/CodeCollaborate/Server.git","ssh_url":"git@github.com:CodeCollaborate/Server.git","clone_url":"https://github.com/CodeCollaborate/Server.git","svn_url":"https://github.com/CodeCollaborate/Server","homepage":"","size":208,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"test"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11"},"html":{"href":"https://github.com/CodeCollaborate/Server/pull/11"},"issue":{"href":"https://api.github.com/repos/CodeCollaborate/Server/issues/11"},"comments":{"href":"https://api.github.com/repos/CodeCollaborate/Server/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeCollaborate/Server/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/CodeCollaborate/Server/statuses/f21db10b7578609fd1faf245cdf4d31f61053595"}}}}
{"actor":{"display_login":"jshap70"}}