From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SPeIMmaSmGMV5gAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 15:55:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UHerMmaSmGP/6gAA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 15:55:34 +0100 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 A68CF202A3 for ; Tue, 13 Dec 2022 15:55:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p56gW-0003co-F2; Tue, 13 Dec 2022 09:55:08 -0500 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 1p56gQ-0003cZ-9A for guix-patches@gnu.org; Tue, 13 Dec 2022 09:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p56gQ-0005d6-0i for guix-patches@gnu.org; Tue, 13 Dec 2022 09:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p56gP-0004qE-JF for guix-patches@gnu.org; Tue, 13 Dec 2022 09:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58136] [PATCH] ui: Improve sort order when searching package names. Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Dec 2022 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58136 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 58136@debbugs.gnu.org Received: via spool by 58136-submit@debbugs.gnu.org id=B58136.167094324318584 (code B ref 58136); Tue, 13 Dec 2022 14:55:01 +0000 Received: (at 58136) by debbugs.gnu.org; 13 Dec 2022 14:54:03 +0000 Received: from localhost ([127.0.0.1]:60909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p56fT-0004pg-3J for submit@debbugs.gnu.org; Tue, 13 Dec 2022 09:54:03 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:58222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p56fP-0004pE-Ku for 58136@debbugs.gnu.org; Tue, 13 Dec 2022 09:54:01 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4NWhMc5Fzzz9sSD; Tue, 13 Dec 2022 15:53:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1670943228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6sV+NCdngVxiTB0PjklXZWkzTxVqhL55q6kwqeP46x8=; b=aaoYRXw/MLFVz+aw4XVAAUVqt6CZaBqgLm7tUzieIpmWf7DRT7I6O7Fk6YuwT/LIR8Qqps qqhszhjlBVnMQ5nyW4wJCegUIR36JDKZNcSk7bMuSTwLXeU2uQBYSXgHgZHYpzxPb5MEl+ U9wz8+EQn6/XfSNe+bxR84WkhA1h8CU6I0Cov0Iw6rbIJeBzD4XZJxEEfnjIxabrPxpkq0 E4YX5kn2oGIkJSfHGY75PHyuGJL0/umrmerp+4PBrgzl14QT50BQekBbsBcy6axVPuyoF/ jmbq/IRI2vA0GaHAkdEjGYWaxosxEpUyewB8LZ8Dq/NdGoqM+2MH/3uMao4Fyw== Date: Tue, 13 Dec 2022 15:53:41 +0100 From: Lars-Dominik Braun Message-ID: References: <87fsdjwhyd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fsdjwhyd.fsf@gnu.org> X-Rspamd-Queue-Id: 4NWhMc5Fzzz9sSD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670943331; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=6sV+NCdngVxiTB0PjklXZWkzTxVqhL55q6kwqeP46x8=; b=dE8RNkyhTJwTmnNyCQHii0omlMWT314Y4h3BkupBXLo96QhfMK7HEp2fNDsMWEl6M/b697 qFqES4baEMLT4DqZqpf4drgvF3cUMYd3nLFn6N1RdMGz9OEySXggcRFzxfLz/OOx81QlRc v+zSbd6sDaDj4P3XhzEmj+gvtq+6CgLIyCdz5k2saJ1yiEBpKWR07exlmokd1RaVXZ7DRh f7k0Dm//BeJfXV9mPHUN3C9XSbSCl7QT8UvxPTuDp29TMutLK/0wC058CpR6ZfTbzTro/H gdurb1QZubTMW5b8g6BiJEq7EuxgnEJa6qjCB9n1oERTkB0oJK2AYJbt2r7qeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b="aaoYRXw/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670943331; a=rsa-sha256; cv=none; b=QcEw59MdD/GJ55LUEd9ueYlhhhUDSqf+JKOZT5PO2SNvfhcGSoCBDhe3SDqkaHETeMLjJZ /5FkvScEoMusIpwqufkxNP3++teBhK/6DI6g4fnUMzlFt1xEsyGvTksTya5lFmPsK2Vz5k znacKQo0NTYyqIRl+M7r9qcFIGs4VsLoGf9OUrui1R1XFyoh/jFuDE86M9x81AHiIioT0b utVWSltEGl+Fosyf86nt8Qa7jLyr+WZjtG+2XtKdeIoTtBsEgnnwAATkV5TR5F6RM7ys/2 TKuBfibGhCps2BpuplkVBCi9DB5LmAl+NetpIvmEE5xVOG29U4MuJqK0duWTxQ== X-Migadu-Spam-Score: -0.57 X-Spam-Score: -0.57 X-Migadu-Queue-Id: A68CF202A3 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b="aaoYRXw/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none) X-TUID: JzAjilCDuV2v Hi Ludo, > Applied with the minor changes below, thank you! thank you! > +(test-assert "package-relevance and upstream name" > + ;; https://issues.guix.gnu.org/58136 > + (let ((ggplot2 (specification->package "r-ggplot2")) > + (ggstance (specification->package "r-ggstance")) > + (rx (make-regexp "ggplot2" regexp/icase))) > + (> (package-relevance ggplot2 (list rx)) > + (package-relevance ggstance (list rx)) > + 0))) I was hesitant to add a system test, which depends on real package descriptions (not synthetic ones), because at some point it *will* break. Cheers, Lars