From d5afe944c9ce9259b844dff539979efd19d1457e Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Tue, 17 Oct 2017 10:28:23 -0400 Subject: [PATCH] added comments for compound predicate --- routes/v1.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/v1.js b/routes/v1.js index 80c20c4a..44bcd474 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -261,6 +261,12 @@ function addRoutes(app, peliasConfig) { ) ); + // search for venues under the following conditions: + // - there are no request errors + // - analysis is only admin (no address, query, or street) + // - there's a single field in analysis + // - request has a focus.point available + // https://github.com/pelias/pelias/issues/564 const venuesSearchShouldExecute = all( not(hasRequestErrors), isAdminOnlyAnalysis,