#5471 endpoints to just list user and group packages
Opened a year ago by petersen. Modified 10 months ago

A lot of the pagure web API seems a bit inefficient: it would be nice to be able to specify particular fields (or subfields) to only return.

For example if I want to list the packages of a specific user or group, one is inundated with data:

eg exercising the userinfo endpoint:

$ pagure userinfo mattdm --json | wc -c
75192

Whereas:

$ pagure user mattdm 
rpms/calc
rpms/cowsay
rpms/dateutils
rpms/fedora-bookmarks
rpms/gcal
rpms/geeqie
rpms/icebreaker
rpms/jsoncpp
rpms/nss-altfiles
modules/rawtherapee
rpms/rawtherapee
rpms/smem
rpms/sudo
modules/system-tools
modules/systemtools

Similarly for the group endpoint:

$ pagure group budgie-sig
rpms/libxfce4windowing
rpms/sassc
rpms/wlrctl

but

$ pagure groupinfo budgie-sig -p -j | wc -c
5036

I am deliberately using examples with a small numbers of packages here.
But the point is some groups or users have thousands of packages, which may becomes dozens of pagure rest api paginations and hence slow also to generate and download (receive).

Hence I want to suggest specific APIs for listing user and group package fullnames only.

Also if the projects endpoint supported listing packages (repos) by group too that would improve things a bit.


Metadata Update from @wombelix:
- Issue assigned to wombelix

a year ago

Metadata Update from @wombelix:
- Issue set to the milestone: 6.0

a year ago

Metadata Update from @wombelix:
- Assignee reset

a year ago

Metadata Update from @wombelix:
- Issue tagged with: RFE, easyfix

10 months ago

Log in to comment on this ticket.

Metadata