Merge pull request #374 from thaJeztah/17.12-backport-fix-namespace-filtering

[17.12] Fix event filter filtering on "or"
This commit is contained in:
Andrew Hsu
2018-02-12 18:43:13 -08:00
committed by GitHub
@@ -728,8 +728,9 @@ func (c *client) processEventStream(ctx context.Context) {
eventStream, err = c.getRemote().EventService().Subscribe(ctx, &eventsapi.SubscribeRequest{
Filters: []string{
"namespace==" + c.namespace,
"topic~=/tasks/",
// Filter on both namespace *and* topic. To create an "and" filter,
// this must be a single, comma-separated string
"namespace==" + c.namespace + ",topic~=|^/tasks/|",
},
}, grpc.FailFast(false))
if err != nil {