{"action":"opened","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1162","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1162/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1162/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1162","id":107757253,"number":1162,"title":"Bucket shadower ignores incoming document flags","user":{"login":"daverigby","id":755459,"avatar_url":"https://avatars.githubusercontent.com/u/755459?v=3","gravatar_id":"","url":"https://api.github.com/users/daverigby","html_url":"https://github.com/daverigby","followers_url":"https://api.github.com/users/daverigby/followers","following_url":"https://api.github.com/users/daverigby/following{/other_user}","gists_url":"https://api.github.com/users/daverigby/gists{/gist_id}","starred_url":"https://api.github.com/users/daverigby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daverigby/subscriptions","organizations_url":"https://api.github.com/users/daverigby/orgs","repos_url":"https://api.github.com/users/daverigby/repos","events_url":"https://api.github.com/users/daverigby/events{/privacy}","received_events_url":"https://api.github.com/users/daverigby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T17:03:26Z","updated_at":"2015-09-22T17:03:26Z","closed_at":null,"body":"The incoming document flags from a TAP mutation are ignored by the shadower: https://github.com/couchbase/sync_gateway/blob/master/src/github.com/couchbase/sync_gateway/db/shadower.go#L92\r\n\r\nNote that `flags` is not used.\r\n\r\nThis will result in the flags getting reset to zero if documents are modified by a SGW client (and then sync'd back to the shadow bucket).\r\n"}}