brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbouron <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Adds support for interfaces tag o...
Date Thu, 19 Nov 2015 09:23:26 GMT
Github user tbouron commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1039#discussion_r45317045
  
    --- Diff: usage/rest-api/src/main/java/org/apache/brooklyn/rest/domain/CatalogItemSummary.java
---
    @@ -121,6 +132,20 @@ public String getIconUrl() {
             return iconUrl;
         }
     
    +    public Collection<Object> getTags() {
    +        List<Object> result = new ArrayList<Object>();
    +        for (Object t : tags) {
    +            // TODO if we had access to a mapper we could use it to give better json
    --- End diff --
    
    This method was taken [from there](https://github.com/apache/incubator-brooklyn/blob/master/usage/rest-api/src/main/java/org/apache/brooklyn/rest/domain/TaskSummary.java#L137-L144).
Although, simply returning the tags seems to work as expected. I'll change it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message