{"action":"created","comment":{"url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/comments/202558520","pull_request_review_id":137282276,"id":202558520,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjU1ODUyMA==","diff_hunk":"@@ -54,5 +56,18 @@ public void End()\n             this.telemetryClient.Flush();\n             Task.Delay(1000); // Allow time to flush\n         }\n+\n+        private void RefreshUserDetails()\n+        {\n+            if (string.IsNullOrEmpty(this.telemetryClient.Context.User.Id))\n+            {\n+                if (string.IsNullOrEmpty(ChannelSession.Settings.TelemetryUserId))\n+                {\n+                    ChannelSession.Settings.TelemetryUserId = Guid.NewGuid().ToString();\n+                }\n+\n+                this.telemetryClient.Context.User.Id = ChannelSession.Settings.TelemetryUserId;","path":"MixItUp.Desktop/Services/DesktopTelemetryService.cs","position":null,"original_position":30,"commit_id":"5174d868cc2dce2a75fbe554f15398946b3c01df","original_commit_id":"4d7f0409921f609bd8118c80c00b98128de5af03","user":{"login":"SaviorXTanren","id":752903,"node_id":"MDQ6VXNlcjc1MjkwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/752903?v=4","gravatar_id":"","url":"https://api.github.com/users/SaviorXTanren","html_url":"https://github.com/SaviorXTanren","followers_url":"https://api.github.com/users/SaviorXTanren/followers","following_url":"https://api.github.com/users/SaviorXTanren/following{/other_user}","gists_url":"https://api.github.com/users/SaviorXTanren/gists{/gist_id}","starred_url":"https://api.github.com/users/SaviorXTanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaviorXTanren/subscriptions","organizations_url":"https://api.github.com/users/SaviorXTanren/orgs","repos_url":"https://api.github.com/users/SaviorXTanren/repos","events_url":"https://api.github.com/users/SaviorXTanren/events{/privacy}","received_events_url":"https://api.github.com/users/SaviorXTanren/received_events","type":"User","site_admin":false},"body":"Any reason this isn't just being set when you make the telemetry client?","created_at":"2018-07-15T23:34:40Z","updated_at":"2018-07-15T23:34:44Z","html_url":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212#discussion_r202558520","pull_request_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/comments/202558520"},"html":{"href":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212#discussion_r202558520"},"pull_request":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212","id":201520687,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTIwNjg3","html_url":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212","diff_url":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212.diff","patch_url":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212.patch","issue_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/212","number":212,"state":"open","locked":false,"title":"Add UserId to telemetry","user":{"login":"TyrenDe","id":7430723,"node_id":"MDQ6VXNlcjc0MzA3MjM=","avatar_url":"https://avatars2.githubusercontent.com/u/7430723?v=4","gravatar_id":"","url":"https://api.github.com/users/TyrenDe","html_url":"https://github.com/TyrenDe","followers_url":"https://api.github.com/users/TyrenDe/followers","following_url":"https://api.github.com/users/TyrenDe/following{/other_user}","gists_url":"https://api.github.com/users/TyrenDe/gists{/gist_id}","starred_url":"https://api.github.com/users/TyrenDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TyrenDe/subscriptions","organizations_url":"https://api.github.com/users/TyrenDe/orgs","repos_url":"https://api.github.com/users/TyrenDe/repos","events_url":"https://api.github.com/users/TyrenDe/events{/privacy}","received_events_url":"https://api.github.com/users/TyrenDe/received_events","type":"User","site_admin":false},"body":"We generate a new GUID when settings doesn't have one, this will allow us to track users without storing any directly uniquely identifying information.","created_at":"2018-07-15T23:12:24Z","updated_at":"2018-07-15T23:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea69d4dea48d37168d5aafe39caa77c27cddd3e9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212/commits","review_comments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212/comments","review_comment_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/212/comments","statuses_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/statuses/5174d868cc2dce2a75fbe554f15398946b3c01df","head":{"label":"SaviorXTanren:AddUserIdToTelemetry","ref":"AddUserIdToTelemetry","sha":"5174d868cc2dce2a75fbe554f15398946b3c01df","user":{"login":"SaviorXTanren","id":752903,"node_id":"MDQ6VXNlcjc1MjkwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/752903?v=4","gravatar_id":"","url":"https://api.github.com/users/SaviorXTanren","html_url":"https://github.com/SaviorXTanren","followers_url":"https://api.github.com/users/SaviorXTanren/followers","following_url":"https://api.github.com/users/SaviorXTanren/following{/other_user}","gists_url":"https://api.github.com/users/SaviorXTanren/gists{/gist_id}","starred_url":"https://api.github.com/users/SaviorXTanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaviorXTanren/subscriptions","organizations_url":"https://api.github.com/users/SaviorXTanren/orgs","repos_url":"https://api.github.com/users/SaviorXTanren/repos","events_url":"https://api.github.com/users/SaviorXTanren/events{/privacy}","received_events_url":"https://api.github.com/users/SaviorXTanren/received_events","type":"User","site_admin":false},"repo":{"id":95641729,"node_id":"MDEwOlJlcG9zaXRvcnk5NTY0MTcyOQ==","name":"mixer-mixitup","full_name":"SaviorXTanren/mixer-mixitup","owner":{"login":"SaviorXTanren","id":752903,"node_id":"MDQ6VXNlcjc1MjkwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/752903?v=4","gravatar_id":"","url":"https://api.github.com/users/SaviorXTanren","html_url":"https://github.com/SaviorXTanren","followers_url":"https://api.github.com/users/SaviorXTanren/followers","following_url":"https://api.github.com/users/SaviorXTanren/following{/other_user}","gists_url":"https://api.github.com/users/SaviorXTanren/gists{/gist_id}","starred_url":"https://api.github.com/users/SaviorXTanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaviorXTanren/subscriptions","organizations_url":"https://api.github.com/users/SaviorXTanren/orgs","repos_url":"https://api.github.com/users/SaviorXTanren/repos","events_url":"https://api.github.com/users/SaviorXTanren/events{/privacy}","received_events_url":"https://api.github.com/users/SaviorXTanren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SaviorXTanren/mixer-mixitup","description":"Mixer client for handling chat, interactivity, and other streamer assistance features","fork":false,"url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup","forks_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/forks","keys_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/teams","hooks_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/hooks","issue_events_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/events{/number}","events_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/events","assignees_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/assignees{/user}","branches_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/branches{/branch}","tags_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/tags","blobs_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/statuses/{sha}","languages_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/languages","stargazers_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/stargazers","contributors_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/contributors","subscribers_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/subscribers","subscription_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/subscription","commits_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/contents/{+path}","compare_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/merges","archive_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/downloads","issues_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues{/number}","pulls_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls{/number}","milestones_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/milestones{/number}","notifications_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/labels{/name}","releases_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/releases{/id}","deployments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/deployments","created_at":"2017-06-28T07:30:21Z","updated_at":"2018-07-15T23:19:41Z","pushed_at":"2018-07-15T23:33:10Z","git_url":"git://github.com/SaviorXTanren/mixer-mixitup.git","ssh_url":"git@github.com:SaviorXTanren/mixer-mixitup.git","clone_url":"https://github.com/SaviorXTanren/mixer-mixitup.git","svn_url":"https://github.com/SaviorXTanren/mixer-mixitup","homepage":null,"size":23751,"stargazers_count":22,"watchers_count":22,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":8,"open_issues":8,"watchers":22,"default_branch":"master"}},"base":{"label":"SaviorXTanren:master","ref":"master","sha":"4ca91089aec5727735c5a86bb395f805e6ca34e2","user":{"login":"SaviorXTanren","id":752903,"node_id":"MDQ6VXNlcjc1MjkwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/752903?v=4","gravatar_id":"","url":"https://api.github.com/users/SaviorXTanren","html_url":"https://github.com/SaviorXTanren","followers_url":"https://api.github.com/users/SaviorXTanren/followers","following_url":"https://api.github.com/users/SaviorXTanren/following{/other_user}","gists_url":"https://api.github.com/users/SaviorXTanren/gists{/gist_id}","starred_url":"https://api.github.com/users/SaviorXTanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaviorXTanren/subscriptions","organizations_url":"https://api.github.com/users/SaviorXTanren/orgs","repos_url":"https://api.github.com/users/SaviorXTanren/repos","events_url":"https://api.github.com/users/SaviorXTanren/events{/privacy}","received_events_url":"https://api.github.com/users/SaviorXTanren/received_events","type":"User","site_admin":false},"repo":{"id":95641729,"node_id":"MDEwOlJlcG9zaXRvcnk5NTY0MTcyOQ==","name":"mixer-mixitup","full_name":"SaviorXTanren/mixer-mixitup","owner":{"login":"SaviorXTanren","id":752903,"node_id":"MDQ6VXNlcjc1MjkwMw==","avatar_url":"https://avatars3.githubusercontent.com/u/752903?v=4","gravatar_id":"","url":"https://api.github.com/users/SaviorXTanren","html_url":"https://github.com/SaviorXTanren","followers_url":"https://api.github.com/users/SaviorXTanren/followers","following_url":"https://api.github.com/users/SaviorXTanren/following{/other_user}","gists_url":"https://api.github.com/users/SaviorXTanren/gists{/gist_id}","starred_url":"https://api.github.com/users/SaviorXTanren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaviorXTanren/subscriptions","organizations_url":"https://api.github.com/users/SaviorXTanren/orgs","repos_url":"https://api.github.com/users/SaviorXTanren/repos","events_url":"https://api.github.com/users/SaviorXTanren/events{/privacy}","received_events_url":"https://api.github.com/users/SaviorXTanren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SaviorXTanren/mixer-mixitup","description":"Mixer client for handling chat, interactivity, and other streamer assistance features","fork":false,"url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup","forks_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/forks","keys_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/teams","hooks_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/hooks","issue_events_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/events{/number}","events_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/events","assignees_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/assignees{/user}","branches_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/branches{/branch}","tags_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/tags","blobs_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/statuses/{sha}","languages_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/languages","stargazers_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/stargazers","contributors_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/contributors","subscribers_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/subscribers","subscription_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/subscription","commits_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/contents/{+path}","compare_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/merges","archive_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/downloads","issues_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues{/number}","pulls_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls{/number}","milestones_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/milestones{/number}","notifications_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/labels{/name}","releases_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/releases{/id}","deployments_url":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/deployments","created_at":"2017-06-28T07:30:21Z","updated_at":"2018-07-15T23:19:41Z","pushed_at":"2018-07-15T23:33:10Z","git_url":"git://github.com/SaviorXTanren/mixer-mixitup.git","ssh_url":"git@github.com:SaviorXTanren/mixer-mixitup.git","clone_url":"https://github.com/SaviorXTanren/mixer-mixitup.git","svn_url":"https://github.com/SaviorXTanren/mixer-mixitup","homepage":null,"size":23751,"stargazers_count":22,"watchers_count":22,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":8,"open_issues":8,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212"},"html":{"href":"https://github.com/SaviorXTanren/mixer-mixitup/pull/212"},"issue":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/212"},"comments":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/SaviorXTanren/mixer-mixitup/statuses/5174d868cc2dce2a75fbe554f15398946b3c01df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"SaviorXTanren"}}