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

        Hide
        Tom Beerbower added a comment -

        Committed revision 1440213.

        Show
        Tom Beerbower added a comment - Committed revision 1440213.
        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 -

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development