{"action":"created","issue":{"url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/123","repository_url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter","labels_url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/123/comments","events_url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/123/events","html_url":"https://github.com/socrata-platform/soql-postgres-adapter/pull/123","id":136607500,"number":123,"title":"EN-3281 - Consider discarded copies when determining dataVersion delta between truth and PG secondary","user":{"login":"urmilan","id":6767006,"avatar_url":"https://avatars.githubusercontent.com/u/6767006?v=3","gravatar_id":"","url":"https://api.github.com/users/urmilan","html_url":"https://github.com/urmilan","followers_url":"https://api.github.com/users/urmilan/followers","following_url":"https://api.github.com/users/urmilan/following{/other_user}","gists_url":"https://api.github.com/users/urmilan/gists{/gist_id}","starred_url":"https://api.github.com/users/urmilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urmilan/subscriptions","organizations_url":"https://api.github.com/users/urmilan/orgs","repos_url":"https://api.github.com/users/urmilan/repos","events_url":"https://api.github.com/users/urmilan/events{/privacy}","received_events_url":"https://api.github.com/users/urmilan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-26T06:12:56Z","updated_at":"2016-02-26T18:57:48Z","closed_at":"2016-02-26T18:49:47Z","pull_request":{"url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/pulls/123","html_url":"https://github.com/socrata-platform/soql-postgres-adapter/pull/123","diff_url":"https://github.com/socrata-platform/soql-postgres-adapter/pull/123.diff","patch_url":"https://github.com/socrata-platform/soql-postgres-adapter/pull/123.patch"},"body":"See https://socrata.atlassian.net/browse/EN-3281\r\n\r\nWe are currently triggering unnecessary resyncs on the version event immediately following the dropping of a working copy. This is because we are using `PostgresDatasetMapReader.latest` to determine the list of copies that have been replicated to the secondary, and this method excludes discarded working copies whose dropCopy event has in fact been synced to the secondary. This commit makes sure that we consider those discarded copies when deciding whether to resync."},"comment":{"url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/comments/189424078","html_url":"https://github.com/socrata-platform/soql-postgres-adapter/pull/123#issuecomment-189424078","issue_url":"https://api.github.com/repos/socrata-platform/soql-postgres-adapter/issues/123","id":189424078,"user":{"login":"cloudbees-pull-request-builder","id":2611310,"avatar_url":"https://avatars.githubusercontent.com/u/2611310?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudbees-pull-request-builder","html_url":"https://github.com/cloudbees-pull-request-builder","followers_url":"https://api.github.com/users/cloudbees-pull-request-builder/followers","following_url":"https://api.github.com/users/cloudbees-pull-request-builder/following{/other_user}","gists_url":"https://api.github.com/users/cloudbees-pull-request-builder/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudbees-pull-request-builder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudbees-pull-request-builder/subscriptions","organizations_url":"https://api.github.com/users/cloudbees-pull-request-builder/orgs","repos_url":"https://api.github.com/users/cloudbees-pull-request-builder/repos","events_url":"https://api.github.com/users/cloudbees-pull-request-builder/events{/privacy}","received_events_url":"https://api.github.com/users/cloudbees-pull-request-builder/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T18:57:48Z","updated_at":"2016-02-26T18:57:48Z","body":"[soql-postgres-adapter #998](https://socrata-oss.ci.cloudbees.com/job/soql-postgres-adapter/998/) SUCCESS\nThis pull request looks good"}}