{"action":"created","comment":{"url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments/84886387","pull_request_review_id":5633260,"id":84886387,"diff_hunk":"@@ -0,0 +1,63 @@\n+/*******************************************************************************\n+ * Copyright (c) 2012 - 2016 Signal Iduna Corporation and others.\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ * \n+ * Contributors:\n+ * Signal Iduna Corporation - initial API and implementation\n+ * akquinet AG\n+ * itemis AG\n+ *******************************************************************************/\n+package org.testeditor.rcp4.views.tcltestrun.rest\n+\n+import javax.json.Json\n+import javax.ws.rs.GET\n+import javax.ws.rs.Path\n+import javax.ws.rs.Produces\n+import javax.ws.rs.core.MediaType\n+import javax.ws.rs.core.Response\n+import org.eclipse.xtend.lib.annotations.Accessors\n+import org.testeditor.rcp4.views.tcltestrun.model.TestExecutionManager\n+import java.util.Date\n+import java.text.SimpleDateFormat\n+\n+@Path(\"/testexeclog\")\n+class TestExecutionLogService {\n+\t\n+\t@Accessors\n+\tTestExecutionManager testExecutionManager\n+\t\n+\t@Path(\"/metadata\") \t\n+\t@GET \n+\t@Produces(MediaType::APPLICATION_JSON) \n+\tdef Response getTestLogExeutionMetaData() {\n+\t\tval json = Json.createObjectBuilder\n+\t\tjson.add(\"value\", \"Foo\")\t\t\n+\t\treturn Response.ok(json.build.toString).build\n+\t}\n+\t\n+\t@Path(\"/list\") \t\n+\t@GET \n+\t@Produces(MediaType::APPLICATION_JSON) \n+\tdef Response getTestLogExeutionList() {\n+\t\tval result = Json.createObjectBuilder\n+\t\tval array = Json.createArrayBuilder\n+\t\ttestExecutionManager.testExecutionLogs.forEach[\n+\t\t\tval execLog = Json.createObjectBuilder\n+\t\t\texecLog.add(\"filename\",it)\n+\t\t\texecLog.add(\"name\",getTestExecutionLogName(it))\n+\t\t\tarray.add(execLog)\n+\t\t]\n+\t\tresult.add(\"entries\",array)\n+\t\treturn Response.ok(result.build.toString).build\n+\t}\n+\t\n+\tdef private String getTestExecutionLogName(String teLogFileName) {\n+\t\tval date = new Date(Long.parseLong(teLogFileName.substring(3,teLogFileName.lastIndexOf(\".\"))))","path":"rcp/org.testeditor.rcp4.views.tcltestrun/src/org/testeditor/rcp4/views/tcltestrun/rest/TestExecutionLogService.xtend","position":58,"original_position":58,"commit_id":"b1d607b55f81ccd55808b228e638db75bf09dfae","original_commit_id":"b1d607b55f81ccd55808b228e638db75bf09dfae","user":{"login":"gunther-bachmann","id":12764214,"avatar_url":"https://avatars.githubusercontent.com/u/12764214?v=3","gravatar_id":"","url":"https://api.github.com/users/gunther-bachmann","html_url":"https://github.com/gunther-bachmann","followers_url":"https://api.github.com/users/gunther-bachmann/followers","following_url":"https://api.github.com/users/gunther-bachmann/following{/other_user}","gists_url":"https://api.github.com/users/gunther-bachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/gunther-bachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunther-bachmann/subscriptions","organizations_url":"https://api.github.com/users/gunther-bachmann/orgs","repos_url":"https://api.github.com/users/gunther-bachmann/repos","events_url":"https://api.github.com/users/gunther-bachmann/events{/privacy}","received_events_url":"https://api.github.com/users/gunther-bachmann/received_events","type":"User","site_admin":false},"body":"I would prefer to parse the date from log file name somewhere near the generation of the file name itself","created_at":"2016-10-25T12:03:27Z","updated_at":"2016-10-25T12:03:27Z","html_url":"https://github.com/test-editor/test-editor-xtext/pull/185#discussion_r84886387","pull_request_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185","_links":{"self":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments/84886387"},"html":{"href":"https://github.com/test-editor/test-editor-xtext/pull/185#discussion_r84886387"},"pull_request":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185","id":89444111,"html_url":"https://github.com/test-editor/test-editor-xtext/pull/185","diff_url":"https://github.com/test-editor/test-editor-xtext/pull/185.diff","patch_url":"https://github.com/test-editor/test-editor-xtext/pull/185.patch","issue_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/185","number":185,"state":"open","locked":false,"title":"TE-431 Rest Service for test execution: add rest infrastructure","user":{"login":"kpanier","id":7946468,"avatar_url":"https://avatars.githubusercontent.com/u/7946468?v=3","gravatar_id":"","url":"https://api.github.com/users/kpanier","html_url":"https://github.com/kpanier","followers_url":"https://api.github.com/users/kpanier/followers","following_url":"https://api.github.com/users/kpanier/following{/other_user}","gists_url":"https://api.github.com/users/kpanier/gists{/gist_id}","starred_url":"https://api.github.com/users/kpanier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpanier/subscriptions","organizations_url":"https://api.github.com/users/kpanier/orgs","repos_url":"https://api.github.com/users/kpanier/repos","events_url":"https://api.github.com/users/kpanier/events{/privacy}","received_events_url":"https://api.github.com/users/kpanier/received_events","type":"User","site_admin":false},"body":"Only for review at this state\r\n\r\n","created_at":"2016-10-14T19:49:55Z","updated_at":"2016-10-25T12:41:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c25a4e78c3bae5bfc916bcf7ca39b03ca97771c0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185/commits","review_comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185/comments","review_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/185/comments","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/b1d607b55f81ccd55808b228e638db75bf09dfae","head":{"label":"test-editor:feature/TE-431_rest_service_for_test_log_report","ref":"feature/TE-431_rest_service_for_test_log_report","sha":"b1d607b55f81ccd55808b228e638db75bf09dfae","user":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"repo":{"id":35145739,"name":"test-editor-xtext","full_name":"test-editor/test-editor-xtext","owner":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-editor/test-editor-xtext","description":"Xtext editor for editing xml configuration files of test-editor","fork":false,"url":"https://api.github.com/repos/test-editor/test-editor-xtext","forks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/forks","keys_url":"https://api.github.com/repos/test-editor/test-editor-xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-editor/test-editor-xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-editor/test-editor-xtext/teams","hooks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/hooks","issue_events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/events{/number}","events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/events","assignees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/assignees{/user}","branches_url":"https://api.github.com/repos/test-editor/test-editor-xtext/branches{/branch}","tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/tags","blobs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/test-editor/test-editor-xtext/languages","stargazers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/stargazers","contributors_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contributors","subscribers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscribers","subscription_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscription","commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contents/{+path}","compare_url":"https://api.github.com/repos/test-editor/test-editor-xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-editor/test-editor-xtext/merges","archive_url":"https://api.github.com/repos/test-editor/test-editor-xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-editor/test-editor-xtext/downloads","issues_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues{/number}","pulls_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/test-editor/test-editor-xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/test-editor/test-editor-xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-editor/test-editor-xtext/labels{/name}","releases_url":"https://api.github.com/repos/test-editor/test-editor-xtext/releases{/id}","deployments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/deployments","created_at":"2015-05-06T07:40:18Z","updated_at":"2016-06-21T20:25:09Z","pushed_at":"2016-10-25T11:47:45Z","git_url":"git://github.com/test-editor/test-editor-xtext.git","ssh_url":"git@github.com:test-editor/test-editor-xtext.git","clone_url":"https://github.com/test-editor/test-editor-xtext.git","svn_url":"https://github.com/test-editor/test-editor-xtext","homepage":null,"size":82578,"stargazers_count":4,"watchers_count":4,"language":"Xtend","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"develop"}},"base":{"label":"test-editor:develop","ref":"develop","sha":"ee5f5c54003e16d2b3b05260600d44ba217c1ec9","user":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"repo":{"id":35145739,"name":"test-editor-xtext","full_name":"test-editor/test-editor-xtext","owner":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-editor/test-editor-xtext","description":"Xtext editor for editing xml configuration files of test-editor","fork":false,"url":"https://api.github.com/repos/test-editor/test-editor-xtext","forks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/forks","keys_url":"https://api.github.com/repos/test-editor/test-editor-xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-editor/test-editor-xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-editor/test-editor-xtext/teams","hooks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/hooks","issue_events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/events{/number}","events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/events","assignees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/assignees{/user}","branches_url":"https://api.github.com/repos/test-editor/test-editor-xtext/branches{/branch}","tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/tags","blobs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/test-editor/test-editor-xtext/languages","stargazers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/stargazers","contributors_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contributors","subscribers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscribers","subscription_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscription","commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contents/{+path}","compare_url":"https://api.github.com/repos/test-editor/test-editor-xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-editor/test-editor-xtext/merges","archive_url":"https://api.github.com/repos/test-editor/test-editor-xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-editor/test-editor-xtext/downloads","issues_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues{/number}","pulls_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/test-editor/test-editor-xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/test-editor/test-editor-xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-editor/test-editor-xtext/labels{/name}","releases_url":"https://api.github.com/repos/test-editor/test-editor-xtext/releases{/id}","deployments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/deployments","created_at":"2015-05-06T07:40:18Z","updated_at":"2016-06-21T20:25:09Z","pushed_at":"2016-10-25T11:47:45Z","git_url":"git://github.com/test-editor/test-editor-xtext.git","ssh_url":"git@github.com:test-editor/test-editor-xtext.git","clone_url":"https://github.com/test-editor/test-editor-xtext.git","svn_url":"https://github.com/test-editor/test-editor-xtext","homepage":null,"size":82578,"stargazers_count":4,"watchers_count":4,"language":"Xtend","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185"},"html":{"href":"https://github.com/test-editor/test-editor-xtext/pull/185"},"issue":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/185"},"comments":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/b1d607b55f81ccd55808b228e638db75bf09dfae"}}}}
{"actor":{"display_login":"gunther-bachmann"}}