{"action":"created","comment":{"url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/comments/344268506","pull_request_review_id":314283997,"id":344268506,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0NDI2ODUwNg==","diff_hunk":"@@ -1,26 +1,44 @@\n import React, { useState } from 'react'\n import { useQuery } from '@apollo/react-hooks'\n import useForm from 'react-hook-form'\n-import HposSettingsQuery from 'graphql/HposSettingsQuery.gql'\n+import { useQuery, useMutation } from '@apollo/react-hooks'\n import PrimaryLayout from 'components/layout/PrimaryLayout'\n+import HposSettingsQuery from 'graphql/HposSettingsQuery.gql'\n+import HposUpdateSettingsMutation from 'graphql/HposUpdateSettingsMutation.gql'\n import Button from 'components/Button'\n import Input from 'components/Input'\n import HashAvatar from 'components/HashAvatar'\n import TosModal from 'components/TosModal'\n import './MyProfile.module.css'\n \n // eslint-disable-next-line no-useless-escape\n-const EMAIL_REGEXP = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n+// const EMAIL_REGEXP = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n+\n+// Data - Mutation hook\n+function useUpdateDeviceName () {\n+  const [hposUpdateSettings] = useMutation(HposUpdateSettingsMutation)\n+  return (hostName) => hposUpdateSettings({\n+    variables: { hostName }\n+  })\n+}\n \n const MyProfile = ({ history: { push } }) => {\n   const { data: { hposSettings: settings = [] } = {} } = useQuery(HposSettingsQuery)\n+  const updateDeviceName = useUpdateDeviceName()\n+\n   const [isTosOpen, setTosOpen] = useState(false)\n   const { register, handleSubmit, errors, watch } = useForm()\n   const onSubmit = data => {\n+    // console.log('SUBMITTED DATA : ', data)\n+    if (data.name) {\n+      // call HPOS Settings Mutation to update HPOS Host Name","path":"src/pages/MyProfile/MyProfile.js","position":36,"original_position":36,"commit_id":"ca4dd59463f7a92f8e452a84892915df259a5045","original_commit_id":"ca4dd59463f7a92f8e452a84892915df259a5045","user":{"login":"robbiecarlton","id":891124,"node_id":"MDQ6VXNlcjg5MTEyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/891124?v=4","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"i think the line below is self documenting and we don't need this comment","created_at":"2019-11-08T16:50:22Z","updated_at":"2019-11-08T16:59:02Z","html_url":"https://github.com/Holo-Host/hp-admin/pull/102#discussion_r344268506","pull_request_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/comments/344268506"},"html":{"href":"https://github.com/Holo-Host/hp-admin/pull/102#discussion_r344268506"},"pull_request":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102","id":333849777,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMzODQ5Nzc3","html_url":"https://github.com/Holo-Host/hp-admin/pull/102","diff_url":"https://github.com/Holo-Host/hp-admin/pull/102.diff","patch_url":"https://github.com/Holo-Host/hp-admin/pull/102.patch","issue_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/102","number":102,"state":"open","locked":false,"title":"6217 - Integration tests","user":{"login":"robbiecarlton","id":891124,"node_id":"MDQ6VXNlcjg5MTEyNA==","avatar_url":"https://avatars1.githubusercontent.com/u/891124?v=4","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-10-29T20:15:34Z","updated_at":"2019-11-08T16:59:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0220b859b1c27ffbeb4663611d6fb65255606fe7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"zo-el","id":29548571,"node_id":"MDQ6VXNlcjI5NTQ4NTcx","avatar_url":"https://avatars0.githubusercontent.com/u/29548571?v=4","gravatar_id":"","url":"https://api.github.com/users/zo-el","html_url":"https://github.com/zo-el","followers_url":"https://api.github.com/users/zo-el/followers","following_url":"https://api.github.com/users/zo-el/following{/other_user}","gists_url":"https://api.github.com/users/zo-el/gists{/gist_id}","starred_url":"https://api.github.com/users/zo-el/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zo-el/subscriptions","organizations_url":"https://api.github.com/users/zo-el/orgs","repos_url":"https://api.github.com/users/zo-el/repos","events_url":"https://api.github.com/users/zo-el/events{/privacy}","received_events_url":"https://api.github.com/users/zo-el/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102/commits","review_comments_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102/comments","review_comment_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/102/comments","statuses_url":"https://api.github.com/repos/Holo-Host/hp-admin/statuses/ca4dd59463f7a92f8e452a84892915df259a5045","head":{"label":"Holo-Host:6217-integration-tests","ref":"6217-integration-tests","sha":"ca4dd59463f7a92f8e452a84892915df259a5045","user":{"login":"Holo-Host","id":31252939,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjUyOTM5","avatar_url":"https://avatars3.githubusercontent.com/u/31252939?v=4","gravatar_id":"","url":"https://api.github.com/users/Holo-Host","html_url":"https://github.com/Holo-Host","followers_url":"https://api.github.com/users/Holo-Host/followers","following_url":"https://api.github.com/users/Holo-Host/following{/other_user}","gists_url":"https://api.github.com/users/Holo-Host/gists{/gist_id}","starred_url":"https://api.github.com/users/Holo-Host/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holo-Host/subscriptions","organizations_url":"https://api.github.com/users/Holo-Host/orgs","repos_url":"https://api.github.com/users/Holo-Host/repos","events_url":"https://api.github.com/users/Holo-Host/events{/privacy}","received_events_url":"https://api.github.com/users/Holo-Host/received_events","type":"Organization","site_admin":false},"repo":{"id":197771229,"node_id":"MDEwOlJlcG9zaXRvcnkxOTc3NzEyMjk=","name":"hp-admin","full_name":"Holo-Host/hp-admin","private":false,"owner":{"login":"Holo-Host","id":31252939,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjUyOTM5","avatar_url":"https://avatars3.githubusercontent.com/u/31252939?v=4","gravatar_id":"","url":"https://api.github.com/users/Holo-Host","html_url":"https://github.com/Holo-Host","followers_url":"https://api.github.com/users/Holo-Host/followers","following_url":"https://api.github.com/users/Holo-Host/following{/other_user}","gists_url":"https://api.github.com/users/Holo-Host/gists{/gist_id}","starred_url":"https://api.github.com/users/Holo-Host/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holo-Host/subscriptions","organizations_url":"https://api.github.com/users/Holo-Host/orgs","repos_url":"https://api.github.com/users/Holo-Host/repos","events_url":"https://api.github.com/users/Holo-Host/events{/privacy}","received_events_url":"https://api.github.com/users/Holo-Host/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Holo-Host/hp-admin","description":"The entry point into the world of Holo as a Host.","fork":false,"url":"https://api.github.com/repos/Holo-Host/hp-admin","forks_url":"https://api.github.com/repos/Holo-Host/hp-admin/forks","keys_url":"https://api.github.com/repos/Holo-Host/hp-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Holo-Host/hp-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Holo-Host/hp-admin/teams","hooks_url":"https://api.github.com/repos/Holo-Host/hp-admin/hooks","issue_events_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/events{/number}","events_url":"https://api.github.com/repos/Holo-Host/hp-admin/events","assignees_url":"https://api.github.com/repos/Holo-Host/hp-admin/assignees{/user}","branches_url":"https://api.github.com/repos/Holo-Host/hp-admin/branches{/branch}","tags_url":"https://api.github.com/repos/Holo-Host/hp-admin/tags","blobs_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Holo-Host/hp-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/Holo-Host/hp-admin/languages","stargazers_url":"https://api.github.com/repos/Holo-Host/hp-admin/stargazers","contributors_url":"https://api.github.com/repos/Holo-Host/hp-admin/contributors","subscribers_url":"https://api.github.com/repos/Holo-Host/hp-admin/subscribers","subscription_url":"https://api.github.com/repos/Holo-Host/hp-admin/subscription","commits_url":"https://api.github.com/repos/Holo-Host/hp-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Holo-Host/hp-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Holo-Host/hp-admin/contents/{+path}","compare_url":"https://api.github.com/repos/Holo-Host/hp-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Holo-Host/hp-admin/merges","archive_url":"https://api.github.com/repos/Holo-Host/hp-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Holo-Host/hp-admin/downloads","issues_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues{/number}","pulls_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/Holo-Host/hp-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/Holo-Host/hp-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Holo-Host/hp-admin/labels{/name}","releases_url":"https://api.github.com/repos/Holo-Host/hp-admin/releases{/id}","deployments_url":"https://api.github.com/repos/Holo-Host/hp-admin/deployments","created_at":"2019-07-19T12:44:24Z","updated_at":"2019-11-06T17:38:53Z","pushed_at":"2019-11-08T16:19:31Z","git_url":"git://github.com/Holo-Host/hp-admin.git","ssh_url":"git@github.com:Holo-Host/hp-admin.git","clone_url":"https://github.com/Holo-Host/hp-admin.git","svn_url":"https://github.com/Holo-Host/hp-admin","homepage":null,"size":64219,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":2,"default_branch":"develop"}},"base":{"label":"Holo-Host:develop","ref":"develop","sha":"9a7f9ea9ae20c30f77178e727b2cfbfb238105d8","user":{"login":"Holo-Host","id":31252939,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjUyOTM5","avatar_url":"https://avatars3.githubusercontent.com/u/31252939?v=4","gravatar_id":"","url":"https://api.github.com/users/Holo-Host","html_url":"https://github.com/Holo-Host","followers_url":"https://api.github.com/users/Holo-Host/followers","following_url":"https://api.github.com/users/Holo-Host/following{/other_user}","gists_url":"https://api.github.com/users/Holo-Host/gists{/gist_id}","starred_url":"https://api.github.com/users/Holo-Host/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holo-Host/subscriptions","organizations_url":"https://api.github.com/users/Holo-Host/orgs","repos_url":"https://api.github.com/users/Holo-Host/repos","events_url":"https://api.github.com/users/Holo-Host/events{/privacy}","received_events_url":"https://api.github.com/users/Holo-Host/received_events","type":"Organization","site_admin":false},"repo":{"id":197771229,"node_id":"MDEwOlJlcG9zaXRvcnkxOTc3NzEyMjk=","name":"hp-admin","full_name":"Holo-Host/hp-admin","private":false,"owner":{"login":"Holo-Host","id":31252939,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjUyOTM5","avatar_url":"https://avatars3.githubusercontent.com/u/31252939?v=4","gravatar_id":"","url":"https://api.github.com/users/Holo-Host","html_url":"https://github.com/Holo-Host","followers_url":"https://api.github.com/users/Holo-Host/followers","following_url":"https://api.github.com/users/Holo-Host/following{/other_user}","gists_url":"https://api.github.com/users/Holo-Host/gists{/gist_id}","starred_url":"https://api.github.com/users/Holo-Host/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Holo-Host/subscriptions","organizations_url":"https://api.github.com/users/Holo-Host/orgs","repos_url":"https://api.github.com/users/Holo-Host/repos","events_url":"https://api.github.com/users/Holo-Host/events{/privacy}","received_events_url":"https://api.github.com/users/Holo-Host/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Holo-Host/hp-admin","description":"The entry point into the world of Holo as a Host.","fork":false,"url":"https://api.github.com/repos/Holo-Host/hp-admin","forks_url":"https://api.github.com/repos/Holo-Host/hp-admin/forks","keys_url":"https://api.github.com/repos/Holo-Host/hp-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Holo-Host/hp-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Holo-Host/hp-admin/teams","hooks_url":"https://api.github.com/repos/Holo-Host/hp-admin/hooks","issue_events_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/events{/number}","events_url":"https://api.github.com/repos/Holo-Host/hp-admin/events","assignees_url":"https://api.github.com/repos/Holo-Host/hp-admin/assignees{/user}","branches_url":"https://api.github.com/repos/Holo-Host/hp-admin/branches{/branch}","tags_url":"https://api.github.com/repos/Holo-Host/hp-admin/tags","blobs_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Holo-Host/hp-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/Holo-Host/hp-admin/languages","stargazers_url":"https://api.github.com/repos/Holo-Host/hp-admin/stargazers","contributors_url":"https://api.github.com/repos/Holo-Host/hp-admin/contributors","subscribers_url":"https://api.github.com/repos/Holo-Host/hp-admin/subscribers","subscription_url":"https://api.github.com/repos/Holo-Host/hp-admin/subscription","commits_url":"https://api.github.com/repos/Holo-Host/hp-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Holo-Host/hp-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Holo-Host/hp-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Holo-Host/hp-admin/contents/{+path}","compare_url":"https://api.github.com/repos/Holo-Host/hp-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Holo-Host/hp-admin/merges","archive_url":"https://api.github.com/repos/Holo-Host/hp-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Holo-Host/hp-admin/downloads","issues_url":"https://api.github.com/repos/Holo-Host/hp-admin/issues{/number}","pulls_url":"https://api.github.com/repos/Holo-Host/hp-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/Holo-Host/hp-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/Holo-Host/hp-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Holo-Host/hp-admin/labels{/name}","releases_url":"https://api.github.com/repos/Holo-Host/hp-admin/releases{/id}","deployments_url":"https://api.github.com/repos/Holo-Host/hp-admin/deployments","created_at":"2019-07-19T12:44:24Z","updated_at":"2019-11-06T17:38:53Z","pushed_at":"2019-11-08T16:19:31Z","git_url":"git://github.com/Holo-Host/hp-admin.git","ssh_url":"git@github.com:Holo-Host/hp-admin.git","clone_url":"https://github.com/Holo-Host/hp-admin.git","svn_url":"https://github.com/Holo-Host/hp-admin","homepage":null,"size":64219,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102"},"html":{"href":"https://github.com/Holo-Host/hp-admin/pull/102"},"issue":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/issues/102"},"comments":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/Holo-Host/hp-admin/statuses/ca4dd59463f7a92f8e452a84892915df259a5045"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"robbiecarlton"}}