{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/comments/170136448","pull_request_review_id":98777771,"id":170136448,"diff_hunk":"@@ -1018,6 +1034,14 @@ - (BOOL)openURL:(NSURL *)url {\n \n       // Update distribution group ID which is added to logs.\n       [self.distributeInfoTracker updateDistributionGroupId:queryDistributionGroupId];\n+        \n+      // Only if we have managed to retrieve the Distribution group ID we should update the distribution session count.\n+      latestSessionId = [MSSessionContext sessionIdAt:[NSDate date]];\n+      \n+      // If Analytics SDK is disabled session Id is null and there is no neeed to updte the distribution session count.\n+      if(latestSessionId) {","path":"AppCenterDistribute/AppCenterDistribute/MSDistribute.m","position":53,"original_position":53,"commit_id":"546e41fa44a4d5c4d750ba3438dd118dd1426f46","original_commit_id":"546e41fa44a4d5c4d750ba3438dd118dd1426f46","user":{"login":"jaelim-ms","id":19935783,"avatar_url":"https://avatars2.githubusercontent.com/u/19935783?v=4","gravatar_id":"","url":"https://api.github.com/users/jaelim-ms","html_url":"https://github.com/jaelim-ms","followers_url":"https://api.github.com/users/jaelim-ms/followers","following_url":"https://api.github.com/users/jaelim-ms/following{/other_user}","gists_url":"https://api.github.com/users/jaelim-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/jaelim-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaelim-ms/subscriptions","organizations_url":"https://api.github.com/users/jaelim-ms/orgs","repos_url":"https://api.github.com/users/jaelim-ms/repos","events_url":"https://api.github.com/users/jaelim-ms/events{/privacy}","received_events_url":"https://api.github.com/users/jaelim-ms/received_events","type":"User","site_admin":false},"body":"space between `if` and `(`.\r\nPlease run formatter. There is .clang-format file in the repo that you can use.","created_at":"2018-02-23T00:33:29Z","updated_at":"2018-02-23T00:41:11Z","html_url":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938#discussion_r170136448","pull_request_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/comments/170136448"},"html":{"href":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938#discussion_r170136448"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938","id":170666656,"html_url":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938","diff_url":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938.diff","patch_url":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938.patch","issue_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/938","number":938,"state":"open","locked":false,"title":"Update first session log when distribution SDK is enabled","user":{"login":"meiravf","id":26158189,"avatar_url":"https://avatars0.githubusercontent.com/u/26158189?v=4","gravatar_id":"","url":"https://api.github.com/users/meiravf","html_url":"https://github.com/meiravf","followers_url":"https://api.github.com/users/meiravf/followers","following_url":"https://api.github.com/users/meiravf/following{/other_user}","gists_url":"https://api.github.com/users/meiravf/gists{/gist_id}","starred_url":"https://api.github.com/users/meiravf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiravf/subscriptions","organizations_url":"https://api.github.com/users/meiravf/orgs","repos_url":"https://api.github.com/users/meiravf/repos","events_url":"https://api.github.com/users/meiravf/events{/privacy}","received_events_url":"https://api.github.com/users/meiravf/received_events","type":"User","site_admin":false},"body":"Need to add more tests for coverage ","created_at":"2018-02-22T06:25:14Z","updated_at":"2018-02-23T00:41:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd0a81002544266f9c379db2d6e3a8aaf63ab464","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938/commits","review_comments_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938/comments","review_comment_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/938/comments","statuses_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/statuses/546e41fa44a4d5c4d750ba3438dd118dd1426f46","head":{"label":"meiravf:feature/log-first-session-count","ref":"feature/log-first-session-count","sha":"546e41fa44a4d5c4d750ba3438dd118dd1426f46","user":{"login":"meiravf","id":26158189,"avatar_url":"https://avatars0.githubusercontent.com/u/26158189?v=4","gravatar_id":"","url":"https://api.github.com/users/meiravf","html_url":"https://github.com/meiravf","followers_url":"https://api.github.com/users/meiravf/followers","following_url":"https://api.github.com/users/meiravf/following{/other_user}","gists_url":"https://api.github.com/users/meiravf/gists{/gist_id}","starred_url":"https://api.github.com/users/meiravf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiravf/subscriptions","organizations_url":"https://api.github.com/users/meiravf/orgs","repos_url":"https://api.github.com/users/meiravf/repos","events_url":"https://api.github.com/users/meiravf/events{/privacy}","received_events_url":"https://api.github.com/users/meiravf/received_events","type":"User","site_admin":false},"repo":{"id":122420071,"name":"AppCenter-SDK-Apple","full_name":"meiravf/AppCenter-SDK-Apple","owner":{"login":"meiravf","id":26158189,"avatar_url":"https://avatars0.githubusercontent.com/u/26158189?v=4","gravatar_id":"","url":"https://api.github.com/users/meiravf","html_url":"https://github.com/meiravf","followers_url":"https://api.github.com/users/meiravf/followers","following_url":"https://api.github.com/users/meiravf/following{/other_user}","gists_url":"https://api.github.com/users/meiravf/gists{/gist_id}","starred_url":"https://api.github.com/users/meiravf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meiravf/subscriptions","organizations_url":"https://api.github.com/users/meiravf/orgs","repos_url":"https://api.github.com/users/meiravf/repos","events_url":"https://api.github.com/users/meiravf/events{/privacy}","received_events_url":"https://api.github.com/users/meiravf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meiravf/AppCenter-SDK-Apple","description":"Development repository for the App Center SDK for iOS","fork":true,"url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple","forks_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/forks","keys_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/teams","hooks_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/hooks","issue_events_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/issues/events{/number}","events_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/events","assignees_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/assignees{/user}","branches_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/branches{/branch}","tags_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/tags","blobs_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/git/refs{/sha}","trees_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/statuses/{sha}","languages_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/languages","stargazers_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/stargazers","contributors_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/contributors","subscribers_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/subscribers","subscription_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/subscription","commits_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/commits{/sha}","git_commits_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/git/commits{/sha}","comments_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/comments{/number}","issue_comment_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/issues/comments{/number}","contents_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/contents/{+path}","compare_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/merges","archive_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/downloads","issues_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/issues{/number}","pulls_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/pulls{/number}","milestones_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/milestones{/number}","notifications_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/labels{/name}","releases_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/releases{/id}","deployments_url":"https://api.github.com/repos/meiravf/AppCenter-SDK-Apple/deployments","created_at":"2018-02-22T02:20:27Z","updated_at":"2018-02-22T02:20:30Z","pushed_at":"2018-02-23T00:24:16Z","git_url":"git://github.com/meiravf/AppCenter-SDK-Apple.git","ssh_url":"git@github.com:meiravf/AppCenter-SDK-Apple.git","clone_url":"https://github.com/meiravf/AppCenter-SDK-Apple.git","svn_url":"https://github.com/meiravf/AppCenter-SDK-Apple","homepage":"","size":43473,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","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":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Microsoft:develop","ref":"develop","sha":"bc3f83f215f37e945263b19f737abfb948c7ce54","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":60783387,"name":"AppCenter-SDK-Apple","full_name":"Microsoft/AppCenter-SDK-Apple","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AppCenter-SDK-Apple","description":"Development repository for the App Center SDK for iOS","fork":false,"url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple","forks_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/forks","keys_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/teams","hooks_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/events","assignees_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/tags","blobs_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/subscription","commits_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/merges","archive_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/downloads","issues_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/deployments","created_at":"2016-06-09T15:01:19Z","updated_at":"2018-02-22T05:57:58Z","pushed_at":"2018-02-23T00:24:17Z","git_url":"git://github.com/Microsoft/AppCenter-SDK-Apple.git","ssh_url":"git@github.com:Microsoft/AppCenter-SDK-Apple.git","clone_url":"https://github.com/Microsoft/AppCenter-SDK-Apple.git","svn_url":"https://github.com/Microsoft/AppCenter-SDK-Apple","homepage":"","size":43475,"stargazers_count":61,"watchers_count":61,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":39,"open_issues":5,"watchers":61,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938"},"html":{"href":"https://github.com/Microsoft/AppCenter-SDK-Apple/pull/938"},"issue":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/938"},"comments":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/issues/938/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/pulls/938/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/AppCenter-SDK-Apple/statuses/546e41fa44a4d5c4d750ba3438dd118dd1426f46"}},"author_association":"NONE"}}
{"actor":{"display_login":"jaelim-ms"}}