brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikezaccardo <>
Subject [GitHub] incubator-brooklyn pull request: clean up how locations are render...
Date Tue, 23 Jun 2015 15:31:25 GMT
Github user mikezaccardo commented on a diff in the pull request:
    --- Diff: usage/rest-server/src/main/java/brooklyn/rest/resources/
    @@ -152,6 +171,15 @@ public Response create(LocationSpec locationSpec) {
         public void delete(String locationId) {
    -        brooklyn().getCatalog().deleteCatalogItem(locationId);
    +        // TODO make all locations be part of the catalog, then flip the JS GUI to use
catalog api
    +        if (deleteAllVersions(locationId)>0) return;
    --- End diff --
    Personal preference: make the condition == 0 then throw, no return necessary.

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 or file a JIRA ticket
with INFRA.

View raw message