Project

Profile

Help

Story #4879

Allow users to filter on package filename in /content/rpm/packages/ for pulp3

Added by jcabrera 7 months ago. Updated 6 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

Add the possibility to query the file name ("location_href"?) of a package in the contents.

This simplifies the use of jq as we get directly the good href with the use of a GET query

 http :24817/pulp/api/v3/content/rpm/packages/?filename=name-version-release.arch.rpm

I prefer the query version than using jq

http :24817/pulp/api/v3/content/rpm/packages/ | jq -r '.results[] | select( .location_href == "name-version-release.arch.rpm")'

There could be a limitation when there are to much contents because the pagination prevents to look for all contents.

History

#1 Updated by daviddavis 6 months ago

Just FYI, file name of a package is different than location_href. Location_href could include a path like "Packages/v/VirtualGL-devel-2.5.2-1.el7.x86_64.rpm".

#2 Updated by ttereshc 6 months ago

  • Tracker changed from Issue to Story
  • % Done set to 0

#3 Updated by ggainey 6 months ago

  • Subject changed from Allow users to filter on package name in /content/rpm/packages/ for pulp3 to Allow users to filter on package filename in /content/rpm/packages/ for pulp3

Please register to edit this issue

Also available in: Atom PDF