Hi
I try to listen to changes feed on specific channel (lets call it channelA
), but the document has conflicts and the winning revision does not belong to the channel. But non winning leaf revision does.
When querying the changes feed with params style=all_docs&active_only=true&include_docs=false&filter=sync_gateway%2Fbychannel&channels=channelA
i get no results.
The document revision tree looks like this:
1-77635e (no channels) __
| \
2-4f0444 (no channels) 2-1b3ef4 (channelA)
|
3-c3611d (no channels)
This is the document’s _sync
metadata:
"_sync": {
"rev": "3-c3611d",
"flags": 24,
"sequence": 139,
"recent_sequences": [
136,
137,
138,
139
],
"history": {
"revs": [
"1-77635e",
"2-4f0444",
"2-1b3ef4",
"3-c3611d"
],
"parents": [
-1,
0,
0,
1
],
"bodymap": {
"2": "{\"syncedBy\":\"someUser\"}"
},
"channels": [
null,
null,
[
"channelA"
],
null
]
},
"time_saved": "2017-06-06T09:02:25.869178522Z"
},
It looks to me like only the winning revision is verified against the byChannel
filter and only if it matches all remaining conflicts are included in the response (if requested by style
param).
We are using version 1.3.
Is there a way to listen for all leafs on specific channel, other than making a change request w/o filter and manually checking individual docs’ channel info?