GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/404

    Fix Transformer (for when registered before entity managed)

    The transformer can be added before the entity is managed (e.g. if
    specified in the entity spec, as is often done via yaml). In that case,
    the entity’s management context is still a 
`NonDeploymentManagementContext`.
    The subscriptions are stored in a queue. When the entity is managed,
    the subscriptions are replayed.
    
    However, the queued subscriptions did not store the entity context.
    Therefore when the transformer received its events, it didn’t have
    an entity context so could not determine which entity it was talking
    about.
    
    This caused brooklyn-library’s 
`EnrichersSlightlySimplerYamlTest.testWithAppEnricher`
    to fail.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server 
fix-EnrichersSlightlySimplerYamlTest

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/404.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #404
    
----
commit e583d3ae6a757ba27e1d249cd1946dfdfaf5e441
Author: Aled Sage <[email protected]>
Date:   2016-11-04T16:31:16Z

    Fix Transformer (for when registered before entity managed)
    
    The transformer can be added before the entity is managed (e.g. if
    specified in the entity spec, as is often done via yaml). In that case,
    the entity’s management context is still a 
“NonDeploymentManagementContext”.
    The subscriptions are stored in a queue. When the entity is managed,
    the subscriptions are replayed.
    
    However, the queued subscriptions did not store the entity context.
    Therefore when the transformer received its events, it didn’t have
    an entity context so could not determine which entity it was talking
    about.
    
    This caused brooklyn-library’s 
EnrichersSlightlySimplerYamlTest.testWithAppEnricher
    to fail.

----


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

Reply via email to