{"action":"created","comment":{"url":"https://api.github.com/repos/linode/manager/pulls/comments/232729059","pull_request_review_id":173990055,"id":232729059,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjcyOTA1OQ==","diff_hunk":"@@ -0,0 +1,101 @@\n+import * as React from 'react';\n+\n+import { concat } from 'ramda';\n+\n+import Select, { Item, NoOptionsMessageProps } from 'src/components/EnhancedSelect/Select';\n+\n+import { getTags } from 'src/services/tags';\n+import composeState from 'src/utilities/composeState';\n+import getAPIErrorFor from 'src/utilities/getAPIErrorFor';\n+\n+\n+export interface Tag {\n+  value: string;\n+  label: string;\n+}\n+\n+export interface Props {\n+  tagError?: string;\n+  value: Item[];\n+  onChange: (selected: Item | Item[]) => void;\n+}\n+\n+class TagsInput extends React.Component<Props> {\n+  composeState = composeState;\n+\n+  createTag = (inputValue:string) => {\n+    const { accountTags } = this.state;\n+    const { value, onChange } = this.props;\n+    this.setState({ errors: undefined });\n+    if (inputValue.length < 3 || inputValue.length > 25) {\n+      this.setState({errors: [{'field': 'label', 'reason': 'Length must be 3-25 characters'}] });\n+      return;\n+    }\n+    const newTag: Item = this.tagToItem(inputValue);\n+    const updatedTags = concat(accountTags, [newTag]);\n+    const updatedSelectedTags = concat(value, [newTag]);\n+    this.setState({\n+      accountTags: updatedTags,\n+    });\n+    onChange(updatedSelectedTags);\n+  }\n+\n+  tagToItem = (tag:string) => {\n+    return { value: tag, label: tag }\n+  }\n+\n+  state = {\n+    accountTags: [],\n+    selectedTags: [],","path":"src/components/TagsInput/TagsInput.tsx","position":49,"original_position":49,"commit_id":"5d52e966cb2adbf7892a8928c30536a706343e92","original_commit_id":"5d52e966cb2adbf7892a8928c30536a706343e92","user":{"login":"Jskobos","id":1624067,"node_id":"MDQ6VXNlcjE2MjQwNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/1624067?v=4","gravatar_id":"","url":"https://api.github.com/users/Jskobos","html_url":"https://github.com/Jskobos","followers_url":"https://api.github.com/users/Jskobos/followers","following_url":"https://api.github.com/users/Jskobos/following{/other_user}","gists_url":"https://api.github.com/users/Jskobos/gists{/gist_id}","starred_url":"https://api.github.com/users/Jskobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jskobos/subscriptions","organizations_url":"https://api.github.com/users/Jskobos/orgs","repos_url":"https://api.github.com/users/Jskobos/repos","events_url":"https://api.github.com/users/Jskobos/events{/privacy}","received_events_url":"https://api.github.com/users/Jskobos/received_events","type":"User","site_admin":false},"body":"This is the only reference to this value. Is it going to be used anywhere in the future?","created_at":"2018-11-12T16:37:35Z","updated_at":"2018-11-12T16:47:17Z","html_url":"https://github.com/linode/manager/pull/4064#discussion_r232729059","pull_request_url":"https://api.github.com/repos/linode/manager/pulls/4064","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/comments/232729059"},"html":{"href":"https://github.com/linode/manager/pull/4064#discussion_r232729059"},"pull_request":{"href":"https://api.github.com/repos/linode/manager/pulls/4064"}}},"pull_request":{"url":"https://api.github.com/repos/linode/manager/pulls/4064","id":230138057,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMTM4MDU3","html_url":"https://github.com/linode/manager/pull/4064","diff_url":"https://github.com/linode/manager/pull/4064.diff","patch_url":"https://github.com/linode/manager/pull/4064.patch","issue_url":"https://api.github.com/repos/linode/manager/issues/4064","number":4064,"state":"open","locked":false,"title":"M3-1433: add tags input to Domain drawer","user":{"login":"rulikrulit","id":6481831,"node_id":"MDQ6VXNlcjY0ODE4MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/6481831?v=4","gravatar_id":"","url":"https://api.github.com/users/rulikrulit","html_url":"https://github.com/rulikrulit","followers_url":"https://api.github.com/users/rulikrulit/followers","following_url":"https://api.github.com/users/rulikrulit/following{/other_user}","gists_url":"https://api.github.com/users/rulikrulit/gists{/gist_id}","starred_url":"https://api.github.com/users/rulikrulit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rulikrulit/subscriptions","organizations_url":"https://api.github.com/users/rulikrulit/orgs","repos_url":"https://api.github.com/users/rulikrulit/repos","events_url":"https://api.github.com/users/rulikrulit/events{/privacy}","received_events_url":"https://api.github.com/users/rulikrulit/received_events","type":"User","site_admin":false},"body":"- Moved tags input to a separate component\r\n- Simplified usage and logic, removed TagsHOC component\r\n- Added tags input to Domains drawer form","created_at":"2018-11-12T13:41:17Z","updated_at":"2018-11-12T16:47:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cae44fde62c624535e728ecec86d1ac6547be023","assignee":{"login":"rulikrulit","id":6481831,"node_id":"MDQ6VXNlcjY0ODE4MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/6481831?v=4","gravatar_id":"","url":"https://api.github.com/users/rulikrulit","html_url":"https://github.com/rulikrulit","followers_url":"https://api.github.com/users/rulikrulit/followers","following_url":"https://api.github.com/users/rulikrulit/following{/other_user}","gists_url":"https://api.github.com/users/rulikrulit/gists{/gist_id}","starred_url":"https://api.github.com/users/rulikrulit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rulikrulit/subscriptions","organizations_url":"https://api.github.com/users/rulikrulit/orgs","repos_url":"https://api.github.com/users/rulikrulit/repos","events_url":"https://api.github.com/users/rulikrulit/events{/privacy}","received_events_url":"https://api.github.com/users/rulikrulit/received_events","type":"User","site_admin":false},"assignees":[{"login":"rulikrulit","id":6481831,"node_id":"MDQ6VXNlcjY0ODE4MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/6481831?v=4","gravatar_id":"","url":"https://api.github.com/users/rulikrulit","html_url":"https://github.com/rulikrulit","followers_url":"https://api.github.com/users/rulikrulit/followers","following_url":"https://api.github.com/users/rulikrulit/following{/other_user}","gists_url":"https://api.github.com/users/rulikrulit/gists{/gist_id}","starred_url":"https://api.github.com/users/rulikrulit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rulikrulit/subscriptions","organizations_url":"https://api.github.com/users/rulikrulit/orgs","repos_url":"https://api.github.com/users/rulikrulit/repos","events_url":"https://api.github.com/users/rulikrulit/events{/privacy}","received_events_url":"https://api.github.com/users/rulikrulit/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/linode/manager/pulls/4064/commits","review_comments_url":"https://api.github.com/repos/linode/manager/pulls/4064/comments","review_comment_url":"https://api.github.com/repos/linode/manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linode/manager/issues/4064/comments","statuses_url":"https://api.github.com/repos/linode/manager/statuses/5d52e966cb2adbf7892a8928c30536a706343e92","head":{"label":"rulikrulit:feature/M3-1433","ref":"feature/M3-1433","sha":"5d52e966cb2adbf7892a8928c30536a706343e92","user":{"login":"rulikrulit","id":6481831,"node_id":"MDQ6VXNlcjY0ODE4MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/6481831?v=4","gravatar_id":"","url":"https://api.github.com/users/rulikrulit","html_url":"https://github.com/rulikrulit","followers_url":"https://api.github.com/users/rulikrulit/followers","following_url":"https://api.github.com/users/rulikrulit/following{/other_user}","gists_url":"https://api.github.com/users/rulikrulit/gists{/gist_id}","starred_url":"https://api.github.com/users/rulikrulit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rulikrulit/subscriptions","organizations_url":"https://api.github.com/users/rulikrulit/orgs","repos_url":"https://api.github.com/users/rulikrulit/repos","events_url":"https://api.github.com/users/rulikrulit/events{/privacy}","received_events_url":"https://api.github.com/users/rulikrulit/received_events","type":"User","site_admin":false},"repo":{"id":156265211,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYyNjUyMTE=","name":"manager","full_name":"rulikrulit/manager","private":false,"owner":{"login":"rulikrulit","id":6481831,"node_id":"MDQ6VXNlcjY0ODE4MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/6481831?v=4","gravatar_id":"","url":"https://api.github.com/users/rulikrulit","html_url":"https://github.com/rulikrulit","followers_url":"https://api.github.com/users/rulikrulit/followers","following_url":"https://api.github.com/users/rulikrulit/following{/other_user}","gists_url":"https://api.github.com/users/rulikrulit/gists{/gist_id}","starred_url":"https://api.github.com/users/rulikrulit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rulikrulit/subscriptions","organizations_url":"https://api.github.com/users/rulikrulit/orgs","repos_url":"https://api.github.com/users/rulikrulit/repos","events_url":"https://api.github.com/users/rulikrulit/events{/privacy}","received_events_url":"https://api.github.com/users/rulikrulit/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rulikrulit/manager","description":"The Linode Manager (Early Access)","fork":true,"url":"https://api.github.com/repos/rulikrulit/manager","forks_url":"https://api.github.com/repos/rulikrulit/manager/forks","keys_url":"https://api.github.com/repos/rulikrulit/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rulikrulit/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rulikrulit/manager/teams","hooks_url":"https://api.github.com/repos/rulikrulit/manager/hooks","issue_events_url":"https://api.github.com/repos/rulikrulit/manager/issues/events{/number}","events_url":"https://api.github.com/repos/rulikrulit/manager/events","assignees_url":"https://api.github.com/repos/rulikrulit/manager/assignees{/user}","branches_url":"https://api.github.com/repos/rulikrulit/manager/branches{/branch}","tags_url":"https://api.github.com/repos/rulikrulit/manager/tags","blobs_url":"https://api.github.com/repos/rulikrulit/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rulikrulit/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rulikrulit/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/rulikrulit/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rulikrulit/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/rulikrulit/manager/languages","stargazers_url":"https://api.github.com/repos/rulikrulit/manager/stargazers","contributors_url":"https://api.github.com/repos/rulikrulit/manager/contributors","subscribers_url":"https://api.github.com/repos/rulikrulit/manager/subscribers","subscription_url":"https://api.github.com/repos/rulikrulit/manager/subscription","commits_url":"https://api.github.com/repos/rulikrulit/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/rulikrulit/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/rulikrulit/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/rulikrulit/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/rulikrulit/manager/contents/{+path}","compare_url":"https://api.github.com/repos/rulikrulit/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rulikrulit/manager/merges","archive_url":"https://api.github.com/repos/rulikrulit/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rulikrulit/manager/downloads","issues_url":"https://api.github.com/repos/rulikrulit/manager/issues{/number}","pulls_url":"https://api.github.com/repos/rulikrulit/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/rulikrulit/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/rulikrulit/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rulikrulit/manager/labels{/name}","releases_url":"https://api.github.com/repos/rulikrulit/manager/releases{/id}","deployments_url":"https://api.github.com/repos/rulikrulit/manager/deployments","created_at":"2018-11-05T18:40:26Z","updated_at":"2018-11-05T18:40:30Z","pushed_at":"2018-11-12T14:57:09Z","git_url":"git://github.com/rulikrulit/manager.git","ssh_url":"git@github.com:rulikrulit/manager.git","clone_url":"https://github.com/rulikrulit/manager.git","svn_url":"https://github.com/rulikrulit/manager","homepage":"https://cloud.linode.com","size":23310,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"linode:feature/M3-1433-to-M3-1437-domain-tags","ref":"feature/M3-1433-to-M3-1437-domain-tags","sha":"ef920b6863b8fde0e8cf5ba488e5616acd9517bc","user":{"login":"linode","id":5184305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODQzMDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5184305?v=4","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"node_id":"MDEwOlJlcG9zaXRvcnk1ODkzNDIwNw==","name":"manager","full_name":"linode/manager","private":false,"owner":{"login":"linode","id":5184305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxODQzMDU=","avatar_url":"https://avatars0.githubusercontent.com/u/5184305?v=4","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/linode/manager","description":"The Linode Manager (Early Access)","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2018-11-12T15:54:22Z","pushed_at":"2018-11-12T15:54:20Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":"https://cloud.linode.com","size":23305,"stargazers_count":382,"watchers_count":382,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":92,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":92,"open_issues":7,"watchers":382,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/4064"},"html":{"href":"https://github.com/linode/manager/pull/4064"},"issue":{"href":"https://api.github.com/repos/linode/manager/issues/4064"},"comments":{"href":"https://api.github.com/repos/linode/manager/issues/4064/comments"},"review_comments":{"href":"https://api.github.com/repos/linode/manager/pulls/4064/comments"},"review_comment":{"href":"https://api.github.com/repos/linode/manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linode/manager/pulls/4064/commits"},"statuses":{"href":"https://api.github.com/repos/linode/manager/statuses/5d52e966cb2adbf7892a8928c30536a706343e92"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Jskobos"}}