{"action":"created","comment":{"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments/349768851","pull_request_review_id":321775490,"id":349768851,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0OTc2ODg1MQ==","diff_hunk":"@@ -0,0 +1,65 @@\n+/*\n+ * Copyright (c) Microsoft Corporation. All rights reserved.\n+ * Licensed under the MIT License.\n+ */\n+\n+package com.microsoft.appcenter.utils;\n+\n+import com.microsoft.appcenter.ingestion.models.Device;\n+\n+import org.json.JSONArray;\n+import org.json.JSONException;\n+import org.json.JSONObject;\n+import org.json.JSONStringer;\n+\n+import java.util.NavigableMap;\n+import java.util.TreeMap;\n+\n+/**\n+ * Model class that correlates Device to a crash at app relaunch.\n+ */\n+public class DeviceHistory {\n+\n+    private static String KEY_TIMESTAMP = \"timestamp\";","path":"sdk/appcenter/src/main/java/com/microsoft/appcenter/utils/DeviceHistory.java","position":23,"original_position":23,"commit_id":"2ea311c82a9e33bbb46e3d55d9a9960a3809c383","original_commit_id":"2ea311c82a9e33bbb46e3d55d9a9960a3809c383","user":{"login":"guperrot","id":623672,"node_id":"MDQ6VXNlcjYyMzY3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/623672?v=4","gravatar_id":"","url":"https://api.github.com/users/guperrot","html_url":"https://github.com/guperrot","followers_url":"https://api.github.com/users/guperrot/followers","following_url":"https://api.github.com/users/guperrot/following{/other_user}","gists_url":"https://api.github.com/users/guperrot/gists{/gist_id}","starred_url":"https://api.github.com/users/guperrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guperrot/subscriptions","organizations_url":"https://api.github.com/users/guperrot/orgs","repos_url":"https://api.github.com/users/guperrot/repos","events_url":"https://api.github.com/users/guperrot/events{/privacy}","received_events_url":"https://api.github.com/users/guperrot/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n    private final static String KEY_TIMESTAMP = \"timestamp\";\r\n\r\n```","created_at":"2019-11-22T19:54:42Z","updated_at":"2019-11-22T19:56:57Z","html_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1324#discussion_r349768851","pull_request_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments/349768851"},"html":{"href":"https://github.com/microsoft/appcenter-sdk-android/pull/1324#discussion_r349768851"},"pull_request":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324"}}},"pull_request":{"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324","id":343987736,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQzOTg3NzM2","html_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1324","diff_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1324.diff","patch_url":"https://github.com/microsoft/appcenter-sdk-android/pull/1324.patch","issue_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1324","number":1324,"state":"open","locked":false,"title":"Breakpad Crash uploaded as incorrect version when sent after updating the app","user":{"login":"AnastasiaKubova","id":42138465,"node_id":"MDQ6VXNlcjQyMTM4NDY1","avatar_url":"https://avatars2.githubusercontent.com/u/42138465?v=4","gravatar_id":"","url":"https://api.github.com/users/AnastasiaKubova","html_url":"https://github.com/AnastasiaKubova","followers_url":"https://api.github.com/users/AnastasiaKubova/followers","following_url":"https://api.github.com/users/AnastasiaKubova/following{/other_user}","gists_url":"https://api.github.com/users/AnastasiaKubova/gists{/gist_id}","starred_url":"https://api.github.com/users/AnastasiaKubova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnastasiaKubova/subscriptions","organizations_url":"https://api.github.com/users/AnastasiaKubova/orgs","repos_url":"https://api.github.com/users/AnastasiaKubova/repos","events_url":"https://api.github.com/users/AnastasiaKubova/events{/privacy}","received_events_url":"https://api.github.com/users/AnastasiaKubova/received_events","type":"User","site_admin":false},"body":"Please have a look at our [guidelines for contributions](https://github.com/microsoft/appcenter-sdk-android/blob/develop/CONTRIBUTING.md) and consider the following before you submit the PR:\r\n\r\n* [ ] Has `CHANGELOG.md` been updated?\r\n* [ ] Are tests passing locally?\r\n* [x] Are the files formatted correctly?\r\n* [ ] Did you add unit tests?\r\n* [ ] Did you test your change with either the sample apps that are included in the repository or with a blank app that uses your change?\r\n* [x] Did you check UI tests on the sample app? They are not executed on CI.\r\n\r\n## Description\r\n\r\nReproduce steps:\r\n\r\n1. Run app\r\n2. Crash app with NDK exception (crash saved but is not uploaded yet)\r\n3. Update `versionName` and `versionCode`\r\n4. Run the app and see current `versionName` and `versionCode` instead last.\r\n\r\n## Related PRs or issues\r\n\r\n[AB#70052](https://msmobilecenter.visualstudio.com/454a20a9-dfe6-4c1f-8ae8-417f76adb472/_workitems/edit/70052)","created_at":"2019-11-21T11:43:55Z","updated_at":"2019-11-22T19:56:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb7af38ea45c027208d88cb381c32a05f3f021cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":403928524,"node_id":"MDU6TGFiZWw0MDM5Mjg1MjQ=","url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels/do%20not%20merge","name":"do not merge","color":"fbca04","default":false,"description":""},{"id":390191761,"node_id":"MDU6TGFiZWwzOTAxOTE3NjE=","url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels/in%20progress","name":"in progress","color":"84d157","default":false,"description":""}],"milestone":null,"commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324/commits","review_comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324/comments","review_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1324/comments","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/2ea311c82a9e33bbb46e3d55d9a9960a3809c383","head":{"label":"microsoft:fix/breakpad-crash","ref":"fix/breakpad-crash","sha":"2ea311c82a9e33bbb46e3d55d9a9960a3809c383","user":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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":60783603,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc4MzYwMw==","name":"appcenter-sdk-android","full_name":"microsoft/appcenter-sdk-android","private":false,"owner":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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},"html_url":"https://github.com/microsoft/appcenter-sdk-android","description":"Development repository for the App Center SDK for Android","fork":false,"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android","forks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/forks","keys_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/teams","hooks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/events","assignees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/tags","blobs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/languages","stargazers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscription","commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/merges","archive_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/downloads","issues_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2019-11-19T18:38:28Z","pushed_at":"2019-11-22T15:35:28Z","git_url":"git://github.com/microsoft/appcenter-sdk-android.git","ssh_url":"git@github.com:microsoft/appcenter-sdk-android.git","clone_url":"https://github.com/microsoft/appcenter-sdk-android.git","svn_url":"https://github.com/microsoft/appcenter-sdk-android","homepage":"","size":15679,"stargazers_count":115,"watchers_count":115,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":89,"open_issues":15,"watchers":115,"default_branch":"develop"}},"base":{"label":"microsoft:develop","ref":"develop","sha":"dfd91667395b0cb76cf1b2d2b3610f8174bc2afe","user":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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":60783603,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc4MzYwMw==","name":"appcenter-sdk-android","full_name":"microsoft/appcenter-sdk-android","private":false,"owner":{"login":"microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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},"html_url":"https://github.com/microsoft/appcenter-sdk-android","description":"Development repository for the App Center SDK for Android","fork":false,"url":"https://api.github.com/repos/microsoft/appcenter-sdk-android","forks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/forks","keys_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/teams","hooks_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/events","assignees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/tags","blobs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/languages","stargazers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/subscription","commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/merges","archive_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/downloads","issues_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/microsoft/appcenter-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2019-11-19T18:38:28Z","pushed_at":"2019-11-22T15:35:28Z","git_url":"git://github.com/microsoft/appcenter-sdk-android.git","ssh_url":"git@github.com:microsoft/appcenter-sdk-android.git","clone_url":"https://github.com/microsoft/appcenter-sdk-android.git","svn_url":"https://github.com/microsoft/appcenter-sdk-android","homepage":"","size":15679,"stargazers_count":115,"watchers_count":115,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":89,"open_issues":15,"watchers":115,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324"},"html":{"href":"https://github.com/microsoft/appcenter-sdk-android/pull/1324"},"issue":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1324"},"comments":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/issues/1324/comments"},"review_comments":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324/comments"},"review_comment":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/pulls/1324/commits"},"statuses":{"href":"https://api.github.com/repos/microsoft/appcenter-sdk-android/statuses/2ea311c82a9e33bbb46e3d55d9a9960a3809c383"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"guperrot"}}