[ 
https://issues.apache.org/jira/browse/AMBARI-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565645#comment-13565645
 ] 

Tom Beerbower commented on AMBARI-1270:
---------------------------------------

Category count is somewhat more complicated and requires something beyond just 
a simple predicate object.  An isEmpty predicate is all that is required to 
meet the above objective.
                
>  Add predicate objects for checking empty resource category & category count
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-1270
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1270
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>         Attachments: AMBARI-1270.patch
>
>
> We need to be able to check through the API to see if a property category 
> contains any properties.
> For example, if we want to check to see if configurations have been 
> overridden then we can look at the ServiceInfo/desired_configs of a component 
> resource. If desired_configs is empty then there are no config overrides.
> Through the API, we can examine the ServiceInfo/desired_configs property but 
> we have no way to write a predicate that would allow us to query for 
> components that contain config overrides.
> In order to allow for such a query, we need the underlying predicate objects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to