Bug 766944 - Consumer Errata API lacks needed information
Summary: Consumer Errata API lacks needed information
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 20:28 UTC by Eric Helms
Modified: 2013-09-09 16:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:14:21 UTC


Attachments (Terms of Use)

Description Eric Helms 2011-12-12 20:28:06 UTC
Description of problem:
Querying for Consumer Errata via the API does not return all required data fields.

Version-Release number of selected component (if applicable):
pulp-0.0.244-5.fc15.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Register Consumer to Pulp
2. Subscribe Consumer to Repo that pulp knows about
3. Bind Consumer to repository using Consumer ID and RepoID
4. Query Pulp API for Consumer errata
  
Actual results:
Limited set of data fields for each errata within the list. e.g.
 {
    "_id": "RHBA-2011:1199",
    "type": "bugfix",
    "id": "RHBA-2011:1199",
    "title": "tmpwatch bug fix update"
  }

Expected results:
Expecting each errata to be represented by:
https://fedorahosted.org/pulp/wiki/UGREST-Errata#ListErratabyConsumer

Additional info:
API call used:

curl -k -u admin:admin https://localhost/pulp/api/consumers/<consumer id>/errata/ | json_reformat

Comment 1 Pradeep Kilambi 2011-12-15 16:38:16 UTC
commit 02b7616043db69c6cf59033e1f83b8d2c4cbc2f1

$ curl -k -u admin:admin https://localhost/pulp/api/consumers/prad/errata/ |json_reformat
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   984    0   984    0     0   1434      0 --:--:-- --:--:-- --:--:--  1436
[
  {
    "issued": "2010-11-7 00:00:00",
    "references": [

    ],
    "pkglist": [
      {
        "packages": [
          {
            "src": "xen-3.0.3-80.el5_3.3.src.rpm",
            "name": "emoticons",
            "sum": [
              "md5",
              "366bb5e73a5905eacb82c96e0578f92b"
            ],
            "filename": "emoticons-0.1-2.x86_64.rpm",
            "epoch": "0",
            "version": "0.1",
            "release": "2",
            "arch": "x86_64"
          },
          {
            "src": "xen-3.0.3-80.el5_3.3.src.rpm",
            "name": "patb",
            "sum": [
              "md5",
              "f3c197a29d9b66c5b65c5d62b25db5b4"
            ],
            "filename": "patb-0.1-2.x86_64.rpm",
            "epoch": "0",
            "version": "0.1",
            "release": "2",
            "arch": "x86_64"
          }
        ],
        "name": "F13 Pulp Test Packages",
        "short": "F13PTP"
      }
    ],
    "id": "RHEA-2010:9999",
    "severity": "",
    "title": "test package enhancements",
    "_ns": "errata",
    "version": "1",
    "reboot_suggested": false,
    "type": "enhancements",
    "immutable": true,
    "status": "final",
    "updated": "2010-11-8 00:00:00",
    "description": null,
    "repo_defined": true,
    "pushcount": 1,
    "from_str": "enhancements",
    "rights": "",
    "solution": "",
    "summary": "",
    "release": "",
    "_id": "RHEA-2010:9999"
  }
]

Comment 2 Jeff Ortel 2011-12-15 20:18:17 UTC
build: 0.255

Comment 3 Preethi Thomas 2011-12-16 16:30:35 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.255-1.fc15.noarch
[root@preethi ~]# 

[root@preethi ~]# curl -k -u admin:admin https://localhost/pulp/api/consumers/preethi/errata/ |json_reformat |more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:12 --:--:--     0[
  {
    "issued": "2011-08-26 18:29:35",
    "references": [

    ],
    "pkglist": [
      {
        "packages": [
          {
            "src": "http://download.fedoraproject.org/pub/fedora/linux/updates/15/
i686/traceroute-debuginfo-2.0.18-1.fc15.i686.rpm",
            "name": "traceroute-debuginfo",
            "filename": "traceroute-debuginfo-2.0.18-1.fc15.i686.rpm",
            "epoch": "3",
            "version": "2.0.18",
            "release": "1.fc15",
            "arch": "i686"
          },
          {
            "src": "http://download.fedoraproject.org/pub/fedora/linux/updates/15/
i686/traceroute-2.0.18-1.fc15.i686.rpm",
            "name": "traceroute",
            "filename": "traceroute-2.0.18-1.fc15.i686.rpm",
            "epoch": "3",
            "version": "2.0.18",
            "release": "1.fc15",
            "arch": "i686"
          },

Comment 4 Preethi Thomas 2012-02-24 20:14:21 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:19:16 UTC
Pulp v1.0 is released.


Note You need to log in before you can comment on or make changes to this bug.