Bug 819511

Summary: [REST API] Service should provide the right list of gear profiles that a user can use to create an application
Product: OKD Reporter: Xavier Coulon <xcoulon>
Component: MasterAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED UPSTREAM QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: abhgupta, adietish, pruan, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-19 22:26:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xavier Coulon 2012-05-07 13:07:28 UTC
In its current implementation, the service provides a complete list of gear profiles in the 'ADD_APPLICATION' link from a given domain resource, but this list does not take into account the user's profile. 
In the JBoss Tools integration, we display that list into a combo, but we have no way to filter and restrict to the allowed values, which means that users can be tempted to pick a 'medium' or 'large' gear profile event if their account does not allow it, giving an error at creation.

Ideally, the service should only provide the client with a valid list of gear profiles.

Comment 1 Xavier Coulon 2012-05-07 13:17:51 UTC
Adding link to https://issues.jboss.org/browse/JBIDE-11790

Comment 2 Abhishek Gupta 2012-06-15 00:12:22 UTC
This seems like a duplicate of Bug 817170

Comment 3 Peter Ruan 2012-06-19 22:26:17 UTC
verfied in INT 

"valid_options": [

    "small",
    "medium"

],