{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/influxdb/pulls/comments/263974178","pull_request_review_id":212532941,"id":263974178,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2Mzk3NDE3OA==","diff_hunk":"@@ -0,0 +1,16 @@\n+import AJAX from 'src/utils/ajax'\n+\n+export const createAuthorization = async authorization => {\n+  try {\n+    const {data} = await AJAX({\n+      method: 'POST',","path":"ui/src/authorizations/apis/index.ts","position":6,"original_position":6,"commit_id":"95ae38a1514c86b9a06a68080ab4fdb172e60a74","original_commit_id":"95ae38a1514c86b9a06a68080ab4fdb172e60a74","user":{"login":"ischolten","id":5751863,"node_id":"MDQ6VXNlcjU3NTE4NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/5751863?v=4","gravatar_id":"","url":"https://api.github.com/users/ischolten","html_url":"https://github.com/ischolten","followers_url":"https://api.github.com/users/ischolten/followers","following_url":"https://api.github.com/users/ischolten/following{/other_user}","gists_url":"https://api.github.com/users/ischolten/gists{/gist_id}","starred_url":"https://api.github.com/users/ischolten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ischolten/subscriptions","organizations_url":"https://api.github.com/users/ischolten/orgs","repos_url":"https://api.github.com/users/ischolten/repos","events_url":"https://api.github.com/users/ischolten/events{/privacy}","received_events_url":"https://api.github.com/users/ischolten/received_events","type":"User","site_admin":false},"body":"should this be in the client library?","created_at":"2019-03-09T00:37:17Z","updated_at":"2019-03-09T00:59:50Z","html_url":"https://github.com/influxdata/influxdb/pull/12436#discussion_r263974178","pull_request_url":"https://api.github.com/repos/influxdata/influxdb/pulls/12436","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/comments/263974178"},"html":{"href":"https://github.com/influxdata/influxdb/pull/12436#discussion_r263974178"},"pull_request":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/12436"}}},"pull_request":{"url":"https://api.github.com/repos/influxdata/influxdb/pulls/12436","id":259296623,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU5Mjk2NjIz","html_url":"https://github.com/influxdata/influxdb/pull/12436","diff_url":"https://github.com/influxdata/influxdb/pull/12436.diff","patch_url":"https://github.com/influxdata/influxdb/pull/12436.patch","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/12436","number":12436,"state":"open","locked":false,"title":"Feat/tele token","user":{"login":"121watts","id":7582765,"node_id":"MDQ6VXNlcjc1ODI3NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/7582765?v=4","gravatar_id":"","url":"https://api.github.com/users/121watts","html_url":"https://github.com/121watts","followers_url":"https://api.github.com/users/121watts/followers","following_url":"https://api.github.com/users/121watts/following{/other_user}","gists_url":"https://api.github.com/users/121watts/gists{/gist_id}","starred_url":"https://api.github.com/users/121watts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/121watts/subscriptions","organizations_url":"https://api.github.com/users/121watts/orgs","repos_url":"https://api.github.com/users/121watts/repos","events_url":"https://api.github.com/users/121watts/events{/privacy}","received_events_url":"https://api.github.com/users/121watts/received_events","type":"User","site_admin":false},"body":"Closes #12431\r\n\r\n- Adds telegraf configs to redux\r\n- Creates a token of appropriate permissions for that telegraf config (read to that telegraf config / write to user specified bucket)\r\n- Displays said token instead of the master token to the user in the \"copy to CLI\" step\r\n- Stores said token as a label on the telegraf config\r\n- Removes said label and token then telegraf config is deleted\r\n\r\nPreviously we used the master user token for telegraf permissions.  \r\n\r\nNow, when a user creates a telegraf config we create a token with the appropriate permissions for the telegraf config.  \r\n\r\nThe way we accomplish this makes me sad.  We put a label with the token on the `TelegrafConfig`'s lables.  When the TelegrafConfig gets deleted we delete the corresponding label and token.  This makes me sad. \r\n","created_at":"2019-03-07T22:38:00Z","updated_at":"2019-03-09T00:59:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e53c0a485a8891ba3f2f58393e3d740f4d5af3b5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/influxdb/pulls/12436/commits","review_comments_url":"https://api.github.com/repos/influxdata/influxdb/pulls/12436/comments","review_comment_url":"https://api.github.com/repos/influxdata/influxdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/12436/comments","statuses_url":"https://api.github.com/repos/influxdata/influxdb/statuses/95ae38a1514c86b9a06a68080ab4fdb172e60a74","head":{"label":"influxdata:feat/tele-token","ref":"feat/tele-token","sha":"95ae38a1514c86b9a06a68080ab4fdb172e60a74","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyNDgwMg==","name":"influxdb","full_name":"influxdata/influxdb","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdata/influxdb","forks_url":"https://api.github.com/repos/influxdata/influxdb/forks","keys_url":"https://api.github.com/repos/influxdata/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdata/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdata/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/influxdb/events","assignees_url":"https://api.github.com/repos/influxdata/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdata/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdata/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdata/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdata/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdata/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdata/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/influxdb/merges","archive_url":"https://api.github.com/repos/influxdata/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdata/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/influxdb/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/influxdb/deployments","created_at":"2013-09-26T14:31:10Z","updated_at":"2019-03-09T00:05:28Z","pushed_at":"2019-03-09T00:58:13Z","git_url":"git://github.com/influxdata/influxdb.git","ssh_url":"git@github.com:influxdata/influxdb.git","clone_url":"https://github.com/influxdata/influxdb.git","svn_url":"https://github.com/influxdata/influxdb","homepage":"https://influxdata.com","size":105923,"stargazers_count":15738,"watchers_count":15738,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2260,"mirror_url":null,"archived":false,"open_issues_count":1428,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2260,"open_issues":1428,"watchers":15738,"default_branch":"master"}},"base":{"label":"influxdata:master","ref":"master","sha":"ae5bdeb997c2d8b21321f0d377a18d5ba3ca3017","user":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyNDgwMg==","name":"influxdb","full_name":"influxdata/influxdb","private":false,"owner":{"login":"influxdata","id":5713248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3MTMyNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/5713248?v=4","gravatar_id":"","url":"https://api.github.com/users/influxdata","html_url":"https://github.com/influxdata","followers_url":"https://api.github.com/users/influxdata/followers","following_url":"https://api.github.com/users/influxdata/following{/other_user}","gists_url":"https://api.github.com/users/influxdata/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdata/subscriptions","organizations_url":"https://api.github.com/users/influxdata/orgs","repos_url":"https://api.github.com/users/influxdata/repos","events_url":"https://api.github.com/users/influxdata/events{/privacy}","received_events_url":"https://api.github.com/users/influxdata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/influxdata/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdata/influxdb","forks_url":"https://api.github.com/repos/influxdata/influxdb/forks","keys_url":"https://api.github.com/repos/influxdata/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdata/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdata/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/influxdb/events","assignees_url":"https://api.github.com/repos/influxdata/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdata/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdata/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdata/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdata/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdata/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdata/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/influxdb/merges","archive_url":"https://api.github.com/repos/influxdata/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdata/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/influxdb/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/influxdb/deployments","created_at":"2013-09-26T14:31:10Z","updated_at":"2019-03-09T00:05:28Z","pushed_at":"2019-03-09T00:58:13Z","git_url":"git://github.com/influxdata/influxdb.git","ssh_url":"git@github.com:influxdata/influxdb.git","clone_url":"https://github.com/influxdata/influxdb.git","svn_url":"https://github.com/influxdata/influxdb","homepage":"https://influxdata.com","size":105923,"stargazers_count":15738,"watchers_count":15738,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2260,"mirror_url":null,"archived":false,"open_issues_count":1428,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2260,"open_issues":1428,"watchers":15738,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/12436"},"html":{"href":"https://github.com/influxdata/influxdb/pull/12436"},"issue":{"href":"https://api.github.com/repos/influxdata/influxdb/issues/12436"},"comments":{"href":"https://api.github.com/repos/influxdata/influxdb/issues/12436/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/12436/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/influxdb/pulls/12436/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/influxdb/statuses/95ae38a1514c86b9a06a68080ab4fdb172e60a74"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ischolten"}}