{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1","id":116342603,"html_url":"https://github.com/urahiroshi/e2e-server/pull/1","diff_url":"https://github.com/urahiroshi/e2e-server/pull/1.diff","patch_url":"https://github.com/urahiroshi/e2e-server/pull/1.patch","issue_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] Remove usecase model","user":{"login":"urahiroshi","id":992292,"avatar_url":"https://avatars1.githubusercontent.com/u/992292?v=3","gravatar_id":"","url":"https://api.github.com/users/urahiroshi","html_url":"https://github.com/urahiroshi","followers_url":"https://api.github.com/users/urahiroshi/followers","following_url":"https://api.github.com/users/urahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/urahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urahiroshi/subscriptions","organizations_url":"https://api.github.com/users/urahiroshi/orgs","repos_url":"https://api.github.com/users/urahiroshi/repos","events_url":"https://api.github.com/users/urahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/urahiroshi/received_events","type":"User","site_admin":false},"body":"### Problem\r\n\r\n1. Usecase API is available without authentication,\r\nso if usecase may be executed or editted by user\r\nwho is unwanted by user created original usecase.\r\n\r\n2. Actions of usecase is editted by web UI and\r\npreserved in database, but developpers are familier to\r\ntext editor and version management systems.\r\n\r\n### Solution\r\n\r\n- Don't preserve usecase actions in database and\r\ntrial is posted by usecase hash table, not by usecase id.\r\n\r\n- Don't call put/post/delete APIs from web UI,\r\nit only shows status of trials.\r\n\r\n- Create client application which calls e2e-server APIs\r\nto post new trials from yaml files describing usecases.\r\n\r\n- To bundle usecases and preserve history of trials,\r\nadd \"Project\" model.\r\n\r\n### Fix\r\n\r\n- [ ] Fix APIs to remove usecase and fix model of trial\r\n- [ ] Add \"Project\" model to API\r\n- [ ] Add client application\r\n- [ ] Fix web UI not to call put/post/delete APIs and show project view\r\n\r\nSo I change\r\n- [ ]","created_at":"2017-04-18T14:36:43Z","updated_at":"2017-04-18T14:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1/commits","review_comments_url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1/comments","review_comment_url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/1/comments","statuses_url":"https://api.github.com/repos/urahiroshi/e2e-server/statuses/d84f1c04467329574a6b230079f5dbda1e6f1dc8","head":{"label":"urahiroshi:remove-usecase-model","ref":"remove-usecase-model","sha":"d84f1c04467329574a6b230079f5dbda1e6f1dc8","user":{"login":"urahiroshi","id":992292,"avatar_url":"https://avatars1.githubusercontent.com/u/992292?v=3","gravatar_id":"","url":"https://api.github.com/users/urahiroshi","html_url":"https://github.com/urahiroshi","followers_url":"https://api.github.com/users/urahiroshi/followers","following_url":"https://api.github.com/users/urahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/urahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urahiroshi/subscriptions","organizations_url":"https://api.github.com/users/urahiroshi/orgs","repos_url":"https://api.github.com/users/urahiroshi/repos","events_url":"https://api.github.com/users/urahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/urahiroshi/received_events","type":"User","site_admin":false},"repo":{"id":86656322,"name":"e2e-server","full_name":"urahiroshi/e2e-server","owner":{"login":"urahiroshi","id":992292,"avatar_url":"https://avatars1.githubusercontent.com/u/992292?v=3","gravatar_id":"","url":"https://api.github.com/users/urahiroshi","html_url":"https://github.com/urahiroshi","followers_url":"https://api.github.com/users/urahiroshi/followers","following_url":"https://api.github.com/users/urahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/urahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urahiroshi/subscriptions","organizations_url":"https://api.github.com/users/urahiroshi/orgs","repos_url":"https://api.github.com/users/urahiroshi/repos","events_url":"https://api.github.com/users/urahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/urahiroshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/urahiroshi/e2e-server","description":null,"fork":false,"url":"https://api.github.com/repos/urahiroshi/e2e-server","forks_url":"https://api.github.com/repos/urahiroshi/e2e-server/forks","keys_url":"https://api.github.com/repos/urahiroshi/e2e-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urahiroshi/e2e-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urahiroshi/e2e-server/teams","hooks_url":"https://api.github.com/repos/urahiroshi/e2e-server/hooks","issue_events_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/events{/number}","events_url":"https://api.github.com/repos/urahiroshi/e2e-server/events","assignees_url":"https://api.github.com/repos/urahiroshi/e2e-server/assignees{/user}","branches_url":"https://api.github.com/repos/urahiroshi/e2e-server/branches{/branch}","tags_url":"https://api.github.com/repos/urahiroshi/e2e-server/tags","blobs_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urahiroshi/e2e-server/statuses/{sha}","languages_url":"https://api.github.com/repos/urahiroshi/e2e-server/languages","stargazers_url":"https://api.github.com/repos/urahiroshi/e2e-server/stargazers","contributors_url":"https://api.github.com/repos/urahiroshi/e2e-server/contributors","subscribers_url":"https://api.github.com/repos/urahiroshi/e2e-server/subscribers","subscription_url":"https://api.github.com/repos/urahiroshi/e2e-server/subscription","commits_url":"https://api.github.com/repos/urahiroshi/e2e-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/urahiroshi/e2e-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/urahiroshi/e2e-server/contents/{+path}","compare_url":"https://api.github.com/repos/urahiroshi/e2e-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urahiroshi/e2e-server/merges","archive_url":"https://api.github.com/repos/urahiroshi/e2e-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urahiroshi/e2e-server/downloads","issues_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues{/number}","pulls_url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls{/number}","milestones_url":"https://api.github.com/repos/urahiroshi/e2e-server/milestones{/number}","notifications_url":"https://api.github.com/repos/urahiroshi/e2e-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urahiroshi/e2e-server/labels{/name}","releases_url":"https://api.github.com/repos/urahiroshi/e2e-server/releases{/id}","deployments_url":"https://api.github.com/repos/urahiroshi/e2e-server/deployments","created_at":"2017-03-30T03:48:02Z","updated_at":"2017-03-30T03:50:19Z","pushed_at":"2017-04-18T14:36:07Z","git_url":"git://github.com/urahiroshi/e2e-server.git","ssh_url":"git@github.com:urahiroshi/e2e-server.git","clone_url":"https://github.com/urahiroshi/e2e-server.git","svn_url":"https://github.com/urahiroshi/e2e-server","homepage":null,"size":525,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"urahiroshi:master","ref":"master","sha":"0348cd1e563e6e95aca4e2442fe42c6799b53405","user":{"login":"urahiroshi","id":992292,"avatar_url":"https://avatars1.githubusercontent.com/u/992292?v=3","gravatar_id":"","url":"https://api.github.com/users/urahiroshi","html_url":"https://github.com/urahiroshi","followers_url":"https://api.github.com/users/urahiroshi/followers","following_url":"https://api.github.com/users/urahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/urahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urahiroshi/subscriptions","organizations_url":"https://api.github.com/users/urahiroshi/orgs","repos_url":"https://api.github.com/users/urahiroshi/repos","events_url":"https://api.github.com/users/urahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/urahiroshi/received_events","type":"User","site_admin":false},"repo":{"id":86656322,"name":"e2e-server","full_name":"urahiroshi/e2e-server","owner":{"login":"urahiroshi","id":992292,"avatar_url":"https://avatars1.githubusercontent.com/u/992292?v=3","gravatar_id":"","url":"https://api.github.com/users/urahiroshi","html_url":"https://github.com/urahiroshi","followers_url":"https://api.github.com/users/urahiroshi/followers","following_url":"https://api.github.com/users/urahiroshi/following{/other_user}","gists_url":"https://api.github.com/users/urahiroshi/gists{/gist_id}","starred_url":"https://api.github.com/users/urahiroshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urahiroshi/subscriptions","organizations_url":"https://api.github.com/users/urahiroshi/orgs","repos_url":"https://api.github.com/users/urahiroshi/repos","events_url":"https://api.github.com/users/urahiroshi/events{/privacy}","received_events_url":"https://api.github.com/users/urahiroshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/urahiroshi/e2e-server","description":null,"fork":false,"url":"https://api.github.com/repos/urahiroshi/e2e-server","forks_url":"https://api.github.com/repos/urahiroshi/e2e-server/forks","keys_url":"https://api.github.com/repos/urahiroshi/e2e-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urahiroshi/e2e-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urahiroshi/e2e-server/teams","hooks_url":"https://api.github.com/repos/urahiroshi/e2e-server/hooks","issue_events_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/events{/number}","events_url":"https://api.github.com/repos/urahiroshi/e2e-server/events","assignees_url":"https://api.github.com/repos/urahiroshi/e2e-server/assignees{/user}","branches_url":"https://api.github.com/repos/urahiroshi/e2e-server/branches{/branch}","tags_url":"https://api.github.com/repos/urahiroshi/e2e-server/tags","blobs_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urahiroshi/e2e-server/statuses/{sha}","languages_url":"https://api.github.com/repos/urahiroshi/e2e-server/languages","stargazers_url":"https://api.github.com/repos/urahiroshi/e2e-server/stargazers","contributors_url":"https://api.github.com/repos/urahiroshi/e2e-server/contributors","subscribers_url":"https://api.github.com/repos/urahiroshi/e2e-server/subscribers","subscription_url":"https://api.github.com/repos/urahiroshi/e2e-server/subscription","commits_url":"https://api.github.com/repos/urahiroshi/e2e-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/urahiroshi/e2e-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/urahiroshi/e2e-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/urahiroshi/e2e-server/contents/{+path}","compare_url":"https://api.github.com/repos/urahiroshi/e2e-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urahiroshi/e2e-server/merges","archive_url":"https://api.github.com/repos/urahiroshi/e2e-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urahiroshi/e2e-server/downloads","issues_url":"https://api.github.com/repos/urahiroshi/e2e-server/issues{/number}","pulls_url":"https://api.github.com/repos/urahiroshi/e2e-server/pulls{/number}","milestones_url":"https://api.github.com/repos/urahiroshi/e2e-server/milestones{/number}","notifications_url":"https://api.github.com/repos/urahiroshi/e2e-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urahiroshi/e2e-server/labels{/name}","releases_url":"https://api.github.com/repos/urahiroshi/e2e-server/releases{/id}","deployments_url":"https://api.github.com/repos/urahiroshi/e2e-server/deployments","created_at":"2017-03-30T03:48:02Z","updated_at":"2017-03-30T03:50:19Z","pushed_at":"2017-04-18T14:36:07Z","git_url":"git://github.com/urahiroshi/e2e-server.git","ssh_url":"git@github.com:urahiroshi/e2e-server.git","clone_url":"https://github.com/urahiroshi/e2e-server.git","svn_url":"https://github.com/urahiroshi/e2e-server","homepage":null,"size":525,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1"},"html":{"href":"https://github.com/urahiroshi/e2e-server/pull/1"},"issue":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/issues/1"},"comments":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/urahiroshi/e2e-server/statuses/d84f1c04467329574a6b230079f5dbda1e6f1dc8"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":0,"deletions":0,"changed_files":0}}
{"actor":{"display_login":"urahiroshi"}}