From 57a1381c9cf8055ca8e16e46aa8f85c32d70bc55 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Tue, 19 Apr 2022 18:38:56 -0500 Subject: [PATCH] Update to latest goflow --- go.mod | 2 +- go.sum | 4 ++-- web/flow/start.go | 2 +- web/flow/testdata/preview_start.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 1e96ab1aa..0ba683103 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/lib/pq v1.10.4 github.com/nyaruka/ezconf v0.2.1 github.com/nyaruka/gocommon v1.18.0 - github.com/nyaruka/goflow v0.157.0 + github.com/nyaruka/goflow v0.158.0 github.com/nyaruka/librato v1.0.0 github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d github.com/nyaruka/null v1.2.0 diff --git a/go.sum b/go.sum index c87783649..3fe6e046f 100644 --- a/go.sum +++ b/go.sum @@ -137,8 +137,8 @@ github.com/nyaruka/ezconf v0.2.1/go.mod h1:ey182kYkw2MIi4XiWe1FR/mzI33WCmTWuceDY github.com/nyaruka/gocommon v1.5.3/go.mod h1:2ZeBZF9yt20IaAJ4aC1ujojAsFhJBk2IuDvSl7KuQDw= github.com/nyaruka/gocommon v1.18.0 h1:pRSV63w449FVHrjeXJNNIyoD0k47ruqPq3fROuHBjD0= github.com/nyaruka/gocommon v1.18.0/go.mod h1:+jVWR2FB6XTqFz7fjvVIZMFwp2B6uoaCk7NVLGnfPFM= -github.com/nyaruka/goflow v0.157.0 h1:t8ilxL1Fi38Y/fiYBTB8o+jknxeRwKprgxaXkIhjfqM= -github.com/nyaruka/goflow v0.157.0/go.mod h1:J+FJ0iw1cjivEziBGpVPtTl9fuOz+ib558MCBdKLC8M= +github.com/nyaruka/goflow v0.158.0 h1:LQbZBUnW6AiAm3WB56pEEOPUfwggDxkluh5zjovfLf8= +github.com/nyaruka/goflow v0.158.0/go.mod h1:J+FJ0iw1cjivEziBGpVPtTl9fuOz+ib558MCBdKLC8M= github.com/nyaruka/librato v1.0.0 h1:Vznj9WCeC1yZXbBYyYp40KnbmXLbEkjKmHesV/v2SR0= github.com/nyaruka/librato v1.0.0/go.mod h1:pkRNLFhFurOz0QqBz6/DuTFhHHxAubWxs4Jx+J7yUgg= github.com/nyaruka/logrus_sentry v0.8.2-0.20190129182604-c2962b80ba7d h1:hyp9u36KIwbTCo2JAJ+TuJcJBc+UZzEig7RI/S5Dvkc= diff --git a/web/flow/start.go b/web/flow/start.go index 193b13f2e..043a93a4c 100644 --- a/web/flow/start.go +++ b/web/flow/start.go @@ -120,7 +120,7 @@ func BuildStartQuery(oa *models.OrgAssets, flow *models.Flow, userQuery string, exclusions := make([]string, 0, 10) if excs.NonActive { - exclusions = append(exclusions, "status = \"A\"") + exclusions = append(exclusions, "status = \"active\"") } if excs.InAFlow { exclusions = append(exclusions, "flow = \"\"") diff --git a/web/flow/testdata/preview_start.json b/web/flow/testdata/preview_start.json index 98f861d06..ff5dde7ca 100644 --- a/web/flow/testdata/preview_start.json +++ b/web/flow/testdata/preview_start.json @@ -113,7 +113,7 @@ }, "status": 200, "response": { - "query": "(group = \"Doctors\" OR group = \"Testers\" OR id = 1234 OR id = 3456 OR tel = \"+1234567890\" OR facebook = 9876543210) AND status = \"A\" AND flow = \"\" AND history != \"Pick a Number\" AND last_seen_on > \"07-04-2018\"", + "query": "(group = \"Doctors\" OR group = \"Testers\" OR id = 1234 OR id = 3456 OR tel = \"+1234567890\" OR facebook = 9876543210) AND status = \"active\" AND flow = \"\" AND history != \"Pick a Number\" AND last_seen_on > \"07-04-2018\"", "count": 1, "sample": [ 10002 @@ -140,7 +140,7 @@ }, "status": 200, "response": { - "query": "gender = \"M\" AND status = \"A\" AND flow = \"\" AND history != \"Pick a Number\" AND last_seen_on > \"07-04-2018\"", + "query": "gender = \"M\" AND status = \"active\" AND flow = \"\" AND history != \"Pick a Number\" AND last_seen_on > \"07-04-2018\"", "count": 1, "sample": [ 10003