all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 54024@debbugs.gnu.org, Arun Isaac <arunisaac@systemreboot.net>
Subject: [bug#54024] [PATCH] web: Preprocess search query from GraphQL before use.
Date: Wed, 16 Feb 2022 13:54:46 +0530	[thread overview]
Message-ID: <20220216082446.24153-1-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20220216082121.23755-1-arunisaac@systemreboot.net>

* 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





  reply	other threads:[~2022-02-16  9:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16  8:21 [bug#54024] [mumi] Preprocess search query from GraphQL before use Arun Isaac
2022-02-16  8:24 ` Arun Isaac [this message]
2022-02-17 22:19 ` bug#54024: " Ricardo Wurmus
2022-02-19  6:31   ` [bug#54024] " Arun Isaac
2022-02-19 11:07     ` Ricardo Wurmus
2022-02-19 20:19       ` Arun Isaac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220216082446.24153-1-arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=54024@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.