{"action":"created","comment":{"url":"https://api.github.com/repos/influxdata/platform/pulls/comments/227487790","pull_request_review_id":167541215,"id":227487790,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzQ4Nzc5MA==","diff_hunk":"@@ -0,0 +1,99 @@\n+import _ from 'lodash'\n+import React, {PureComponent} from 'react'\n+import {InjectedRouter} from 'react-router'\n+import {connect} from 'react-redux'\n+\n+import TaskForm from 'src/tasks/components/TaskForm'\n+import TaskHeader from 'src/tasks/components/TaskHeader'\n+import {Task} from 'src/types/v2/tasks'\n+\n+import {Links} from 'src/types/v2/links'\n+import {State as TasksState} from 'src/tasks/reducers/v2'\n+import {\n+  updateScript,\n+  selectTaskByID,\n+  setCurrentScript,\n+  cancelUpdateTask,\n+} from 'src/tasks/actions/v2'\n+\n+interface PassedInProps {\n+  router: InjectedRouter\n+  params: {id: string}\n+}\n+\n+interface ConnectStateProps {\n+  currentTask: Task\n+  currentScript: string\n+  tasksLink: string\n+}\n+\n+interface ConnectDispatchProps {\n+  setCurrentScript: typeof setCurrentScript\n+  updateScript: typeof updateScript\n+  cancelUpdateTask: typeof cancelUpdateTask\n+  selectTaskByID: typeof selectTaskByID\n+}\n+\n+class TaskPage extends PureComponent<\n+  PassedInProps & ConnectStateProps & ConnectDispatchProps\n+> {\n+  constructor(props) {\n+    super(props)\n+  }\n+\n+  public componentDidMount() {\n+    this.props.selectTaskByID(this.props.params.id)\n+  }\n+\n+  public render(): JSX.Element {\n+    const {currentScript} = this.props\n+\n+    return (\n+      <div className=\"page\">\n+        <TaskHeader\n+          title=\"Update Task\"\n+          onCancel={this.handleCancel}\n+          onSave={this.handleSave}\n+        />\n+        <TaskForm script={currentScript} onChange={this.handleChange} />\n+      </div>\n+    )\n+  }\n+\n+  private handleChange = (script: string) => {\n+    this.props.setCurrentScript(script)\n+  }\n+\n+  private handleSave = () => {\n+    this.props.updateScript()\n+  }\n+\n+  private handleCancel = () => {\n+    this.props.cancelUpdateTask()\n+  }\n+}\n+\n+const mstp = ({\n+  tasks,\n+  links,\n+}: {\n+  tasks: TasksState\n+  links: Links\n+}): ConnectStateProps => {\n+  return {\n+    currentScript: tasks.currentScript,\n+    tasksLink: links.tasks,\n+    currentTask: tasks.currentTask,\n+  }\n+}\n+\n+const mdtp: ConnectDispatchProps = {\n+  setCurrentScript,\n+  updateScript,\n+  cancelUpdateTask,\n+  selectTaskByID,","path":"chronograf/ui/src/tasks/containers/TaskEditPage.tsx","position":94,"original_position":94,"commit_id":"f240a76250a7df8c4f16b258c1dabda937fb5e60","original_commit_id":"f240a76250a7df8c4f16b258c1dabda937fb5e60","user":{"login":"bthesorceror","id":474821,"node_id":"MDQ6VXNlcjQ3NDgyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/474821?v=4","gravatar_id":"","url":"https://api.github.com/users/bthesorceror","html_url":"https://github.com/bthesorceror","followers_url":"https://api.github.com/users/bthesorceror/followers","following_url":"https://api.github.com/users/bthesorceror/following{/other_user}","gists_url":"https://api.github.com/users/bthesorceror/gists{/gist_id}","starred_url":"https://api.github.com/users/bthesorceror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bthesorceror/subscriptions","organizations_url":"https://api.github.com/users/bthesorceror/orgs","repos_url":"https://api.github.com/users/bthesorceror/repos","events_url":"https://api.github.com/users/bthesorceror/events{/privacy}","received_events_url":"https://api.github.com/users/bthesorceror/received_events","type":"User","site_admin":false},"body":"I have been reserving `on` for event handling not for actions","created_at":"2018-10-23T17:21:09Z","updated_at":"2018-10-23T17:21:10Z","html_url":"https://github.com/influxdata/platform/pull/1172#discussion_r227487790","pull_request_url":"https://api.github.com/repos/influxdata/platform/pulls/1172","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/influxdata/platform/pulls/comments/227487790"},"html":{"href":"https://github.com/influxdata/platform/pull/1172#discussion_r227487790"},"pull_request":{"href":"https://api.github.com/repos/influxdata/platform/pulls/1172"}},"in_reply_to_id":227486132},"pull_request":{"url":"https://api.github.com/repos/influxdata/platform/pulls/1172","id":225116257,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTE2MjU3","html_url":"https://github.com/influxdata/platform/pull/1172","diff_url":"https://github.com/influxdata/platform/pull/1172.diff","patch_url":"https://github.com/influxdata/platform/pull/1172.patch","issue_url":"https://api.github.com/repos/influxdata/platform/issues/1172","number":1172,"state":"open","locked":false,"title":"User can update a task","user":{"login":"bthesorceror","id":474821,"node_id":"MDQ6VXNlcjQ3NDgyMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/474821?v=4","gravatar_id":"","url":"https://api.github.com/users/bthesorceror","html_url":"https://github.com/bthesorceror","followers_url":"https://api.github.com/users/bthesorceror/followers","following_url":"https://api.github.com/users/bthesorceror/following{/other_user}","gists_url":"https://api.github.com/users/bthesorceror/gists{/gist_id}","starred_url":"https://api.github.com/users/bthesorceror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bthesorceror/subscriptions","organizations_url":"https://api.github.com/users/bthesorceror/orgs","repos_url":"https://api.github.com/users/bthesorceror/repos","events_url":"https://api.github.com/users/bthesorceror/events{/privacy}","received_events_url":"https://api.github.com/users/bthesorceror/received_events","type":"User","site_admin":false},"body":"Closes #960 \r\n\r\n  - [ ] Rebased/mergeable\r\n  - [ ] Tests pass\r\n  - [ ] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)","created_at":"2018-10-23T17:02:28Z","updated_at":"2018-10-23T17:21:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e79322e1da0fedf8d420d448dadf2ef83ff4ff70","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/influxdata/platform/pulls/1172/commits","review_comments_url":"https://api.github.com/repos/influxdata/platform/pulls/1172/comments","review_comment_url":"https://api.github.com/repos/influxdata/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdata/platform/issues/1172/comments","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/f240a76250a7df8c4f16b258c1dabda937fb5e60","head":{"label":"influxdata:tasks/update-task","ref":"tasks/update-task","sha":"f240a76250a7df8c4f16b258c1dabda937fb5e60","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":132783164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3ODMxNjQ=","name":"platform","full_name":"influxdata/platform","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/platform","description":"InfluxDB 2.0: The community version of the InfluxData Platform for Time Series","fork":false,"url":"https://api.github.com/repos/influxdata/platform","forks_url":"https://api.github.com/repos/influxdata/platform/forks","keys_url":"https://api.github.com/repos/influxdata/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/platform/teams","hooks_url":"https://api.github.com/repos/influxdata/platform/hooks","issue_events_url":"https://api.github.com/repos/influxdata/platform/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/platform/events","assignees_url":"https://api.github.com/repos/influxdata/platform/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/platform/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/platform/tags","blobs_url":"https://api.github.com/repos/influxdata/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/platform/languages","stargazers_url":"https://api.github.com/repos/influxdata/platform/stargazers","contributors_url":"https://api.github.com/repos/influxdata/platform/contributors","subscribers_url":"https://api.github.com/repos/influxdata/platform/subscribers","subscription_url":"https://api.github.com/repos/influxdata/platform/subscription","commits_url":"https://api.github.com/repos/influxdata/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/platform/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/platform/merges","archive_url":"https://api.github.com/repos/influxdata/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/platform/downloads","issues_url":"https://api.github.com/repos/influxdata/platform/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/platform/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/platform/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/platform/deployments","created_at":"2018-05-09T16:17:29Z","updated_at":"2018-10-23T15:53:21Z","pushed_at":"2018-10-23T17:03:31Z","git_url":"git://github.com/influxdata/platform.git","ssh_url":"git@github.com:influxdata/platform.git","clone_url":"https://github.com/influxdata/platform.git","svn_url":"https://github.com/influxdata/platform","homepage":"","size":35149,"stargazers_count":164,"watchers_count":164,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":378,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":378,"watchers":164,"default_branch":"master"}},"base":{"label":"influxdata:master","ref":"master","sha":"58b9adbb525de5229502e0937926657544d7f166","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":132783164,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3ODMxNjQ=","name":"platform","full_name":"influxdata/platform","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/platform","description":"InfluxDB 2.0: The community version of the InfluxData Platform for Time Series","fork":false,"url":"https://api.github.com/repos/influxdata/platform","forks_url":"https://api.github.com/repos/influxdata/platform/forks","keys_url":"https://api.github.com/repos/influxdata/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdata/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdata/platform/teams","hooks_url":"https://api.github.com/repos/influxdata/platform/hooks","issue_events_url":"https://api.github.com/repos/influxdata/platform/issues/events{/number}","events_url":"https://api.github.com/repos/influxdata/platform/events","assignees_url":"https://api.github.com/repos/influxdata/platform/assignees{/user}","branches_url":"https://api.github.com/repos/influxdata/platform/branches{/branch}","tags_url":"https://api.github.com/repos/influxdata/platform/tags","blobs_url":"https://api.github.com/repos/influxdata/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdata/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdata/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdata/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdata/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdata/platform/languages","stargazers_url":"https://api.github.com/repos/influxdata/platform/stargazers","contributors_url":"https://api.github.com/repos/influxdata/platform/contributors","subscribers_url":"https://api.github.com/repos/influxdata/platform/subscribers","subscription_url":"https://api.github.com/repos/influxdata/platform/subscription","commits_url":"https://api.github.com/repos/influxdata/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdata/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdata/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdata/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdata/platform/contents/{+path}","compare_url":"https://api.github.com/repos/influxdata/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdata/platform/merges","archive_url":"https://api.github.com/repos/influxdata/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdata/platform/downloads","issues_url":"https://api.github.com/repos/influxdata/platform/issues{/number}","pulls_url":"https://api.github.com/repos/influxdata/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdata/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdata/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdata/platform/labels{/name}","releases_url":"https://api.github.com/repos/influxdata/platform/releases{/id}","deployments_url":"https://api.github.com/repos/influxdata/platform/deployments","created_at":"2018-05-09T16:17:29Z","updated_at":"2018-10-23T15:53:21Z","pushed_at":"2018-10-23T17:03:31Z","git_url":"git://github.com/influxdata/platform.git","ssh_url":"git@github.com:influxdata/platform.git","clone_url":"https://github.com/influxdata/platform.git","svn_url":"https://github.com/influxdata/platform","homepage":"","size":35149,"stargazers_count":164,"watchers_count":164,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":378,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":378,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdata/platform/pulls/1172"},"html":{"href":"https://github.com/influxdata/platform/pull/1172"},"issue":{"href":"https://api.github.com/repos/influxdata/platform/issues/1172"},"comments":{"href":"https://api.github.com/repos/influxdata/platform/issues/1172/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdata/platform/pulls/1172/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdata/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdata/platform/pulls/1172/commits"},"statuses":{"href":"https://api.github.com/repos/influxdata/platform/statuses/f240a76250a7df8c4f16b258c1dabda937fb5e60"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bthesorceror"}}