{"action":"created","comment":{"url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments/81162062","pull_request_review_id":2162312,"id":81162062,"diff_hunk":"@@ -437,9 +437,9 @@ def remove_service\n     to_delete = @service_request.sub_service_requests.map(&:organization_id) - @service_request.service_list.keys\n     to_delete.each do |org_id|\n       ssr = @service_request.sub_service_requests.find_by_organization_id(org_id)\n-      if !['first_draft', 'draft'].include?(@service_request.status) and !@service_request.submitted_at.nil? and @service_request.submitted_at > ssr.created_at\n+      if @service_request.line_items.count.zero? && !ssr.submitted_at.nil?","path":"app/controllers/service_requests_controller.rb","position":5,"original_position":5,"commit_id":"778b77ce89e2e366650f5a6fff75b5a09064ea1c","original_commit_id":"778b77ce89e2e366650f5a6fff75b5a09064ea1c","user":{"login":"kyle-glick","id":12898988,"avatar_url":"https://avatars.githubusercontent.com/u/12898988?v=3","gravatar_id":"","url":"https://api.github.com/users/kyle-glick","html_url":"https://github.com/kyle-glick","followers_url":"https://api.github.com/users/kyle-glick/followers","following_url":"https://api.github.com/users/kyle-glick/following{/other_user}","gists_url":"https://api.github.com/users/kyle-glick/gists{/gist_id}","starred_url":"https://api.github.com/users/kyle-glick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyle-glick/subscriptions","organizations_url":"https://api.github.com/users/kyle-glick/orgs","repos_url":"https://api.github.com/users/kyle-glick/repos","events_url":"https://api.github.com/users/kyle-glick/events{/privacy}","received_events_url":"https://api.github.com/users/kyle-glick/received_events","type":"User","site_admin":false},"body":"This a pretty hefty change. Can you explain why we're now only looking at line items count?","created_at":"2016-09-29T15:19:30Z","updated_at":"2016-09-29T15:22:21Z","html_url":"https://github.com/sparc-request/sparc-request/pull/687#discussion_r81162062","pull_request_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687","_links":{"self":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments/81162062"},"html":{"href":"https://github.com/sparc-request/sparc-request/pull/687#discussion_r81162062"},"pull_request":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687"}}},"pull_request":{"url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687","id":86955357,"html_url":"https://github.com/sparc-request/sparc-request/pull/687","diff_url":"https://github.com/sparc-request/sparc-request/pull/687.diff","patch_url":"https://github.com/sparc-request/sparc-request/pull/687.patch","issue_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/687","number":687,"state":"open","locked":false,"title":"Jw email part 5 request deletion","user":{"login":"jwiel86","id":4949981,"avatar_url":"https://avatars.githubusercontent.com/u/4949981?v=3","gravatar_id":"","url":"https://api.github.com/users/jwiel86","html_url":"https://github.com/jwiel86","followers_url":"https://api.github.com/users/jwiel86/followers","following_url":"https://api.github.com/users/jwiel86/following{/other_user}","gists_url":"https://api.github.com/users/jwiel86/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiel86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiel86/subscriptions","organizations_url":"https://api.github.com/users/jwiel86/orgs","repos_url":"https://api.github.com/users/jwiel86/repos","events_url":"https://api.github.com/users/jwiel86/events{/privacy}","received_events_url":"https://api.github.com/users/jwiel86/received_events","type":"User","site_admin":false},"body":"See link for description:  https://www.pivotaltracker.com/story/show/130746829","created_at":"2016-09-27T15:37:19Z","updated_at":"2016-09-29T15:22:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c155278c981c9118f977386b59803ebb1b47ad34","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687/commits","review_comments_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687/comments","review_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/687/comments","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/778b77ce89e2e366650f5a6fff75b5a09064ea1c","head":{"label":"sparc-request:jw_email_part_5_request_deletion","ref":"jw_email_part_5_request_deletion","sha":"778b77ce89e2e366650f5a6fff75b5a09064ea1c","user":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars.githubusercontent.com/u/8311757?v=3","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"repo":{"id":22610009,"name":"sparc-request","full_name":"sparc-request/sparc-request","owner":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars.githubusercontent.com/u/8311757?v=3","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sparc-request/sparc-request","description":"","fork":false,"url":"https://api.github.com/repos/sparc-request/sparc-request","forks_url":"https://api.github.com/repos/sparc-request/sparc-request/forks","keys_url":"https://api.github.com/repos/sparc-request/sparc-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparc-request/sparc-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparc-request/sparc-request/teams","hooks_url":"https://api.github.com/repos/sparc-request/sparc-request/hooks","issue_events_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/events{/number}","events_url":"https://api.github.com/repos/sparc-request/sparc-request/events","assignees_url":"https://api.github.com/repos/sparc-request/sparc-request/assignees{/user}","branches_url":"https://api.github.com/repos/sparc-request/sparc-request/branches{/branch}","tags_url":"https://api.github.com/repos/sparc-request/sparc-request/tags","blobs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparc-request/sparc-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparc-request/sparc-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/{sha}","languages_url":"https://api.github.com/repos/sparc-request/sparc-request/languages","stargazers_url":"https://api.github.com/repos/sparc-request/sparc-request/stargazers","contributors_url":"https://api.github.com/repos/sparc-request/sparc-request/contributors","subscribers_url":"https://api.github.com/repos/sparc-request/sparc-request/subscribers","subscription_url":"https://api.github.com/repos/sparc-request/sparc-request/subscription","commits_url":"https://api.github.com/repos/sparc-request/sparc-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparc-request/sparc-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparc-request/sparc-request/contents/{+path}","compare_url":"https://api.github.com/repos/sparc-request/sparc-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparc-request/sparc-request/merges","archive_url":"https://api.github.com/repos/sparc-request/sparc-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparc-request/sparc-request/downloads","issues_url":"https://api.github.com/repos/sparc-request/sparc-request/issues{/number}","pulls_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls{/number}","milestones_url":"https://api.github.com/repos/sparc-request/sparc-request/milestones{/number}","notifications_url":"https://api.github.com/repos/sparc-request/sparc-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparc-request/sparc-request/labels{/name}","releases_url":"https://api.github.com/repos/sparc-request/sparc-request/releases{/id}","deployments_url":"https://api.github.com/repos/sparc-request/sparc-request/deployments","created_at":"2014-08-04T15:47:11Z","updated_at":"2016-07-22T19:17:55Z","pushed_at":"2016-09-29T15:20:56Z","git_url":"git://github.com/sparc-request/sparc-request.git","ssh_url":"git@github.com:sparc-request/sparc-request.git","clone_url":"https://github.com/sparc-request/sparc-request.git","svn_url":"https://github.com/sparc-request/sparc-request","homepage":null,"size":24991,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":11,"forks":16,"open_issues":11,"watchers":7,"default_branch":"master"}},"base":{"label":"sparc-request:master","ref":"master","sha":"0a5393ec58dc3b3786c59bdf72f9dd0b707840d2","user":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars.githubusercontent.com/u/8311757?v=3","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"repo":{"id":22610009,"name":"sparc-request","full_name":"sparc-request/sparc-request","owner":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars.githubusercontent.com/u/8311757?v=3","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sparc-request/sparc-request","description":"","fork":false,"url":"https://api.github.com/repos/sparc-request/sparc-request","forks_url":"https://api.github.com/repos/sparc-request/sparc-request/forks","keys_url":"https://api.github.com/repos/sparc-request/sparc-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparc-request/sparc-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparc-request/sparc-request/teams","hooks_url":"https://api.github.com/repos/sparc-request/sparc-request/hooks","issue_events_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/events{/number}","events_url":"https://api.github.com/repos/sparc-request/sparc-request/events","assignees_url":"https://api.github.com/repos/sparc-request/sparc-request/assignees{/user}","branches_url":"https://api.github.com/repos/sparc-request/sparc-request/branches{/branch}","tags_url":"https://api.github.com/repos/sparc-request/sparc-request/tags","blobs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparc-request/sparc-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparc-request/sparc-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/{sha}","languages_url":"https://api.github.com/repos/sparc-request/sparc-request/languages","stargazers_url":"https://api.github.com/repos/sparc-request/sparc-request/stargazers","contributors_url":"https://api.github.com/repos/sparc-request/sparc-request/contributors","subscribers_url":"https://api.github.com/repos/sparc-request/sparc-request/subscribers","subscription_url":"https://api.github.com/repos/sparc-request/sparc-request/subscription","commits_url":"https://api.github.com/repos/sparc-request/sparc-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparc-request/sparc-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparc-request/sparc-request/contents/{+path}","compare_url":"https://api.github.com/repos/sparc-request/sparc-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparc-request/sparc-request/merges","archive_url":"https://api.github.com/repos/sparc-request/sparc-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparc-request/sparc-request/downloads","issues_url":"https://api.github.com/repos/sparc-request/sparc-request/issues{/number}","pulls_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls{/number}","milestones_url":"https://api.github.com/repos/sparc-request/sparc-request/milestones{/number}","notifications_url":"https://api.github.com/repos/sparc-request/sparc-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparc-request/sparc-request/labels{/name}","releases_url":"https://api.github.com/repos/sparc-request/sparc-request/releases{/id}","deployments_url":"https://api.github.com/repos/sparc-request/sparc-request/deployments","created_at":"2014-08-04T15:47:11Z","updated_at":"2016-07-22T19:17:55Z","pushed_at":"2016-09-29T15:20:56Z","git_url":"git://github.com/sparc-request/sparc-request.git","ssh_url":"git@github.com:sparc-request/sparc-request.git","clone_url":"https://github.com/sparc-request/sparc-request.git","svn_url":"https://github.com/sparc-request/sparc-request","homepage":null,"size":24991,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":11,"forks":16,"open_issues":11,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687"},"html":{"href":"https://github.com/sparc-request/sparc-request/pull/687"},"issue":{"href":"https://api.github.com/repos/sparc-request/sparc-request/issues/687"},"comments":{"href":"https://api.github.com/repos/sparc-request/sparc-request/issues/687/comments"},"review_comments":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687/comments"},"review_comment":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/687/commits"},"statuses":{"href":"https://api.github.com/repos/sparc-request/sparc-request/statuses/778b77ce89e2e366650f5a6fff75b5a09064ea1c"}}}}
{"actor":{"display_login":"kyle-glick"}}