From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gIVEC5GdEmU0FQEAauVa8A:P1 (envelope-from ) for ; Tue, 26 Sep 2023 11:00:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gIVEC5GdEmU0FQEAauVa8A (envelope-from ) for ; Tue, 26 Sep 2023 11:00:01 +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 A6A0B4512A for ; Tue, 26 Sep 2023 11:00:00 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695718801; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=xa9SQAPlLtBtVISWZNxH+QT8UBQtvcX8NIWNyTevYFU=; b=faX25km26IEV2e/Bswi0gDZgW3N/1qCYnKga/cqt3H0iD6sSRAxceZSur0BYoRuyqIZu6K mof3FMij4PVsjNiUAnoPuYbwXr4rN68IzssfC0vOJEWzR4QHmYzzf7k3MF3uRWtnihiiSd IBgcmff/LmfC/uDqHIDiG/UVkIYK6fXOSpfJyH0nzqUvX/+o9kEUiUww0GB1rm0W4mnEIp pWrg3n2f7fzsw0ZSbim7OtetomgCclE6CmO4DUxvqM3xaUm8Ldpvm4Y6OkIaF6xyO2tu+E 0KR8rbnsTf+ihY7/q3Gr1zdjIR/u0kaPDr4HDeET42WB68EP/pmiI0Sw5kHsXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695718801; a=rsa-sha256; cv=none; b=aBoahvBPP2QhQEUfmPqenkHPBXrw0TeUtPTxoCRONOPFnbrrDbV12kY4latP25niF1Hv4N 6pxSi07W4ncbQaaWzneQifEn8Yep7cAzbTGJi+ZgnrU5xzXyYGOhIHMDgcXj+7oNh5RqaJ iVXXY7/srAZXsQPhTZdmtuYmJQSJkYBej3mURkF9GfkS1MnTNVokd4Y7wTE0M5zbM+dksE gyxnLjUuAsm9PbxNVqwUo8agwLUN7pDCrc9Ka4VIr9QLg00/pGeEwFrylzxbxegzkkk98E 5DJuAzzyC1kOgXGwO0on4XN9qXUJgy27q33iTxp1k41IJFAGr1rGV7kTSqeElw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql3uk-0006PM-DK; Tue, 26 Sep 2023 04:59:30 -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 1ql3uj-0006PB-1s for guix-devel@gnu.org; Tue, 26 Sep 2023 04:59:29 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql3uh-0000KA-3d for guix-devel@gnu.org; Tue, 26 Sep 2023 04:59:28 -0400 Received: from localhost (unknown [217.155.61.229]) by mira.cbaines.net (Postfix) with ESMTPSA id 0332027BBE2 for ; Tue, 26 Sep 2023 09:59:25 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 838fb087 for ; Tue, 26 Sep 2023 08:59:25 +0000 (UTC) From: Christopher Baines To: guix-devel@gnu.org Subject: [PATCH] web: Include merged_with in graphql . Date: Tue, 26 Sep 2023 09:59:25 +0100 Message-ID: <20230926085925.12732-1-mail@cbaines.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -4.74 X-Spam-Score: -4.74 X-Migadu-Queue-Id: A6A0B4512A X-TUID: 6Fj87Z8hKIJQ * mumi/web/graphql.scm (): Include merged_with. --- mumi/web/graphql.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mumi/web/graphql.scm b/mumi/web/graphql.scm index 6dcb8ce..2c7c676 100644 --- a/mumi/web/graphql.scm +++ b/mumi/web/graphql.scm @@ -69,7 +69,17 @@ (issue-messages (bug-num parent)))) (blocked_by (non-nullable-type (list-type )) (lambda (parent . _) - (map bug-status (bug-blockedby parent))))) + (map bug-status (bug-blockedby parent)))) + (merged_with (non-nullable-type (list-type )) + (lambda (parent . _) + (map + bug-status + (match (bug-mergedwith parent) + ((? string? str) + (string-split str #\space)) + ((? number? n) + (list (number->string n))) + (#f '())))))) (define-object-type (name (lambda (parent . _) -- 2.41.0