Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/967#discussion_r194661659
  
    --- Diff: 
rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/ApplicationResource.java
 ---
    @@ -106,7 +112,16 @@
         @Context
         private UriInfo uriInfo;
     
    -    private EntityDetail fromEntity(Entity entity) {
    +    private EntitySummary fromEntity(Entity entity, boolean includeTags, 
int detailDepth, List<String> extraSensorGlobs, List<String> extraConfigGlobs) {
    +        if (detailDepth==0) {
    +            return new EntitySummary(
    +                entity.getId(), 
    +                entity.getDisplayName(),
    +                entity.getEntityType().getName(),
    +                entity.getCatalogItemId(),
    +                MutableMap.of("self", EntityTransformer.entityUri(entity, 
ui.getBaseUriBuilder())) );
    --- End diff --
    
    good call, agree


---

Reply via email to