{"action":"created","comment":{"url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/comments/78771136","id":78771136,"diff_hunk":"@@ -2240,14 +2239,33 @@ public void migrationMailArchiveZip(HttpServletRequest request,\n \t\t\tHttpServletResponse response) {\n \n \t\t// zip download\n-\t\tHashMap<String, String> callStatus = migration_call(request, response,\n-\t\t\t\tUtils.MIGRATION_MAILARCHIVE_TYPE_ZIP, Utils.getCurrentUserId(request, env));\n-\t\tif (callStatus.containsKey(\"errorMessage\")) {\n-\t\t\tlog.info(this + \" migrationMailArchiveZip call error message=\"\n-\t\t\t\t\t+ callStatus.get(\"errorMessage\"));\n-\t\t} else if (callStatus.containsKey(\"migrationId\")) {\n-\t\t\tlog.info(this + \" migrationMailArchiveZip call migration started id=\"\n-\t\t\t\t\t+ callStatus.get(\"migrationId\"));\n-\t\t}\n+        Map<String, String[]> parameterMap = request.getParameterMap();\n+        String destination_type = parameterMap.get(\"destination_type\")[0];\n+\n+        if(destination_type.equals(\"mailarchivezip\")) {","path":"src/main/java/edu/umich/its/cpm/MigrationController.java","position":782,"original_position":782,"commit_id":"30046e391c0b6390f5c48fc894620e293322f08e","original_commit_id":"30046e391c0b6390f5c48fc894620e293322f08e","user":{"login":"pushyamig","id":8579775,"avatar_url":"https://avatars.githubusercontent.com/u/8579775?v=3","gravatar_id":"","url":"https://api.github.com/users/pushyamig","html_url":"https://github.com/pushyamig","followers_url":"https://api.github.com/users/pushyamig/followers","following_url":"https://api.github.com/users/pushyamig/following{/other_user}","gists_url":"https://api.github.com/users/pushyamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pushyamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushyamig/subscriptions","organizations_url":"https://api.github.com/users/pushyamig/orgs","repos_url":"https://api.github.com/users/pushyamig/repos","events_url":"https://api.github.com/users/pushyamig/events{/privacy}","received_events_url":"https://api.github.com/users/pushyamig/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-09-14T15:22:17Z","updated_at":"2016-09-14T15:22:17Z","html_url":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249#discussion_r78771136","pull_request_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249","_links":{"self":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/comments/78771136"},"html":{"href":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249#discussion_r78771136"},"pull_request":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249"}}},"pull_request":{"url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249","id":85088481,"html_url":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249","diff_url":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249.diff","patch_url":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249.patch","issue_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/249","number":249,"state":"open","locked":false,"title":"Tlcpm 369- Fomatting the Email Messages in to Mbox.","user":{"login":"pushyamig","id":8579775,"avatar_url":"https://avatars.githubusercontent.com/u/8579775?v=3","gravatar_id":"","url":"https://api.github.com/users/pushyamig","html_url":"https://github.com/pushyamig","followers_url":"https://api.github.com/users/pushyamig/followers","following_url":"https://api.github.com/users/pushyamig/following{/other_user}","gists_url":"https://api.github.com/users/pushyamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pushyamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushyamig/subscriptions","organizations_url":"https://api.github.com/users/pushyamig/orgs","repos_url":"https://api.github.com/users/pushyamig/repos","events_url":"https://api.github.com/users/pushyamig/events{/privacy}","received_events_url":"https://api.github.com/users/pushyamig/received_events","type":"User","site_admin":false},"body":"This PR consists of\r\n 1) Formatting the Email messages from the Ctools to a Mbox format\r\n 2) Wiring the Ui to the Backend for Mbox formatting\r\n3) Little bit of refactoring the existing Mail Archive Zip Download, as both Mbox or mail zip download share common code.\r\n\r\nFor formatting the Email message To Mbox format, i did not heavily rely on the Junit test. I started out by writing Unit test  when i got to the point where i started wiring formatter to the UI then i did not write more test. Due to time constraint  i did my best to finish this up\r\n\r\n@zqian @dlhaines ","created_at":"2016-09-13T17:12:27Z","updated_at":"2016-09-14T15:22:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac0076d1fa45a3d2d55561e436e1635713eb0d5d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249/commits","review_comments_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249/comments","review_comment_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/249/comments","statuses_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/statuses/30046e391c0b6390f5c48fc894620e293322f08e","head":{"label":"pushyamig:TLCPM-369","ref":"TLCPM-369","sha":"30046e391c0b6390f5c48fc894620e293322f08e","user":{"login":"pushyamig","id":8579775,"avatar_url":"https://avatars.githubusercontent.com/u/8579775?v=3","gravatar_id":"","url":"https://api.github.com/users/pushyamig","html_url":"https://github.com/pushyamig","followers_url":"https://api.github.com/users/pushyamig/followers","following_url":"https://api.github.com/users/pushyamig/following{/other_user}","gists_url":"https://api.github.com/users/pushyamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pushyamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushyamig/subscriptions","organizations_url":"https://api.github.com/users/pushyamig/orgs","repos_url":"https://api.github.com/users/pushyamig/repos","events_url":"https://api.github.com/users/pushyamig/events{/privacy}","received_events_url":"https://api.github.com/users/pushyamig/received_events","type":"User","site_admin":false},"repo":{"id":63782887,"name":"ctools-project-migration","full_name":"pushyamig/ctools-project-migration","owner":{"login":"pushyamig","id":8579775,"avatar_url":"https://avatars.githubusercontent.com/u/8579775?v=3","gravatar_id":"","url":"https://api.github.com/users/pushyamig","html_url":"https://github.com/pushyamig","followers_url":"https://api.github.com/users/pushyamig/followers","following_url":"https://api.github.com/users/pushyamig/following{/other_user}","gists_url":"https://api.github.com/users/pushyamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pushyamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushyamig/subscriptions","organizations_url":"https://api.github.com/users/pushyamig/orgs","repos_url":"https://api.github.com/users/pushyamig/repos","events_url":"https://api.github.com/users/pushyamig/events{/privacy}","received_events_url":"https://api.github.com/users/pushyamig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pushyamig/ctools-project-migration","description":"Project Migration","fork":true,"url":"https://api.github.com/repos/pushyamig/ctools-project-migration","forks_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/forks","keys_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/teams","hooks_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/hooks","issue_events_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/issues/events{/number}","events_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/events","assignees_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/assignees{/user}","branches_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/branches{/branch}","tags_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/tags","blobs_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/git/refs{/sha}","trees_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/statuses/{sha}","languages_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/languages","stargazers_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/stargazers","contributors_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/contributors","subscribers_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/subscribers","subscription_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/subscription","commits_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/commits{/sha}","git_commits_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/git/commits{/sha}","comments_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/comments{/number}","issue_comment_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/issues/comments{/number}","contents_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/contents/{+path}","compare_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/merges","archive_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/downloads","issues_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/issues{/number}","pulls_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/pulls{/number}","milestones_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/milestones{/number}","notifications_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/labels{/name}","releases_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/releases{/id}","deployments_url":"https://api.github.com/repos/pushyamig/ctools-project-migration/deployments","created_at":"2016-07-20T13:17:09Z","updated_at":"2016-07-20T13:17:10Z","pushed_at":"2016-09-14T10:35:31Z","git_url":"git://github.com/pushyamig/ctools-project-migration.git","ssh_url":"git@github.com:pushyamig/ctools-project-migration.git","clone_url":"https://github.com/pushyamig/ctools-project-migration.git","svn_url":"https://github.com/pushyamig/ctools-project-migration","homepage":null,"size":1505,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tl-its-umich-edu:master","ref":"master","sha":"6d0124a216a9c6760aa73114f56e798712b60755","user":{"login":"tl-its-umich-edu","id":8292960,"avatar_url":"https://avatars.githubusercontent.com/u/8292960?v=3","gravatar_id":"","url":"https://api.github.com/users/tl-its-umich-edu","html_url":"https://github.com/tl-its-umich-edu","followers_url":"https://api.github.com/users/tl-its-umich-edu/followers","following_url":"https://api.github.com/users/tl-its-umich-edu/following{/other_user}","gists_url":"https://api.github.com/users/tl-its-umich-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/tl-its-umich-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tl-its-umich-edu/subscriptions","organizations_url":"https://api.github.com/users/tl-its-umich-edu/orgs","repos_url":"https://api.github.com/users/tl-its-umich-edu/repos","events_url":"https://api.github.com/users/tl-its-umich-edu/events{/privacy}","received_events_url":"https://api.github.com/users/tl-its-umich-edu/received_events","type":"Organization","site_admin":false},"repo":{"id":42891532,"name":"ctools-project-migration","full_name":"tl-its-umich-edu/ctools-project-migration","owner":{"login":"tl-its-umich-edu","id":8292960,"avatar_url":"https://avatars.githubusercontent.com/u/8292960?v=3","gravatar_id":"","url":"https://api.github.com/users/tl-its-umich-edu","html_url":"https://github.com/tl-its-umich-edu","followers_url":"https://api.github.com/users/tl-its-umich-edu/followers","following_url":"https://api.github.com/users/tl-its-umich-edu/following{/other_user}","gists_url":"https://api.github.com/users/tl-its-umich-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/tl-its-umich-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tl-its-umich-edu/subscriptions","organizations_url":"https://api.github.com/users/tl-its-umich-edu/orgs","repos_url":"https://api.github.com/users/tl-its-umich-edu/repos","events_url":"https://api.github.com/users/tl-its-umich-edu/events{/privacy}","received_events_url":"https://api.github.com/users/tl-its-umich-edu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tl-its-umich-edu/ctools-project-migration","description":"Project Migration","fork":false,"url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration","forks_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/forks","keys_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/teams","hooks_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/hooks","issue_events_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/events{/number}","events_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/events","assignees_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/assignees{/user}","branches_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/branches{/branch}","tags_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/tags","blobs_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/git/refs{/sha}","trees_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/statuses/{sha}","languages_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/languages","stargazers_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/stargazers","contributors_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/contributors","subscribers_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/subscribers","subscription_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/subscription","commits_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/commits{/sha}","git_commits_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/git/commits{/sha}","comments_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/comments{/number}","issue_comment_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/comments{/number}","contents_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/contents/{+path}","compare_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/merges","archive_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/downloads","issues_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues{/number}","pulls_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls{/number}","milestones_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/milestones{/number}","notifications_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/labels{/name}","releases_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/releases{/id}","deployments_url":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/deployments","created_at":"2015-09-21T20:20:08Z","updated_at":"2016-01-11T18:16:53Z","pushed_at":"2016-09-14T10:35:31Z","git_url":"git://github.com/tl-its-umich-edu/ctools-project-migration.git","ssh_url":"git@github.com:tl-its-umich-edu/ctools-project-migration.git","clone_url":"https://github.com/tl-its-umich-edu/ctools-project-migration.git","svn_url":"https://github.com/tl-its-umich-edu/ctools-project-migration","homepage":null,"size":1611,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249"},"html":{"href":"https://github.com/tl-its-umich-edu/ctools-project-migration/pull/249"},"issue":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/249"},"comments":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/tl-its-umich-edu/ctools-project-migration/statuses/30046e391c0b6390f5c48fc894620e293322f08e"}}}}
{"actor":{"display_login":"pushyamig"}}