{"action":"created","comment":{"url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/comments/105157202","pull_request_review_id":26022297,"id":105157202,"diff_hunk":"@@ -427,10 +427,24 @@ const ClientEditor = React.createClass({\n         working: false,\n       });\n     } catch (err) {\n-      this.setState({","path":"src/auth/clients/clienteditor.jsx","position":4,"original_position":4,"commit_id":"1068ab5fa1da8521791e404438918594a5b1671f","original_commit_id":"1068ab5fa1da8521791e404438918594a5b1671f","user":{"login":"eliperelman","id":285899,"avatar_url":"https://avatars3.githubusercontent.com/u/285899?v=3","gravatar_id":"","url":"https://api.github.com/users/eliperelman","html_url":"https://github.com/eliperelman","followers_url":"https://api.github.com/users/eliperelman/followers","following_url":"https://api.github.com/users/eliperelman/following{/other_user}","gists_url":"https://api.github.com/users/eliperelman/gists{/gist_id}","starred_url":"https://api.github.com/users/eliperelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliperelman/subscriptions","organizations_url":"https://api.github.com/users/eliperelman/orgs","repos_url":"https://api.github.com/users/eliperelman/repos","events_url":"https://api.github.com/users/eliperelman/events{/privacy}","received_events_url":"https://api.github.com/users/eliperelman/received_events","type":"User","site_admin":false},"body":"At the top of the page we import `auth`, a helper for working with credentials:\r\n\r\nhttps://github.com/Sidd0107/taskcluster-tools/blob/1068ab5fa1da8521791e404438918594a5b1671f/src/auth/clients/clienteditor.jsx#L11\r\n\r\nIt is already in use in this file, and you can see an example of that here:\r\n\r\nhttps://github.com/Sidd0107/taskcluster-tools/blob/1068ab5fa1da8521791e404438918594a5b1671f/src/auth/clients/clienteditor.jsx#L115-L116\r\n\r\nSo the value of whether there are credentials or not is driving the value. The same technique can be applied here as well.\r\n\r\n```js\r\nthis.setState({\r\n  working: false,\r\n  error: auth.loadCredentials() ?\r\n    'You do not have sufficient permission to reset access tokens for this user.' :\r\n    'You must be logged in and have permission to reset access tokens for this user.'\r\n});\r\n```","created_at":"2017-03-09T13:01:41Z","updated_at":"2017-03-09T13:03:28Z","html_url":"https://github.com/taskcluster/taskcluster-tools/pull/199#discussion_r105157202","pull_request_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199","_links":{"self":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/comments/105157202"},"html":{"href":"https://github.com/taskcluster/taskcluster-tools/pull/199#discussion_r105157202"},"pull_request":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199","id":107722508,"html_url":"https://github.com/taskcluster/taskcluster-tools/pull/199","diff_url":"https://github.com/taskcluster/taskcluster-tools/pull/199.diff","patch_url":"https://github.com/taskcluster/taskcluster-tools/pull/199.patch","issue_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/199","number":199,"state":"open","locked":false,"title":"Error displayed, when resetting access tokens, is clear. Bug fixed.","user":{"login":"Sidd0107","id":9144587,"avatar_url":"https://avatars3.githubusercontent.com/u/9144587?v=3","gravatar_id":"","url":"https://api.github.com/users/Sidd0107","html_url":"https://github.com/Sidd0107","followers_url":"https://api.github.com/users/Sidd0107/followers","following_url":"https://api.github.com/users/Sidd0107/following{/other_user}","gists_url":"https://api.github.com/users/Sidd0107/gists{/gist_id}","starred_url":"https://api.github.com/users/Sidd0107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sidd0107/subscriptions","organizations_url":"https://api.github.com/users/Sidd0107/orgs","repos_url":"https://api.github.com/users/Sidd0107/repos","events_url":"https://api.github.com/users/Sidd0107/events{/privacy}","received_events_url":"https://api.github.com/users/Sidd0107/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-23T21:59:55Z","updated_at":"2017-03-09T13:03:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a3020b39d4ab34ebc9541afedf5078b0baafcbc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199/commits","review_comments_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199/comments","review_comment_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/199/comments","statuses_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/statuses/1068ab5fa1da8521791e404438918594a5b1671f","head":{"label":"Sidd0107:master","ref":"master","sha":"1068ab5fa1da8521791e404438918594a5b1671f","user":{"login":"Sidd0107","id":9144587,"avatar_url":"https://avatars3.githubusercontent.com/u/9144587?v=3","gravatar_id":"","url":"https://api.github.com/users/Sidd0107","html_url":"https://github.com/Sidd0107","followers_url":"https://api.github.com/users/Sidd0107/followers","following_url":"https://api.github.com/users/Sidd0107/following{/other_user}","gists_url":"https://api.github.com/users/Sidd0107/gists{/gist_id}","starred_url":"https://api.github.com/users/Sidd0107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sidd0107/subscriptions","organizations_url":"https://api.github.com/users/Sidd0107/orgs","repos_url":"https://api.github.com/users/Sidd0107/repos","events_url":"https://api.github.com/users/Sidd0107/events{/privacy}","received_events_url":"https://api.github.com/users/Sidd0107/received_events","type":"User","site_admin":false},"repo":{"id":82865524,"name":"taskcluster-tools","full_name":"Sidd0107/taskcluster-tools","owner":{"login":"Sidd0107","id":9144587,"avatar_url":"https://avatars3.githubusercontent.com/u/9144587?v=3","gravatar_id":"","url":"https://api.github.com/users/Sidd0107","html_url":"https://github.com/Sidd0107","followers_url":"https://api.github.com/users/Sidd0107/followers","following_url":"https://api.github.com/users/Sidd0107/following{/other_user}","gists_url":"https://api.github.com/users/Sidd0107/gists{/gist_id}","starred_url":"https://api.github.com/users/Sidd0107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sidd0107/subscriptions","organizations_url":"https://api.github.com/users/Sidd0107/orgs","repos_url":"https://api.github.com/users/Sidd0107/repos","events_url":"https://api.github.com/users/Sidd0107/events{/privacy}","received_events_url":"https://api.github.com/users/Sidd0107/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sidd0107/taskcluster-tools","description":"Tools for debugging, inspecting and managing TaskCluster","fork":true,"url":"https://api.github.com/repos/Sidd0107/taskcluster-tools","forks_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/forks","keys_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/teams","hooks_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/hooks","issue_events_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/events","assignees_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/tags","blobs_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/languages","stargazers_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/stargazers","contributors_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/contributors","subscribers_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/subscribers","subscription_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/subscription","commits_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/merges","archive_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/downloads","issues_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/labels{/name}","releases_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/releases{/id}","deployments_url":"https://api.github.com/repos/Sidd0107/taskcluster-tools/deployments","created_at":"2017-02-23T00:13:06Z","updated_at":"2017-02-23T00:13:09Z","pushed_at":"2017-03-09T05:09:09Z","git_url":"git://github.com/Sidd0107/taskcluster-tools.git","ssh_url":"git@github.com:Sidd0107/taskcluster-tools.git","clone_url":"https://github.com/Sidd0107/taskcluster-tools.git","svn_url":"https://github.com/Sidd0107/taskcluster-tools","homepage":null,"size":2718,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"taskcluster:master","ref":"master","sha":"266da0f39de3967def3686e9954991c1e10457f0","user":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars1.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"repo":{"id":25545398,"name":"taskcluster-tools","full_name":"taskcluster/taskcluster-tools","owner":{"login":"taskcluster","id":6257436,"avatar_url":"https://avatars1.githubusercontent.com/u/6257436?v=3","gravatar_id":"","url":"https://api.github.com/users/taskcluster","html_url":"https://github.com/taskcluster","followers_url":"https://api.github.com/users/taskcluster/followers","following_url":"https://api.github.com/users/taskcluster/following{/other_user}","gists_url":"https://api.github.com/users/taskcluster/gists{/gist_id}","starred_url":"https://api.github.com/users/taskcluster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taskcluster/subscriptions","organizations_url":"https://api.github.com/users/taskcluster/orgs","repos_url":"https://api.github.com/users/taskcluster/repos","events_url":"https://api.github.com/users/taskcluster/events{/privacy}","received_events_url":"https://api.github.com/users/taskcluster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taskcluster/taskcluster-tools","description":"Tools for debugging, inspecting and managing TaskCluster","fork":false,"url":"https://api.github.com/repos/taskcluster/taskcluster-tools","forks_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/forks","keys_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/teams","hooks_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/hooks","issue_events_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/events{/number}","events_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/events","assignees_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/assignees{/user}","branches_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/branches{/branch}","tags_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/tags","blobs_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/languages","stargazers_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/stargazers","contributors_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/contributors","subscribers_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/subscribers","subscription_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/subscription","commits_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/contents/{+path}","compare_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/merges","archive_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/downloads","issues_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues{/number}","pulls_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/labels{/name}","releases_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/releases{/id}","deployments_url":"https://api.github.com/repos/taskcluster/taskcluster-tools/deployments","created_at":"2014-10-21T20:51:27Z","updated_at":"2016-11-10T22:42:41Z","pushed_at":"2017-03-09T05:09:10Z","git_url":"git://github.com/taskcluster/taskcluster-tools.git","ssh_url":"git@github.com:taskcluster/taskcluster-tools.git","clone_url":"https://github.com/taskcluster/taskcluster-tools.git","svn_url":"https://github.com/taskcluster/taskcluster-tools","homepage":null,"size":2714,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":8,"forks":43,"open_issues":8,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199"},"html":{"href":"https://github.com/taskcluster/taskcluster-tools/pull/199"},"issue":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/199"},"comments":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/taskcluster/taskcluster-tools/statuses/1068ab5fa1da8521791e404438918594a5b1671f"}}}}
{"actor":{"display_login":"eliperelman"}}