* [bug#54024] [mumi] Preprocess search query from GraphQL before use
@ 2022-02-16 8:21 Arun Isaac
2022-02-16 8:24 ` [bug#54024] [PATCH] web: " Arun Isaac
2022-02-17 22:19 ` bug#54024: [mumi] " Ricardo Wurmus
0 siblings, 2 replies; 6+ messages in thread
From: Arun Isaac @ 2022-02-16 8:21 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: arunisaac, 54024
Hi Ricardo,
It looks like there is a small bug in the GraphQL patches I sent
earlier. I had failed to preprocess the search query before use.
Regards,
Arun
Arun Isaac (1):
web: Preprocess search query from GraphQL before use.
mumi/web/graphql.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
2.34.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#54024] [PATCH] web: Preprocess search query from GraphQL before use.
2022-02-16 8:21 [bug#54024] [mumi] Preprocess search query from GraphQL before use Arun Isaac
@ 2022-02-16 8:24 ` Arun Isaac
2022-02-17 22:19 ` bug#54024: [mumi] " Ricardo Wurmus
1 sibling, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2022-02-16 8:24 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 54024, Arun Isaac
* 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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#54024: [mumi] Preprocess search query from GraphQL before use
2022-02-16 8:21 [bug#54024] [mumi] Preprocess search query from GraphQL before use Arun Isaac
2022-02-16 8:24 ` [bug#54024] [PATCH] web: " Arun Isaac
@ 2022-02-17 22:19 ` Ricardo Wurmus
2022-02-19 6:31 ` [bug#54024] " Arun Isaac
1 sibling, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2022-02-17 22:19 UTC (permalink / raw)
To: Arun Isaac; +Cc: 54024-done
Hi Arun,
> It looks like there is a small bug in the GraphQL patches I sent
> earlier. I had failed to preprocess the search query before use.
Applied, thanks!
(Reconfiguring issues.guix.gnu.org would take a little while longer as
we’re in the process of moving the root fs and /gnu/store to new disks.
Almost finished it today but ran into problems after rebooting.)
--
Ricardo
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#54024] [mumi] Preprocess search query from GraphQL before use
2022-02-17 22:19 ` bug#54024: [mumi] " Ricardo Wurmus
@ 2022-02-19 6:31 ` Arun Isaac
2022-02-19 11:07 ` Ricardo Wurmus
0 siblings, 1 reply; 6+ messages in thread
From: Arun Isaac @ 2022-02-19 6:31 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 54024-done
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Thanks, Ricardo! I think this new patch still isn't up on
issues.guix.gnu.org, but that's ok. It's not very urgent.
Should we consider more automated ways to redeploy mumi on every commit?
Or maybe, we should run a separate development server just for
that. WDYT?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#54024] [mumi] Preprocess search query from GraphQL before use
2022-02-19 6:31 ` [bug#54024] " Arun Isaac
@ 2022-02-19 11:07 ` Ricardo Wurmus
2022-02-19 20:19 ` Arun Isaac
0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2022-02-19 11:07 UTC (permalink / raw)
To: Arun Isaac; +Cc: 54024-done
Arun Isaac <arunisaac@systemreboot.net> writes:
> Thanks, Ricardo! I think this new patch still isn't up on
> issues.guix.gnu.org, but that's ok. It's not very urgent.
It’s not up because we’re still having problems with the migration.
> Should we consider more automated ways to redeploy mumi on every commit?
> Or maybe, we should run a separate development server just for
> that. WDYT?
We could change maintenance.git to not use the default mumi package but
to build the latest mumi at all times. I won’t be able to do this,
though. Toddler has a high fever and I barely sleep these days.
--
Ricardo
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#54024] [mumi] Preprocess search query from GraphQL before use
2022-02-19 11:07 ` Ricardo Wurmus
@ 2022-02-19 20:19 ` Arun Isaac
0 siblings, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2022-02-19 20:19 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 54024-done
[-- Attachment #1: Type: text/plain, Size: 757 bytes --]
Hi Ricardo,
> It’s not up because we’re still having problems with the migration.
No problem, this isn't too urgent.
>> Should we consider more automated ways to redeploy mumi on every commit?
>> Or maybe, we should run a separate development server just for
>> that. WDYT?
>
> We could change maintenance.git to not use the default mumi package but
> to build the latest mumi at all times. I won’t be able to do this,
> though. Toddler has a high fever and I barely sleep these days.
I'll take a look at this. Maybe, I can give this a shot. This may be
similar to a Guix based continuous deployment system I just set up at
work.
You take care, and take care of the little one. Family comes before
Guix.
Regards,
Arun
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-02-19 20:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-16 8:21 [bug#54024] [mumi] Preprocess search query from GraphQL before use Arun Isaac
2022-02-16 8:24 ` [bug#54024] [PATCH] web: " Arun Isaac
2022-02-17 22:19 ` bug#54024: [mumi] " 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
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).