Subject: [PATCH] web: Preprocess search query from GraphQL before use.

From: Arun Isaac <[email-masked]>
Date: Wed, 16 Feb 2022 13:54:46 +0530

* mumi/web/graphql.scm (<query>): Preprocess search query using
process-query before passing on to search-bugs.
---
 mumi/web/graphql.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mumi/web/graphql.scm b/mumi/web/graphql.scm
index 662c5ba..56110a0 100644
--- a/mumi/web/graphql.scm
+++ b/mumi/web/graphql.scm
@@ -102,7 +102,8 @@
            (bug-status number)))
   (issues (non-nullable-type (list-type <issue>))
           (lambda* (parent context info #:key search)
-            (search-bugs search)))
+            (search-bugs (string-join
+                          (process-query search)))))
   (person (non-nullable-type <person>)
           (lambda* (parent context info #:key email)
             email)))
-- 
2.34.0