brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorbett <>
Subject [GitHub] incubator-brooklyn pull request: GUI+REST improvements - yaml spec...
Date Tue, 09 Sep 2014 13:44:01 GMT
Github user sjcorbett commented on a diff in the pull request:
    --- Diff: usage/camp/src/main/java/io/brooklyn/camp/brooklyn/spi/creation/
    @@ -122,14 +123,13 @@ private ManagementContext getBrooklynManagementContext(CampPlatform
platform) {
    -        if (shouldUnwrap(template, app)) {
    +        if (autoUnwrapIfPossible && shouldUnwrap(template, app)) {
                 EntitySpec<? extends Application> oldApp = app;
                 app = (EntitySpec<? extends Application>) Iterables.getOnlyElement(
app.getChildren() );
                 // if promoted, apply the transformations done to the app
    -            // (normally this will be done by the resolveSpec call above)
    -            if (app.getDisplayName()==null) app.displayName(oldApp.getDisplayName());
    -            app.tags(oldApp.getTags());
    -            app.locations(oldApp.getLocations());
    +            // (transformations will be done by the resolveSpec call above, but we are
collapsing oldApp so transfer to app=newApp)
    +            AddChildrenEffector.collapseSpec(oldApp, app);
    --- End diff --
    Appreciate there is a 'where should this live long-term?' comment on `collapseSpec`, but
suggest resolving its location now - it's a bit surprising to be referring to `AddChildrenEffector`
from brooklyn-camp.

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