{"action":"created","comment":{"url":"https://api.github.com/repos/500tech/bdsm/pulls/comments/50941949","id":50941949,"diff_hunk":"@@ -102,11 +100,15 @@ export class CapturedRequests extends React.Component {\n               <ActiveIndicator active={ this._isAlreadyMocked(request) }\n                                onToggle={ () => {} }/>\n               <MethodLabel method={ request.method }/>\n-              { this._requestDetailsFor(request) }\n+              <Url url={ request.url }/>\n             </div>\n \n-            { this._actionButtonFor(request) }\n+            <div className=\"buttons\">\n+              { this._actionButtonFor(request) }\n+              <button className=\"btn btn-mock\" onClick={ this._mockRequest.bind(this, request) }>Mock</button>","path":"lib/ui/components/captured-requests.js","position":47,"original_position":47,"commit_id":"dbcc65564380b173fb3467876159cf300b6414b1","original_commit_id":"0bd694df8edea4e92d7db3af1d42dc48d7767242","user":{"login":"morsdyce","id":1665570,"avatar_url":"https://avatars.githubusercontent.com/u/1665570?v=3","gravatar_id":"","url":"https://api.github.com/users/morsdyce","html_url":"https://github.com/morsdyce","followers_url":"https://api.github.com/users/morsdyce/followers","following_url":"https://api.github.com/users/morsdyce/following{/other_user}","gists_url":"https://api.github.com/users/morsdyce/gists{/gist_id}","starred_url":"https://api.github.com/users/morsdyce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morsdyce/subscriptions","organizations_url":"https://api.github.com/users/morsdyce/orgs","repos_url":"https://api.github.com/users/morsdyce/repos","events_url":"https://api.github.com/users/morsdyce/events{/privacy}","received_events_url":"https://api.github.com/users/morsdyce/received_events","type":"User","site_admin":false},"body":"Can you provide a link to the comment or line?\r\n\r\nCurrently I see this change as a broken UI. You can see the mock and edit buttons at the same time.\r\nClicking the mock button more than once causes duplicate requests in the mocked requests section which isn't the intended behaviour. \r\n\r\n<img width=\"775\" alt=\"screenshot 2016-01-27 00 06 21\" src=\"https://cloud.githubusercontent.com/assets/1665570/12604487/073def18-c48a-11e5-853e-dde4c703fc1d.png\">\r\n","created_at":"2016-01-27T05:08:06Z","updated_at":"2016-01-27T05:08:06Z","html_url":"https://github.com/500tech/bdsm/pull/122#discussion_r50941949","pull_request_url":"https://api.github.com/repos/500tech/bdsm/pulls/122","_links":{"self":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/comments/50941949"},"html":{"href":"https://github.com/500tech/bdsm/pull/122#discussion_r50941949"},"pull_request":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/122"}}},"pull_request":{"url":"https://api.github.com/repos/500tech/bdsm/pulls/122","id":56986950,"html_url":"https://github.com/500tech/bdsm/pull/122","diff_url":"https://github.com/500tech/bdsm/pull/122.diff","patch_url":"https://github.com/500tech/bdsm/pull/122.patch","issue_url":"https://api.github.com/repos/500tech/bdsm/issues/122","number":122,"state":"open","locked":false,"title":"Allow to scope mocks according to app name","user":{"login":"adamkleingit","id":889418,"avatar_url":"https://avatars.githubusercontent.com/u/889418?v=3","gravatar_id":"","url":"https://api.github.com/users/adamkleingit","html_url":"https://github.com/adamkleingit","followers_url":"https://api.github.com/users/adamkleingit/followers","following_url":"https://api.github.com/users/adamkleingit/following{/other_user}","gists_url":"https://api.github.com/users/adamkleingit/gists{/gist_id}","starred_url":"https://api.github.com/users/adamkleingit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamkleingit/subscriptions","organizations_url":"https://api.github.com/users/adamkleingit/orgs","repos_url":"https://api.github.com/users/adamkleingit/repos","events_url":"https://api.github.com/users/adamkleingit/events{/privacy}","received_events_url":"https://api.github.com/users/adamkleingit/received_events","type":"User","site_admin":false},"body":"Expose BDSM as global\r\nSupport regexp in mocked request\r\nAllow to edit Mocked Request URL\r\nDisplay original request URL along the mocked response name\r\n\r\ncloses #120 and #121 ","created_at":"2016-01-23T21:22:38Z","updated_at":"2016-01-27T05:08:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dab7d6ba6b6bb3637f8679f4fdde86a8b5507c6c","assignee":{"login":"morsdyce","id":1665570,"avatar_url":"https://avatars.githubusercontent.com/u/1665570?v=3","gravatar_id":"","url":"https://api.github.com/users/morsdyce","html_url":"https://github.com/morsdyce","followers_url":"https://api.github.com/users/morsdyce/followers","following_url":"https://api.github.com/users/morsdyce/following{/other_user}","gists_url":"https://api.github.com/users/morsdyce/gists{/gist_id}","starred_url":"https://api.github.com/users/morsdyce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morsdyce/subscriptions","organizations_url":"https://api.github.com/users/morsdyce/orgs","repos_url":"https://api.github.com/users/morsdyce/repos","events_url":"https://api.github.com/users/morsdyce/events{/privacy}","received_events_url":"https://api.github.com/users/morsdyce/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/500tech/bdsm/pulls/122/commits","review_comments_url":"https://api.github.com/repos/500tech/bdsm/pulls/122/comments","review_comment_url":"https://api.github.com/repos/500tech/bdsm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/500tech/bdsm/issues/122/comments","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/dbcc65564380b173fb3467876159cf300b6414b1","head":{"label":"500tech:url_regex_and_set_app_name","ref":"url_regex_and_set_app_name","sha":"dbcc65564380b173fb3467876159cf300b6414b1","user":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"repo":{"id":46858990,"name":"bdsm","full_name":"500tech/bdsm","owner":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/500tech/bdsm","description":"Bad ass client side mocking solution","fork":false,"url":"https://api.github.com/repos/500tech/bdsm","forks_url":"https://api.github.com/repos/500tech/bdsm/forks","keys_url":"https://api.github.com/repos/500tech/bdsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/500tech/bdsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/500tech/bdsm/teams","hooks_url":"https://api.github.com/repos/500tech/bdsm/hooks","issue_events_url":"https://api.github.com/repos/500tech/bdsm/issues/events{/number}","events_url":"https://api.github.com/repos/500tech/bdsm/events","assignees_url":"https://api.github.com/repos/500tech/bdsm/assignees{/user}","branches_url":"https://api.github.com/repos/500tech/bdsm/branches{/branch}","tags_url":"https://api.github.com/repos/500tech/bdsm/tags","blobs_url":"https://api.github.com/repos/500tech/bdsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/500tech/bdsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/500tech/bdsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/500tech/bdsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/{sha}","languages_url":"https://api.github.com/repos/500tech/bdsm/languages","stargazers_url":"https://api.github.com/repos/500tech/bdsm/stargazers","contributors_url":"https://api.github.com/repos/500tech/bdsm/contributors","subscribers_url":"https://api.github.com/repos/500tech/bdsm/subscribers","subscription_url":"https://api.github.com/repos/500tech/bdsm/subscription","commits_url":"https://api.github.com/repos/500tech/bdsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/500tech/bdsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/500tech/bdsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/500tech/bdsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/500tech/bdsm/contents/{+path}","compare_url":"https://api.github.com/repos/500tech/bdsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/500tech/bdsm/merges","archive_url":"https://api.github.com/repos/500tech/bdsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/500tech/bdsm/downloads","issues_url":"https://api.github.com/repos/500tech/bdsm/issues{/number}","pulls_url":"https://api.github.com/repos/500tech/bdsm/pulls{/number}","milestones_url":"https://api.github.com/repos/500tech/bdsm/milestones{/number}","notifications_url":"https://api.github.com/repos/500tech/bdsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/500tech/bdsm/labels{/name}","releases_url":"https://api.github.com/repos/500tech/bdsm/releases{/id}","deployments_url":"https://api.github.com/repos/500tech/bdsm/deployments","created_at":"2015-11-25T12:00:23Z","updated_at":"2016-01-11T17:43:24Z","pushed_at":"2016-01-24T17:49:34Z","git_url":"git://github.com/500tech/bdsm.git","ssh_url":"git@github.com:500tech/bdsm.git","clone_url":"https://github.com/500tech/bdsm.git","svn_url":"https://github.com/500tech/bdsm","homepage":"","size":331,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":6,"default_branch":"master"}},"base":{"label":"500tech:master","ref":"master","sha":"e75fe62048f47aa8c65071b67906350f8bb19a45","user":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"repo":{"id":46858990,"name":"bdsm","full_name":"500tech/bdsm","owner":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/500tech/bdsm","description":"Bad ass client side mocking solution","fork":false,"url":"https://api.github.com/repos/500tech/bdsm","forks_url":"https://api.github.com/repos/500tech/bdsm/forks","keys_url":"https://api.github.com/repos/500tech/bdsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/500tech/bdsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/500tech/bdsm/teams","hooks_url":"https://api.github.com/repos/500tech/bdsm/hooks","issue_events_url":"https://api.github.com/repos/500tech/bdsm/issues/events{/number}","events_url":"https://api.github.com/repos/500tech/bdsm/events","assignees_url":"https://api.github.com/repos/500tech/bdsm/assignees{/user}","branches_url":"https://api.github.com/repos/500tech/bdsm/branches{/branch}","tags_url":"https://api.github.com/repos/500tech/bdsm/tags","blobs_url":"https://api.github.com/repos/500tech/bdsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/500tech/bdsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/500tech/bdsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/500tech/bdsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/{sha}","languages_url":"https://api.github.com/repos/500tech/bdsm/languages","stargazers_url":"https://api.github.com/repos/500tech/bdsm/stargazers","contributors_url":"https://api.github.com/repos/500tech/bdsm/contributors","subscribers_url":"https://api.github.com/repos/500tech/bdsm/subscribers","subscription_url":"https://api.github.com/repos/500tech/bdsm/subscription","commits_url":"https://api.github.com/repos/500tech/bdsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/500tech/bdsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/500tech/bdsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/500tech/bdsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/500tech/bdsm/contents/{+path}","compare_url":"https://api.github.com/repos/500tech/bdsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/500tech/bdsm/merges","archive_url":"https://api.github.com/repos/500tech/bdsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/500tech/bdsm/downloads","issues_url":"https://api.github.com/repos/500tech/bdsm/issues{/number}","pulls_url":"https://api.github.com/repos/500tech/bdsm/pulls{/number}","milestones_url":"https://api.github.com/repos/500tech/bdsm/milestones{/number}","notifications_url":"https://api.github.com/repos/500tech/bdsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/500tech/bdsm/labels{/name}","releases_url":"https://api.github.com/repos/500tech/bdsm/releases{/id}","deployments_url":"https://api.github.com/repos/500tech/bdsm/deployments","created_at":"2015-11-25T12:00:23Z","updated_at":"2016-01-11T17:43:24Z","pushed_at":"2016-01-24T17:49:34Z","git_url":"git://github.com/500tech/bdsm.git","ssh_url":"git@github.com:500tech/bdsm.git","clone_url":"https://github.com/500tech/bdsm.git","svn_url":"https://github.com/500tech/bdsm","homepage":"","size":331,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":28,"forks":0,"open_issues":28,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/122"},"html":{"href":"https://github.com/500tech/bdsm/pull/122"},"issue":{"href":"https://api.github.com/repos/500tech/bdsm/issues/122"},"comments":{"href":"https://api.github.com/repos/500tech/bdsm/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/500tech/bdsm/statuses/dbcc65564380b173fb3467876159cf300b6414b1"}}}}