[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Guix Website] A Search Page for Packages
From: |
Christopher Baines |
Subject: |
Re: [Guix Website] A Search Page for Packages |
Date: |
Wed, 16 Nov 2022 16:25:39 +0000 |
User-agent: |
mu4e 1.8.11; emacs 28.2 |
Luis Felipe <luis.felipe.la@protonmail.com> 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.
signature.asc
Description: PGP signature
- [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/05
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/16
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/18
- Re: [Guix Website] A Search Page for Packages, Christopher Baines, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Luis Felipe, 2022/11/19
- Re: [Guix Website] A Search Page for Packages, Ludovic Courtès, 2022/11/21
- Re: [Guix Website] A Search Page for Packages, John Kehayias, 2022/11/19