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 OFPiI8YPdWPJ2QAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 17:28:54 +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 +OzYI8YPdWNVCQEA9RJhRA (envelope-from ) for ; Wed, 16 Nov 2022 17:28:54 +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 25C341B8FB for ; Wed, 16 Nov 2022 17:28:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovLGv-00011F-KE; Wed, 16 Nov 2022 11:28:21 -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 1ovLGv-000114-3v for guix-devel@gnu.org; Wed, 16 Nov 2022 11:28:21 -0500 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovLGt-0006A1-80 for guix-devel@gnu.org; Wed, 16 Nov 2022 11:28:20 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id 06D1C27BBE9; Wed, 16 Nov 2022 16:28:18 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 1f8d49b7; Wed, 16 Nov 2022 16:28:17 +0000 (UTC) References: <9vqBOZWiGUiZSkoCuukNGQ3yi98pp4JEJ42TdjCMl3hvFb0HpTZDWD8XCxWkXIwaixIoEAvGrfL-ZUsdw9jgNjOMYrFL0E973-9Cgnv4W_0=@protonmail.com> <87iljtgr72.fsf@cbaines.net> <87fsentep5.fsf@cbaines.net> <2B7u3iFPNl6PNQBWL19Z8NS2-D7ZyNR8CgNefdZ9ozIHufpJQYTpyqB4lokxC_YA698wOqppMkJ_gorC-vP_psbgyAVpXx_YeuPT0vGi6EI=@protonmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Christopher Baines To: Luis Felipe Cc: guix-devel Subject: Re: [Guix Website] A Search Page for Packages Date: Wed, 16 Nov 2022 16:25:39 +0000 In-reply-to: <2B7u3iFPNl6PNQBWL19Z8NS2-D7ZyNR8CgNefdZ9ozIHufpJQYTpyqB4lokxC_YA698wOqppMkJ_gorC-vP_psbgyAVpXx_YeuPT0vGi6EI=@protonmail.com> Message-ID: <874juyg8yo.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668616134; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=oDpl4gjJgUYGPaTpeiH9bSgFFsmRWUnF6SeNqe3ooQU=; b=ilbjI0F9n0AMc+tnRUsVjcCdcdyAU9eBuicOf4P2SdIAd2rYafFRzD8T6jjdU8C8hHUd59 g5ZlAUOXAY2AeDzFz2Fsnmrray2+kjzD830mGycniF6AyGh/m/+SHv4Yr9Mp2C2sqrw+J7 Pq3WMRo+3LtlKlHSsncikMiycIvPtairM4jrE0/tJzBWmgcguy7tJTt0SfNMw5kOkut40z aYEibFh8vQJ2/aoH8ytSOYy/VCCw41bJNBsxCae9E4Jo7oAk8dWX9jgOaZj0AFVLLKQ0Er zx/nv/+yewbVaEW1bX+2Ko11HWAHia13CIw9WhSVjf5iTaHxMqvZxL5cNUU0uQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668616134; a=rsa-sha256; cv=none; b=Cdqht6gzZF+TGGeUgoh5CxK8cRharfblTVommAG32rt9iDDK/3fPhA9Wlv+WSzabiHZ591 xeZQ8dbx4tzABfz0vmEUAay89As2sJVvI0xIvTQocGVA+fGHNube/R9AFq/icXz1+BMsJf 3+df3X2UyTVvOA4AQFZNn0RMV7P6H2WJoEhbJMe1gtZXZmOe6fGe8eYbE/PBT9Qfn3i2xd wjA6o5ZQhsluOYfaAkqjLpab9M0R2mqCfor51y75TlIf2OXGpldioZB4QvwR/t32g34HhW 57+nJ2dglXamzWrKfQxxqu01eCKEomaOqq+/gF+D9Gs9CBbNTZEQEBDfWzkzsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -5.74 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 25C341B8FB X-Spam-Score: -5.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: +jyb5atMh0dN --=-=-= Content-Type: text/plain Luis Felipe writes: >> > 1. Is there any way to page through the data >> > (e.g. https://dev.socrata.com/docs/paging.html#2.1)? >> > >> For most bits of data, yes. Although I haven't used limit/offset style >> pagination as that doesn't perform particularly well. >> > >> The Guix Data Service web pages should help with how to use the API, so >> you can look at how the packages page handles pagination for example: >> > >> https://data.guix.gnu.org/revision/c4025af8c11c3e9ea0c2747b6c475c916fb61d80/packages > > I see. Although it seems that pagination only works to page through > the whole package data set and not through the results of a search. So > right now the package browser can only show LIMIT, or less, number of > packages after performing a search. For example: > > https://data.guix.gnu.org/repository/1/branch/master/latest-processed-revision/packages?locale=en_US.UTF-8&search_query=python&field=version&field=synopsis&after_name=python-cython&limit_results=30 > > So one can't use "search_query" and "after_name" in the same request. I'm stuck in that part. Ah, yeah, that's true. I think whatever you've implemented is fine for now. The Guix Data Service API can always be changed if that would be more helpful. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmN1D59fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xf9+RAAqI5U+ndNlhAwI1LR0Kb56l0/xhmt2hcB k1Wc/kUJUf/20ztzQITXxT/4VeTwTpiAJpTaKnBPkloY59Ha9KTDf9HQoLzWvepd W7vWkt5mXy7VgXdKnN4OMpSEajUmAs+ERDd9h+FBrYVz5QQcmzT3hw/kdQJsaJXe CM/VUi3oED/s9OfaZV08w5aJC0qG6l/o8SSjU4A+9kvqVezXoOuixqy058A0b4HW 1EY8si0eHa6L2aZjvUZB1ItNanYQ2lXAOsSAzJsKJzxbb0YZ74w9hSSGcDmqUoC1 +5U9fX5sZIpqQ0eE4p+WsTk5GsMhffzvStHRusmqzueuO7d6CJ0tc6sodLRhbmVO dJkG2excAG4wSZ3H6rTtjqfDpa4NhZ528VgQeV/d6gYJRAfmoWB/VbWY+6DrKjrs QL2537etwJXClMKLMnJ+KJizD7Cir0RYNywnDudN+uYfqmLbFFcmN89OeFqavZ/b GOV1chmZLUS+mvTrewBDMgMtJZrHCvn6YDI7jEh4RPWULV6WAfr4RwJTXRhI+eBb 8RkHGKh453S5q8zIisLUbqC1lUxyv5V2/bTGkOUQ9BSA6llXIdHjpAm3xBeajanU 7QAiIbrSlbFFAUivixNHSJtVTr2HfKA+14hjqCy3vrHhwkJsYqZeY9amyJe9rYCF H63ffHbyrdo= =XgN9 -----END PGP SIGNATURE----- --=-=-=--