From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gLQILGTNVmM+VAAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 19:37:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oGU3LGTNVmNWYQEA9RJhRA (envelope-from ) for ; Mon, 24 Oct 2022 19:37:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6022817361 for ; Mon, 24 Oct 2022 19:37:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1on0Z9-0004Yi-Dz; Mon, 24 Oct 2022 12:44:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omxSn-0003QE-L5 for guix-devel@gnu.org; Mon, 24 Oct 2022 09:25:57 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omxSj-00041F-I6 for guix-devel@gnu.org; Mon, 24 Oct 2022 09:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mfGRHgoQVlnsuGdqI29HMgcAHfIWaoxywwue101Qddo=; b=L0CT/LQeOyYSEfoWxVvv6YDYSH CXhn/k0T/1l9D0Wjo/8voZ2B8WH/JozlNzdt0u7NP6A376mFMMeGSd42p6RYTVctDWjRjESEjnfrI DJzKRA7IsKGWebQErCbRbmx+tXyWph8Owur1cd78lKi155CjNMnvG+ezg4ScUXykMoi7ChoOTeskO LtHP7e7ZdJPQlTZpblvDkB45c0J25j8vQaGT0yzijzBPe8JeiZzk1PIJgD9mOMtJF+z+4LvXDUAuZ g76otgHNKIdB+uowNjZQuvSCanb0c3uElucoRzzyAzDO79OYmMNONkGGeC4DZP2WmyfZ4Cs+KQuE2 eYED3WMg==; Received: from [192.168.2.1] (port=59848 helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1omxSZ-0000DQ-13; Mon, 24 Oct 2022 18:55:43 +0530 From: Arun Isaac To: jgart , Guix Devel Subject: Re: Get all closed tickets with kolam In-Reply-To: <20221021185257.GB23680@dismail.de> References: <20221021185257.GB23680@dismail.de> Date: Mon, 24 Oct 2022 18:55:38 +0530 Message-ID: <87czah2w19.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Oct 2022 12:44:40 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-devel" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666633060; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mfGRHgoQVlnsuGdqI29HMgcAHfIWaoxywwue101Qddo=; b=uEksS/vnl6MfuBkUHD1Mo/cw8fBArQPa3y60O6uiih9UtvYdQXUjz62aj2hJ9pwFaU4mxH /XtZiKC4SfV2U7YWy3B9PI2du1LDJgSVVoCqKM+IjTNXbYs4o3NhUBa4Ag/QQoydeVGnE9 wSefe9rY7UT6BUTkr67JmIFH8O13/3K7+VasxUpZP1EFeEdkLDG7FdEIO2i5yxaPoSeH6t qEZBjeAGHUpn7dC5Kc+VxVXg+WbisT1EuHCeSxBCavea/RyMp+hF45dQOkFifbTX3zxV31 WUOKApNst5L1i7k2sfqtrtDIK/FwZ2ZREez0ksT2TuLSZ/Vl78+JZM6MgqPnpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666633060; a=rsa-sha256; cv=none; b=QyiN2Lg/+vPNUO3P9KW6+bPu/zEQuvaCVVSbYZ6ebFEZmZrwEcT6S3ardGKwPjZVIf6+E+ UvRLikwzlQ/ELmMh8EAby5rXNTFNwnJ7zlRIrrP6m6IZFXj5jr07/Wj2Dytyh059up8R8q PhG2KSWQTyhs+TF3P+mYA9+Sj+4wt/HKv8BovpQj7nNJFLYo6e9csjPKHIxya+OMFCadNU /o9OOObqbmeGgKYbknUUAFyYdSsZiRHQDZk64lA4biU1Fptcw9kuDu5eNddcmgLKAU0DdX 99e523EYcS227E4Cq08LcbTlVIpUrCpPEe/pLX+ndJ9pig0ewjoXwaBYhxSqYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="L0CT/LQe"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="L0CT/LQe"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6022817361 X-Spam-Score: 7.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: etTaH6hANAhw Hi jgart, > If so, is that endpoint currently deployed and accessible via mumi's > graphql API? Yes, the currently deployed mumi GraphQL endpoint is functioning normally. Sorry about the complete lack of documentation about how to use the GraphQL endpoint. Here is some working code with a bunch of GraphQL queries. I hope it helps. If it doesn't, do not hesitate to ping me. I will write better documentation "at some point". ;-) --8<---------------cut here---------------start------------->8--- (use-modules (ice-9 pretty-print) (kolam http)) (define %graphql-endpoint "https://issues.guix.gnu.org/graphql") ;; Shown below are different GraphQL queries. Comment out all except ;; one. ;; Find the number, title and date of all closed issues. (define %graphql-document '(document (query (#(issues #:search "is:closed") number title date)))) ;; Find the number, title, status and date of all issues submitted by ;; "arun". (define %graphql-document '(document (query (#(issues #:search "is:open submitter:arun") number title open date)))) ;; Find the title and submitter of issue 34948. (define %graphql-document '(document (query (#(issue #:number 34948) title (submitter name address))))) ;; Find issues Arun Isaac participated in, the title of those issues ;; and who closed those issues. (define %graphql-document '(document (query (#(person #:email "Arun Isaac ") name (participated_in_issues title (closer name address)))))) ;; Run the GraphQL query, and print the results. (pretty-print (graphql-http-get %graphql-endpoint %graphql-document)) --8<---------------cut here---------------end--------------->8--- > Is there currently a way to get all closed tickets on mumi? Yes, there is. See the first example query in the code above. In fact, in the #:search field of `#(issues #:search "is:closed")`, you can put in any search query that you can put in at the https://issues.guix.gnu.org web interface. The GraphQL endpoint and the web interface share the same search code. Currently, mumi provides three different GraphQL object types---issue, person and email. Please see https://git.elephly.net/gitweb.cgi?p=software/mumi.git;a=blob;f=mumi/web/graphql.scm;h=56110a088c044e44ff10262a596c1f8823f2ded4;hb=HEAD for a complete list of fields provided by each object. Also, only GraphQL query operations are supported at the moment. Mutation and subscription operations are not. > I'm asking this on the guix-devel mailing list because I find others > might find this info useful. Good thinking! :-) Cheers, Arun