{"action":"opened","number":113,"pull_request":{"url":"https://api.github.com/repos/Kinvey/java-library/pulls/113","id":151588394,"html_url":"https://github.com/Kinvey/java-library/pull/113","diff_url":"https://github.com/Kinvey/java-library/pull/113.diff","patch_url":"https://github.com/Kinvey/java-library/pull/113.patch","issue_url":"https://api.github.com/repos/Kinvey/java-library/issues/113","number":113,"state":"open","locked":false,"title":"feat: MLIBZ-2166 Upgrading from Android 3.0.5 to latest SDK crashes on data store methods","user":{"login":"yuliya-guseva","id":28727986,"avatar_url":"https://avatars2.githubusercontent.com/u/28727986?v=4","gravatar_id":"","url":"https://api.github.com/users/yuliya-guseva","html_url":"https://github.com/yuliya-guseva","followers_url":"https://api.github.com/users/yuliya-guseva/followers","following_url":"https://api.github.com/users/yuliya-guseva/following{/other_user}","gists_url":"https://api.github.com/users/yuliya-guseva/gists{/gist_id}","starred_url":"https://api.github.com/users/yuliya-guseva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuliya-guseva/subscriptions","organizations_url":"https://api.github.com/users/yuliya-guseva/orgs","repos_url":"https://api.github.com/users/yuliya-guseva/repos","events_url":"https://api.github.com/users/yuliya-guseva/events{/privacy}","received_events_url":"https://api.github.com/users/yuliya-guseva/received_events","type":"User","site_admin":false},"body":"#### Description\r\nAdd user data migration logic from 3.0.5 version\r\n\r\n#### Changes\r\nAdded migration if user has old table name but doesn't have new table name (optimized name)\r\n\r\n#### Tests\r\nChecked manual in the test case:\r\nUser has 3.0.5 version. Also he has collection `Book` with some items and some items in `sync` collection in not pushed state. Class `Books` has inner class `Author`. User updated android kinvey library version to 3.0.9. After start application his inner tables was renamed to the new way. His data in `Book` and `sync` collection was saved and he can call `sync` to push his not synced items to the server. He shouldn't call `logout` to update table names.\r\n","created_at":"2017-11-09T08:32:04Z","updated_at":"2017-11-09T08:32:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kinvey/java-library/pulls/113/commits","review_comments_url":"https://api.github.com/repos/Kinvey/java-library/pulls/113/comments","review_comment_url":"https://api.github.com/repos/Kinvey/java-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kinvey/java-library/issues/113/comments","statuses_url":"https://api.github.com/repos/Kinvey/java-library/statuses/309f2a453d57d0b6e423932eadc7f4e1a04a455b","head":{"label":"Kinvey:feature/MLIBZ-2166_Upgrading_from_Android_3.0.5_to_latest_SDK_crashes_on_data_store_methods_if_data_present_on_client","ref":"feature/MLIBZ-2166_Upgrading_from_Android_3.0.5_to_latest_SDK_crashes_on_data_store_methods_if_data_present_on_client","sha":"309f2a453d57d0b6e423932eadc7f4e1a04a455b","user":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":26016266,"name":"java-library","full_name":"Kinvey/java-library","owner":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/java-library","description":"SDK for Java and Android applications","fork":false,"url":"https://api.github.com/repos/Kinvey/java-library","forks_url":"https://api.github.com/repos/Kinvey/java-library/forks","keys_url":"https://api.github.com/repos/Kinvey/java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/java-library/teams","hooks_url":"https://api.github.com/repos/Kinvey/java-library/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/java-library/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/java-library/events","assignees_url":"https://api.github.com/repos/Kinvey/java-library/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/java-library/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/java-library/tags","blobs_url":"https://api.github.com/repos/Kinvey/java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/java-library/languages","stargazers_url":"https://api.github.com/repos/Kinvey/java-library/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/java-library/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/java-library/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/java-library/subscription","commits_url":"https://api.github.com/repos/Kinvey/java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/java-library/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/java-library/merges","archive_url":"https://api.github.com/repos/Kinvey/java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/java-library/downloads","issues_url":"https://api.github.com/repos/Kinvey/java-library/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/java-library/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/java-library/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/java-library/deployments","created_at":"2014-10-31T12:58:54Z","updated_at":"2017-01-26T16:26:40Z","pushed_at":"2017-11-09T08:20:00Z","git_url":"git://github.com/Kinvey/java-library.git","ssh_url":"git@github.com:Kinvey/java-library.git","clone_url":"https://github.com/Kinvey/java-library.git","svn_url":"https://github.com/Kinvey/java-library","homepage":"https://devcenter.kinvey.com/","size":97104,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Kinvey:indev","ref":"indev","sha":"865b81f0b45bf37692a458dc0805a37b5c2147c6","user":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"repo":{"id":26016266,"name":"java-library","full_name":"Kinvey/java-library","owner":{"login":"Kinvey","id":1276480,"avatar_url":"https://avatars2.githubusercontent.com/u/1276480?v=4","gravatar_id":"","url":"https://api.github.com/users/Kinvey","html_url":"https://github.com/Kinvey","followers_url":"https://api.github.com/users/Kinvey/followers","following_url":"https://api.github.com/users/Kinvey/following{/other_user}","gists_url":"https://api.github.com/users/Kinvey/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinvey/subscriptions","organizations_url":"https://api.github.com/users/Kinvey/orgs","repos_url":"https://api.github.com/users/Kinvey/repos","events_url":"https://api.github.com/users/Kinvey/events{/privacy}","received_events_url":"https://api.github.com/users/Kinvey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinvey/java-library","description":"SDK for Java and Android applications","fork":false,"url":"https://api.github.com/repos/Kinvey/java-library","forks_url":"https://api.github.com/repos/Kinvey/java-library/forks","keys_url":"https://api.github.com/repos/Kinvey/java-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinvey/java-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinvey/java-library/teams","hooks_url":"https://api.github.com/repos/Kinvey/java-library/hooks","issue_events_url":"https://api.github.com/repos/Kinvey/java-library/issues/events{/number}","events_url":"https://api.github.com/repos/Kinvey/java-library/events","assignees_url":"https://api.github.com/repos/Kinvey/java-library/assignees{/user}","branches_url":"https://api.github.com/repos/Kinvey/java-library/branches{/branch}","tags_url":"https://api.github.com/repos/Kinvey/java-library/tags","blobs_url":"https://api.github.com/repos/Kinvey/java-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinvey/java-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinvey/java-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinvey/java-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinvey/java-library/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinvey/java-library/languages","stargazers_url":"https://api.github.com/repos/Kinvey/java-library/stargazers","contributors_url":"https://api.github.com/repos/Kinvey/java-library/contributors","subscribers_url":"https://api.github.com/repos/Kinvey/java-library/subscribers","subscription_url":"https://api.github.com/repos/Kinvey/java-library/subscription","commits_url":"https://api.github.com/repos/Kinvey/java-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinvey/java-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinvey/java-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinvey/java-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinvey/java-library/contents/{+path}","compare_url":"https://api.github.com/repos/Kinvey/java-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinvey/java-library/merges","archive_url":"https://api.github.com/repos/Kinvey/java-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinvey/java-library/downloads","issues_url":"https://api.github.com/repos/Kinvey/java-library/issues{/number}","pulls_url":"https://api.github.com/repos/Kinvey/java-library/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinvey/java-library/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinvey/java-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinvey/java-library/labels{/name}","releases_url":"https://api.github.com/repos/Kinvey/java-library/releases{/id}","deployments_url":"https://api.github.com/repos/Kinvey/java-library/deployments","created_at":"2014-10-31T12:58:54Z","updated_at":"2017-01-26T16:26:40Z","pushed_at":"2017-11-09T08:20:00Z","git_url":"git://github.com/Kinvey/java-library.git","ssh_url":"git@github.com:Kinvey/java-library.git","clone_url":"https://github.com/Kinvey/java-library.git","svn_url":"https://github.com/Kinvey/java-library","homepage":"https://devcenter.kinvey.com/","size":97104,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kinvey/java-library/pulls/113"},"html":{"href":"https://github.com/Kinvey/java-library/pull/113"},"issue":{"href":"https://api.github.com/repos/Kinvey/java-library/issues/113"},"comments":{"href":"https://api.github.com/repos/Kinvey/java-library/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/Kinvey/java-library/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/Kinvey/java-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kinvey/java-library/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/Kinvey/java-library/statuses/309f2a453d57d0b6e423932eadc7f4e1a04a455b"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":78,"deletions":4,"changed_files":4}}
{"actor":{"display_login":"yuliya-guseva"}}