{"action":"created","comment":{"url":"https://api.github.com/repos/fossology/fossology/pulls/comments/127397704","pull_request_review_id":49977832,"id":127397704,"diff_hunk":"@@ -114,27 +115,79 @@ function Delete($uploadpk, $Depends = NULL)\n   } // Delete()\n \n   /**\n+   * @param $uploadpks\n+   * @brief starts deletion and handles error messages\n+   * @return string\n+   */\n+  function initDeletion($uploadpks)\n+  {\n+    $V = \"\";\n+    $errorMessages = [];\n+    $deleteResponse = \"\";\n+    for($i=0; $i < sizeof($uploadpks); $i++)\n+    {\n+      $deleteResponse = $this->TryToDelete($uploadpks[$i]);\n+\n+      if($deleteResponse->getDeleteMessageCode() != DeleteMessages::SUCCESS)\n+      {\n+        $errorMessages[] = $deleteResponse;\n+      }\n+    }\n+\n+    /**\n+     * Output normal message, if only one upload\n+     */\n+    if(sizeof($uploadpks) < 2)\n+    {\n+      $V .= DisplayMessage($deleteResponse->getDeleteMessageString().$deleteResponse->getAdditionalMessage());\n+    }\n+    else\n+    {\n+      $displayMessage = \"\";\n+\n+      if(in_array(DeleteMessages::SCHEDULING_FAILED, $errorMessages))\n+      {\n+        $displayMessage .= \"<br/>Scheduling failed for \" .","path":"src/delagent/ui/admin-upload-delete.php","position":110,"original_position":95,"commit_id":"937ce9403ef47f26371e9ff10ebb0cb712a219d3","original_commit_id":"b8cc1988d7253b7fcbbb35f6c99608912cbb4055","user":{"login":"max-wittig","id":6639323,"avatar_url":"https://avatars7.githubusercontent.com/u/6639323?v=4","gravatar_id":"","url":"https://api.github.com/users/max-wittig","html_url":"https://github.com/max-wittig","followers_url":"https://api.github.com/users/max-wittig/followers","following_url":"https://api.github.com/users/max-wittig/following{/other_user}","gists_url":"https://api.github.com/users/max-wittig/gists{/gist_id}","starred_url":"https://api.github.com/users/max-wittig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-wittig/subscriptions","organizations_url":"https://api.github.com/users/max-wittig/orgs","repos_url":"https://api.github.com/users/max-wittig/repos","events_url":"https://api.github.com/users/max-wittig/events{/privacy}","received_events_url":"https://api.github.com/users/max-wittig/received_events","type":"User","site_admin":false},"body":"The breaks are alright in this case from a visual standpoint. It's done so that it only breaks the warning messages., not the info message. That's why you got breaks at the end of the other cases","created_at":"2017-07-14T07:11:18Z","updated_at":"2017-07-14T07:11:18Z","html_url":"https://github.com/fossology/fossology/pull/874#discussion_r127397704","pull_request_url":"https://api.github.com/repos/fossology/fossology/pulls/874","_links":{"self":{"href":"https://api.github.com/repos/fossology/fossology/pulls/comments/127397704"},"html":{"href":"https://github.com/fossology/fossology/pull/874#discussion_r127397704"},"pull_request":{"href":"https://api.github.com/repos/fossology/fossology/pulls/874"}}},"pull_request":{"url":"https://api.github.com/repos/fossology/fossology/pulls/874","id":129421388,"html_url":"https://github.com/fossology/fossology/pull/874","diff_url":"https://github.com/fossology/fossology/pull/874.diff","patch_url":"https://github.com/fossology/fossology/pull/874.patch","issue_url":"https://api.github.com/repos/fossology/fossology/issues/874","number":874,"state":"open","locked":false,"title":"feat(delete): allow deletion of multiple uploads","user":{"login":"max-wittig","id":6639323,"avatar_url":"https://avatars7.githubusercontent.com/u/6639323?v=4","gravatar_id":"","url":"https://api.github.com/users/max-wittig","html_url":"https://github.com/max-wittig","followers_url":"https://api.github.com/users/max-wittig/followers","following_url":"https://api.github.com/users/max-wittig/following{/other_user}","gists_url":"https://api.github.com/users/max-wittig/gists{/gist_id}","starred_url":"https://api.github.com/users/max-wittig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-wittig/subscriptions","organizations_url":"https://api.github.com/users/max-wittig/orgs","repos_url":"https://api.github.com/users/max-wittig/repos","events_url":"https://api.github.com/users/max-wittig/events{/privacy}","received_events_url":"https://api.github.com/users/max-wittig/received_events","type":"User","site_admin":false},"body":"Thanks to @AndreasSchirm for the suggestion\r\n\r\n![image](https://user-images.githubusercontent.com/6639323/27963037-04f96602-6334-11e7-87bf-07c42efbad0a.png)\r\n","created_at":"2017-07-07T14:48:43Z","updated_at":"2017-07-14T07:11:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1438959f424c6222733059050e1e9e8ed7fbca1f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossology/fossology/pulls/874/commits","review_comments_url":"https://api.github.com/repos/fossology/fossology/pulls/874/comments","review_comment_url":"https://api.github.com/repos/fossology/fossology/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossology/fossology/issues/874/comments","statuses_url":"https://api.github.com/repos/fossology/fossology/statuses/937ce9403ef47f26371e9ff10ebb0cb712a219d3","head":{"label":"siemens:feat/multi-delete","ref":"feat/multi-delete","sha":"937ce9403ef47f26371e9ff10ebb0cb712a219d3","user":{"login":"siemens","id":624020,"avatar_url":"https://avatars0.githubusercontent.com/u/624020?v=3","gravatar_id":"","url":"https://api.github.com/users/siemens","html_url":"https://github.com/siemens","followers_url":"https://api.github.com/users/siemens/followers","following_url":"https://api.github.com/users/siemens/following{/other_user}","gists_url":"https://api.github.com/users/siemens/gists{/gist_id}","starred_url":"https://api.github.com/users/siemens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siemens/subscriptions","organizations_url":"https://api.github.com/users/siemens/orgs","repos_url":"https://api.github.com/users/siemens/repos","events_url":"https://api.github.com/users/siemens/events{/privacy}","received_events_url":"https://api.github.com/users/siemens/received_events","type":"Organization","site_admin":false},"repo":{"id":25910533,"name":"fossology","full_name":"siemens/fossology","owner":{"login":"siemens","id":624020,"avatar_url":"https://avatars0.githubusercontent.com/u/624020?v=3","gravatar_id":"","url":"https://api.github.com/users/siemens","html_url":"https://github.com/siemens","followers_url":"https://api.github.com/users/siemens/followers","following_url":"https://api.github.com/users/siemens/following{/other_user}","gists_url":"https://api.github.com/users/siemens/gists{/gist_id}","starred_url":"https://api.github.com/users/siemens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siemens/subscriptions","organizations_url":"https://api.github.com/users/siemens/orgs","repos_url":"https://api.github.com/users/siemens/repos","events_url":"https://api.github.com/users/siemens/events{/privacy}","received_events_url":"https://api.github.com/users/siemens/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/siemens/fossology","description":"(Fork for Preparing and Testing Contributions) The FOSSology software is a system for analyzing and studying FOSS – Free and Open Source Software. Today people use FOSSology as part of their open source governance activities. Specifically to scan files for licenses and copyrights.","fork":true,"url":"https://api.github.com/repos/siemens/fossology","forks_url":"https://api.github.com/repos/siemens/fossology/forks","keys_url":"https://api.github.com/repos/siemens/fossology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/siemens/fossology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/siemens/fossology/teams","hooks_url":"https://api.github.com/repos/siemens/fossology/hooks","issue_events_url":"https://api.github.com/repos/siemens/fossology/issues/events{/number}","events_url":"https://api.github.com/repos/siemens/fossology/events","assignees_url":"https://api.github.com/repos/siemens/fossology/assignees{/user}","branches_url":"https://api.github.com/repos/siemens/fossology/branches{/branch}","tags_url":"https://api.github.com/repos/siemens/fossology/tags","blobs_url":"https://api.github.com/repos/siemens/fossology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/siemens/fossology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/siemens/fossology/git/refs{/sha}","trees_url":"https://api.github.com/repos/siemens/fossology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/siemens/fossology/statuses/{sha}","languages_url":"https://api.github.com/repos/siemens/fossology/languages","stargazers_url":"https://api.github.com/repos/siemens/fossology/stargazers","contributors_url":"https://api.github.com/repos/siemens/fossology/contributors","subscribers_url":"https://api.github.com/repos/siemens/fossology/subscribers","subscription_url":"https://api.github.com/repos/siemens/fossology/subscription","commits_url":"https://api.github.com/repos/siemens/fossology/commits{/sha}","git_commits_url":"https://api.github.com/repos/siemens/fossology/git/commits{/sha}","comments_url":"https://api.github.com/repos/siemens/fossology/comments{/number}","issue_comment_url":"https://api.github.com/repos/siemens/fossology/issues/comments{/number}","contents_url":"https://api.github.com/repos/siemens/fossology/contents/{+path}","compare_url":"https://api.github.com/repos/siemens/fossology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/siemens/fossology/merges","archive_url":"https://api.github.com/repos/siemens/fossology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/siemens/fossology/downloads","issues_url":"https://api.github.com/repos/siemens/fossology/issues{/number}","pulls_url":"https://api.github.com/repos/siemens/fossology/pulls{/number}","milestones_url":"https://api.github.com/repos/siemens/fossology/milestones{/number}","notifications_url":"https://api.github.com/repos/siemens/fossology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/siemens/fossology/labels{/name}","releases_url":"https://api.github.com/repos/siemens/fossology/releases{/id}","deployments_url":"https://api.github.com/repos/siemens/fossology/deployments","created_at":"2014-10-29T08:03:21Z","updated_at":"2017-06-20T13:09:08Z","pushed_at":"2017-07-14T07:09:16Z","git_url":"git://github.com/siemens/fossology.git","ssh_url":"git@github.com:siemens/fossology.git","clone_url":"https://github.com/siemens/fossology.git","svn_url":"https://github.com/siemens/fossology","homepage":"","size":276899,"stargazers_count":7,"watchers_count":7,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":7,"default_branch":"master"}},"base":{"label":"fossology:master","ref":"master","sha":"dc0133e68807afe635e800849a67d23d9b7e170e","user":{"login":"fossology","id":6004541,"avatar_url":"https://avatars7.githubusercontent.com/u/6004541?v=4","gravatar_id":"","url":"https://api.github.com/users/fossology","html_url":"https://github.com/fossology","followers_url":"https://api.github.com/users/fossology/followers","following_url":"https://api.github.com/users/fossology/following{/other_user}","gists_url":"https://api.github.com/users/fossology/gists{/gist_id}","starred_url":"https://api.github.com/users/fossology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossology/subscriptions","organizations_url":"https://api.github.com/users/fossology/orgs","repos_url":"https://api.github.com/users/fossology/repos","events_url":"https://api.github.com/users/fossology/events{/privacy}","received_events_url":"https://api.github.com/users/fossology/received_events","type":"Organization","site_admin":false},"repo":{"id":15866170,"name":"fossology","full_name":"fossology/fossology","owner":{"login":"fossology","id":6004541,"avatar_url":"https://avatars7.githubusercontent.com/u/6004541?v=4","gravatar_id":"","url":"https://api.github.com/users/fossology","html_url":"https://github.com/fossology","followers_url":"https://api.github.com/users/fossology/followers","following_url":"https://api.github.com/users/fossology/following{/other_user}","gists_url":"https://api.github.com/users/fossology/gists{/gist_id}","starred_url":"https://api.github.com/users/fossology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossology/subscriptions","organizations_url":"https://api.github.com/users/fossology/orgs","repos_url":"https://api.github.com/users/fossology/repos","events_url":"https://api.github.com/users/fossology/events{/privacy}","received_events_url":"https://api.github.com/users/fossology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossology/fossology","description":"FOSSology is an open source license compliance software system and toolkit.  As a toolkit you can run license, copyright and export control scans from the command line.  As a system, a database and web ui are provided to give you a compliance workflow. License, copyright and export scanners are tools used in the workflow.","fork":false,"url":"https://api.github.com/repos/fossology/fossology","forks_url":"https://api.github.com/repos/fossology/fossology/forks","keys_url":"https://api.github.com/repos/fossology/fossology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossology/fossology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossology/fossology/teams","hooks_url":"https://api.github.com/repos/fossology/fossology/hooks","issue_events_url":"https://api.github.com/repos/fossology/fossology/issues/events{/number}","events_url":"https://api.github.com/repos/fossology/fossology/events","assignees_url":"https://api.github.com/repos/fossology/fossology/assignees{/user}","branches_url":"https://api.github.com/repos/fossology/fossology/branches{/branch}","tags_url":"https://api.github.com/repos/fossology/fossology/tags","blobs_url":"https://api.github.com/repos/fossology/fossology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossology/fossology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossology/fossology/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossology/fossology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossology/fossology/statuses/{sha}","languages_url":"https://api.github.com/repos/fossology/fossology/languages","stargazers_url":"https://api.github.com/repos/fossology/fossology/stargazers","contributors_url":"https://api.github.com/repos/fossology/fossology/contributors","subscribers_url":"https://api.github.com/repos/fossology/fossology/subscribers","subscription_url":"https://api.github.com/repos/fossology/fossology/subscription","commits_url":"https://api.github.com/repos/fossology/fossology/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossology/fossology/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossology/fossology/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossology/fossology/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossology/fossology/contents/{+path}","compare_url":"https://api.github.com/repos/fossology/fossology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossology/fossology/merges","archive_url":"https://api.github.com/repos/fossology/fossology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossology/fossology/downloads","issues_url":"https://api.github.com/repos/fossology/fossology/issues{/number}","pulls_url":"https://api.github.com/repos/fossology/fossology/pulls{/number}","milestones_url":"https://api.github.com/repos/fossology/fossology/milestones{/number}","notifications_url":"https://api.github.com/repos/fossology/fossology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossology/fossology/labels{/name}","releases_url":"https://api.github.com/repos/fossology/fossology/releases{/id}","deployments_url":"https://api.github.com/repos/fossology/fossology/deployments","created_at":"2014-01-13T11:22:57Z","updated_at":"2017-06-18T18:41:26Z","pushed_at":"2017-07-14T07:09:17Z","git_url":"git://github.com/fossology/fossology.git","ssh_url":"git@github.com:fossology/fossology.git","clone_url":"https://github.com/fossology/fossology.git","svn_url":"https://github.com/fossology/fossology","homepage":"","size":276850,"stargazers_count":110,"watchers_count":110,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":209,"forks":53,"open_issues":209,"watchers":110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossology/fossology/pulls/874"},"html":{"href":"https://github.com/fossology/fossology/pull/874"},"issue":{"href":"https://api.github.com/repos/fossology/fossology/issues/874"},"comments":{"href":"https://api.github.com/repos/fossology/fossology/issues/874/comments"},"review_comments":{"href":"https://api.github.com/repos/fossology/fossology/pulls/874/comments"},"review_comment":{"href":"https://api.github.com/repos/fossology/fossology/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossology/fossology/pulls/874/commits"},"statuses":{"href":"https://api.github.com/repos/fossology/fossology/statuses/937ce9403ef47f26371e9ff10ebb0cb712a219d3"}}}}
{"actor":{"display_login":"max-wittig"}}