{"action":"closed","number":1486,"pull_request":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486","id":89476786,"html_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/1486","diff_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/1486.diff","patch_url":"https://github.com/couchbase/couchbase-lite-java-core/pull/1486.patch","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1486","number":1486,"state":"closed","locked":false,"title":"Round progress to floor instead of rounding up to prevent misleading progress = 100","user":{"login":"swaheed2","id":8592912,"avatar_url":"https://avatars.githubusercontent.com/u/8592912?v=3","gravatar_id":"","url":"https://api.github.com/users/swaheed2","html_url":"https://github.com/swaheed2","followers_url":"https://api.github.com/users/swaheed2/followers","following_url":"https://api.github.com/users/swaheed2/following{/other_user}","gists_url":"https://api.github.com/users/swaheed2/gists{/gist_id}","starred_url":"https://api.github.com/users/swaheed2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaheed2/subscriptions","organizations_url":"https://api.github.com/users/swaheed2/orgs","repos_url":"https://api.github.com/users/swaheed2/repos","events_url":"https://api.github.com/users/swaheed2/events{/privacy}","received_events_url":"https://api.github.com/users/swaheed2/received_events","type":"User","site_admin":false},"body":"When the app is syncing > 30K documents on Android, the `changes` is so close to the `Processed`:\r\n\r\n``` \r\nstatus\": \"Processed A / B changes\",\r\nprogress: 100\r\n ```\r\nA is so close to B that progress is always 100 which is misleading. \r\n\r\n**Example from actual sync:**\r\nTotal documents that needed to be synced: 385,000\r\n```\r\n\"status\": \"Processed 68108 / 68308 changes\",\r\n\"progress\": 100,\r\n```\r\nBoth Processed and changes stay very close together.\r\n\r\nCan progress be rounded down?","created_at":"2016-10-15T01:23:54Z","updated_at":"2016-10-15T02:33:47Z","closed_at":"2016-10-15T02:33:47Z","merged_at":"2016-10-15T02:33:47Z","merge_commit_sha":"c83a482190d090f21acf759c780e77bc72ff3766","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486/commits","review_comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486/comments","review_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1486/comments","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/a74fe2c4ba295f0afa04d6bfb6c0596d9edbd4a5","head":{"label":"swaheed2:patch-1","ref":"patch-1","sha":"a74fe2c4ba295f0afa04d6bfb6c0596d9edbd4a5","user":{"login":"swaheed2","id":8592912,"avatar_url":"https://avatars.githubusercontent.com/u/8592912?v=3","gravatar_id":"","url":"https://api.github.com/users/swaheed2","html_url":"https://github.com/swaheed2","followers_url":"https://api.github.com/users/swaheed2/followers","following_url":"https://api.github.com/users/swaheed2/following{/other_user}","gists_url":"https://api.github.com/users/swaheed2/gists{/gist_id}","starred_url":"https://api.github.com/users/swaheed2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaheed2/subscriptions","organizations_url":"https://api.github.com/users/swaheed2/orgs","repos_url":"https://api.github.com/users/swaheed2/repos","events_url":"https://api.github.com/users/swaheed2/events{/privacy}","received_events_url":"https://api.github.com/users/swaheed2/received_events","type":"User","site_admin":false},"repo":{"id":67620361,"name":"couchbase-lite-java-core","full_name":"swaheed2/couchbase-lite-java-core","owner":{"login":"swaheed2","id":8592912,"avatar_url":"https://avatars.githubusercontent.com/u/8592912?v=3","gravatar_id":"","url":"https://api.github.com/users/swaheed2","html_url":"https://github.com/swaheed2","followers_url":"https://api.github.com/users/swaheed2/followers","following_url":"https://api.github.com/users/swaheed2/following{/other_user}","gists_url":"https://api.github.com/users/swaheed2/gists{/gist_id}","starred_url":"https://api.github.com/users/swaheed2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaheed2/subscriptions","organizations_url":"https://api.github.com/users/swaheed2/orgs","repos_url":"https://api.github.com/users/swaheed2/repos","events_url":"https://api.github.com/users/swaheed2/events{/privacy}","received_events_url":"https://api.github.com/users/swaheed2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swaheed2/couchbase-lite-java-core","description":"Couchbase Lite Java core library","fork":true,"url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core","forks_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/forks","keys_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/teams","hooks_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/hooks","issue_events_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/issues/events{/number}","events_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/events","assignees_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/assignees{/user}","branches_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/branches{/branch}","tags_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/tags","blobs_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/statuses/{sha}","languages_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/languages","stargazers_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/stargazers","contributors_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/contributors","subscribers_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/subscribers","subscription_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/subscription","commits_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/contents/{+path}","compare_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/merges","archive_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/downloads","issues_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/issues{/number}","pulls_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/pulls{/number}","milestones_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/milestones{/number}","notifications_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/labels{/name}","releases_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/releases{/id}","deployments_url":"https://api.github.com/repos/swaheed2/couchbase-lite-java-core/deployments","created_at":"2016-09-07T15:36:15Z","updated_at":"2016-09-07T15:36:17Z","pushed_at":"2016-10-15T01:18:59Z","git_url":"git://github.com/swaheed2/couchbase-lite-java-core.git","ssh_url":"git@github.com:swaheed2/couchbase-lite-java-core.git","clone_url":"https://github.com/swaheed2/couchbase-lite-java-core.git","svn_url":"https://github.com/swaheed2/couchbase-lite-java-core","homepage":"","size":8952,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"couchbase:master","ref":"master","sha":"490fcc9806651305ec69b1510d5eb36ef8964bd2","user":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"repo":{"id":12310030,"name":"couchbase-lite-java-core","full_name":"couchbase/couchbase-lite-java-core","owner":{"login":"couchbase","id":605755,"avatar_url":"https://avatars.githubusercontent.com/u/605755?v=3","gravatar_id":"","url":"https://api.github.com/users/couchbase","html_url":"https://github.com/couchbase","followers_url":"https://api.github.com/users/couchbase/followers","following_url":"https://api.github.com/users/couchbase/following{/other_user}","gists_url":"https://api.github.com/users/couchbase/gists{/gist_id}","starred_url":"https://api.github.com/users/couchbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/couchbase/subscriptions","organizations_url":"https://api.github.com/users/couchbase/orgs","repos_url":"https://api.github.com/users/couchbase/repos","events_url":"https://api.github.com/users/couchbase/events{/privacy}","received_events_url":"https://api.github.com/users/couchbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/couchbase/couchbase-lite-java-core","description":"Couchbase Lite Java core library","fork":false,"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core","forks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/forks","keys_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/teams","hooks_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/hooks","issue_events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/events{/number}","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/events","assignees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/assignees{/user}","branches_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/branches{/branch}","tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/tags","blobs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/{sha}","languages_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/languages","stargazers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/stargazers","contributors_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contributors","subscribers_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscribers","subscription_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/subscription","commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/contents/{+path}","compare_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/merges","archive_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/downloads","issues_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues{/number}","pulls_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls{/number}","milestones_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones{/number}","notifications_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels{/name}","releases_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/releases{/id}","deployments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/deployments","created_at":"2013-08-22T23:13:23Z","updated_at":"2016-09-23T07:06:12Z","pushed_at":"2016-10-15T02:33:47Z","git_url":"git://github.com/couchbase/couchbase-lite-java-core.git","ssh_url":"git@github.com:couchbase/couchbase-lite-java-core.git","clone_url":"https://github.com/couchbase/couchbase-lite-java-core.git","svn_url":"https://github.com/couchbase/couchbase-lite-java-core","homepage":"","size":10892,"stargazers_count":48,"watchers_count":48,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":191,"forks":79,"open_issues":191,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486"},"html":{"href":"https://github.com/couchbase/couchbase-lite-java-core/pull/1486"},"issue":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1486"},"comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1486/comments"},"review_comments":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486/comments"},"review_comment":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/pulls/1486/commits"},"statuses":{"href":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/statuses/a74fe2c4ba295f0afa04d6bfb6c0596d9edbd4a5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"hideki"}}