Bug 1099529

Summary: lifecycle environments api not returning results
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Content ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED WORKSFORME QA Contact: Adam Saleh <asaleh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: asaleh, bbuckingham, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5825
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-26 11:41:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom McKay 2014-05-20 14:32:39 UTC
http://localhost:3000/katello/api/v2/environments?organization_id=3&library=true

With or without library results in no results.

<pre>
{
    "total": 0,
    "subtotal": 0,
    "page": 1,
    "per_page": 20,
    "search": null,
    "sort": {
        "by": null,
        "order": null
    },
    "results": []
}
</pre>

Comment 1 Tom McKay 2014-05-20 14:32:41 UTC
Created from redmine issue http://projects.theforeman.org/issues/5825

Comment 3 Bryan Kearney 2014-05-21 17:53:54 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5825 has been closed

Comment 5 Adam Saleh 2014-05-26 11:41:11 UTC
https://qetello02.usersys.redhat.com/katello/api/v2/environments?organization_id=1

now returns:

{"total":1,"subtotal":1,"page":1,"per_page":20,"search":null,"sort":{"by":null,"order":null},"results":[{"id":1,"name":"Library","label":"Library","description":null,"organization":{"name":"ACME_Corporation","label":"ACME_Corporation"},"created_at":"2014-05-23T12:32:58Z","updated_at":"2014-05-23T12:32:58Z","library":true,"prior":null,"permissions":{"readable":true,"editable":true,"deletable":true,"promotable_or_removable":true}}]}