| Summary: | RFE: Package search should be filterable by repository | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Justin Sherrill <jsherril> |
| Component: | z_other | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | cperry, jslagle, mmccune |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 30 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:12:31 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 684061 | ||
Fixed. Now you can post 'repoids' as a list of repository ids in the parameters passed.
commit e730b78936dd06c27a7ae65ed97667d260f6e56f
Author: Sayli Karmarkar <skarmark>
Date: Tue Nov 15 17:35:23 2011 -0800
750580 - Adding eval on client side so that api can accept list instead of str(list)
commit 9eb892c3c21d67f9e2a79cc099d4f314a76f1381
Author: Sayli Karmarkar <skarmark>
Date: Tue Nov 15 17:11:06 2011 -0800
750580 - RFE made search packages filterable by repositories
build: 0.249 [root@preethi ~]# pulp-admin package search --repoid=f15 |more
+------------------------------------------+
Package Information
+------------------------------------------+
Name EVRA
Filename Reposito
ries
gnupg2 0:2.0.17-1.fc15.x86_64
gnupg2-2.0.17-1.fc15.x86_64.rpm f15
kdepimlibs-devel 0:4.6.2-1.fc15.x86_64
kdepimlibs-devel-4.6.2-1.fc15.x86_64.rpm f15
hunspell-ko 0:0.5.0-2.fc15.noarch
hunspell-ko-0.5.0-2.fc15.noarch.rpm f15
words 0:3.0-17.fc15.noarch
words-3.0-17.fc15.noarch.rpm f15
allgeyer-musiqwik-fonts 0:5.002-5.fc15.noarch
allgeyer-musiqwik-fonts-5.002-5.fc15.noarch.rpm f15
gettext 0:0.18.1.1-7.fc15.x86_64
gettext-0.18.1.1-7.fc15.x86_64.rpm f15
amanda 0:3.2.2-2.fc15.x86_64
amanda-3.2.2-2.fc15.x86_64.rpm f15
ipa-ex-gothic-fonts 0:001.02-2.fc15.noarch
ipa-ex-gothic-fonts-001.02-2.fc15.noarch.rpm f15
kde-settings 0:4.6-10.fc15.noarch
--More--
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.255-1.fc15.noarch
[root@preethi ~]#
[root@preethi ~]# curl -u admin:admin -X POST -d '{"repoids":["f15"]}' -k https://localhost/pulp/api/services/search/packages/ |more
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19 0 0 100 19 0 2 0:00:09 0:00:06 0:00:03 2[{"name": "git", "checksum": {"sha256": "bab42afa6adbc564421d8004c824ec64478dffd
d6a7e9c96441648bd5b08151e"}, "filename": "git-1.7.5.1-1.fc15.x86_64.rpm", "epoch
": "0", "version": "1.7.5.1", "release": "1.fc15", "_id": "035c23fc-6e39-4513-9a
fd-181c987ad2f9", "arch": "x86_64", "id": "035c23fc-6e39-4513-9afd-181c987ad2f9"
, "repos": ["f15", "abc"]}, {"name": "openssh-server", "checksum": {"sha256": "e
d32bf01085821d5e2dbef7b828a213a26c7ae15c71ef85e0facee8f26d18a89"}, "filename": "
openssh-server-5.6p1-31.fc15.1.x86_64.rpm", "epoch": "0", "version": "5.6p1", "r
elease": "31.fc15.1", "_id": "bd5a54c6-8530-4c33-94bd-7a364bbb8b7b", "arch": "x8
6_64", "id": "bd5a54c6-8530-4c33-94bd-7a364bbb8b7b", "repos": ["f15", "abc"]}, {
"name": "kernel", "checksum": {"sha256": "9a0d77ea705f483b80ff483ce73b99044421e1
b37c2099b9a3d56801d181db78"}, "filename": "kernel-2.6.38.6-26.rc1.fc15.x86_64.rp
m", "epoch": "0", "version": "2.6.38.6", "release": "26.rc1.fc15", "_id": "16024
2de-c50b-4ad3-89be-c4e7d12ac894", "arch": "x86_64", "id": "160242de-c50b-4ad3-89
be-c4e7d12ac894", "repos": ["f15", "abc"]}, {"name": "hyphen-cy", "checksum": {"
sha256": "dca9a23337e1ae0950c96ed7ebf9708107719b20f97fc78097990da2c66a7128"}, "f
ilename": "hyphen-cy-0.20100531-2.fc15.noarch.rpm", "epoch": "0", "version": "0.
20100531", "release": "2.fc15", "_id": "84a8a21d-0117-488e-afca-dbb6e1af7583", "
arch": "noarch", "id": "84a8a21d-0117-488e-afca-dbb6e1af7583", "repos": ["f15",
"abc"]}, {"name": "gtk2", "checksum": {"sha256": "78bcdd48bd8e69ff2ba39d022c34bf
5f3d00877008e9c6d61060daa7b352dada"}, "filename": "gtk2-2.24.4-1.fc15.x86_64.rpm
", "epoch": "0", "version": "2.24.4", "release": "1.fc15", "_id": "c54fc512-42a8
-46de-951e-6c795082b84b", "arch": "x86_64", "id": "c54fc512-42a8-46de-951e-6c795
082b84b", "repos": ["f15", "abc"]}, {"name": "mplus-1mn-fonts", "checksum": {"sh
--More--
Pulp v1.0 is released Closed Current Release. |
Description of problem: The package search (/pulp/api/services/search/packages/) is extremely helpful, but we (katello) need to be able to search within a set of repositories. Right now we post a set of data: {name:"Name", regex=False}, but it would be very useful to be able to specify a list of repo ids as well: {name:"Name", regex=False, repos=["repo_id1", "repo_id2"]}