New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excluding channels from replication using sync_gateway/bychannel filter #1960
Comments
Sample use case discussed here: |
The exclude filter wouldn't be compatible with admin API requests, or requests by users that have |
@adamcfraser I think this is touching on CBL being aware of channels they have access to. |
Closing this, as the complexities listed above outweigh the potential benefit. Can reopen if there's a specific use case that can't be handled otherwise. |
There are scenarios where users would like to synchronize "all channels except X" - particularly for the case where the set of desired channels changes frequently.
To address this case, we could allow excluded channels to be defined when using the by channel filter using the format
channels = ["- channelname"]
- in this case the changes feed will return all channels the user has access to except for the specified channel.A concern is that a combination of excluded and included channels doesn't really make any sense - setting channels=["channelA" "-channelB"] isn't meaningful, since "-channelB" means everything except channelB (including channelA) will already be included.
An alternative approach would be to define a sync_gateway/exceptchannel filter for this scenario.
The text was updated successfully, but these errors were encountered: