Details
-
New Feature
-
Resolution: Done
-
Major
-
None
Description
PRD: https://docs.google.com/document/d/1DN1okP8ESZh8q21O8HNIu-s7Be3IeehMS8pkGVQp9yQ/edit
Priority Reference : https://docs.google.com/spreadsheets/d/1K5EIWoiZifJt1ABygmj_8ppT-6_xS7ojhjxLEOgpHsU/edit#gid=0
Restrict a push replication to only a subset of the available documents, by writing a filter function. This gives a developer control on what CBL pushed back to SG.
Target - 2.1 (will depend on how many customers ask for it).
Acceptance criteria -
During a push replication, the a document or a set of documents live in an embedded database but will not be replicated to the Sync Gateway.
"How can I control what Couchbase Lite pushes back to Sync Gateway?"
True you can handle it in the Sync Gateway sync function via a rejected push by type, status != completed or XYZ check , but that means they might have to rework their sync function in production which nobody wants to do.