Ambari
  1. Ambari
  2. AMBARI-1270

Add predicate objects for checking empty resource category & category count

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

      1. AMBARI-1270.patch
        21 kB
        Tom Beerbower

        Activity

        Tom Beerbower created issue -
        Hide
        Tom Beerbower added a comment -

        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.

        Show
        Tom Beerbower added a comment - 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.
        Tom Beerbower made changes -
        Field Original Value New Value
        Attachment AMBARI-1270.patch [ 12567024 ]
        Tom Beerbower made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Nate Cole added a comment -

        +1 on the patch

        Show
        Nate Cole added a comment - +1 on the patch
        Hide
        Tom Beerbower added a comment -

        Committed revision 1440213.

        Show
        Tom Beerbower added a comment - Committed revision 1440213.
        Tom Beerbower made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1d 13h 19m 1 Tom Beerbower 29/Jan/13 18:53
        Patch Available Patch Available Resolved Resolved
        4h 18m 1 Tom Beerbower 29/Jan/13 23:12

          People

          • Assignee:
            Tom Beerbower
            Reporter:
            Tom Beerbower
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development