You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2018/11/30 15:39:57 UTC

[2/3] brooklyn-ui git commit: add comments on setting unlisted parameters

add comments on setting unlisted parameters


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/cb001728
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/cb001728
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/cb001728

Branch: refs/heads/master
Commit: cb00172817dab2935f81a4480e84e528386407bb
Parents: 88b3bf4
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Fri Nov 30 15:37:39 2018 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Fri Nov 30 15:37:39 2018 +0000

----------------------------------------------------------------------
 .../app/components/providers/blueprint-service.provider.js         | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/cb001728/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
----------------------------------------------------------------------
diff --git a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
index 7cc63b0..7b626e8 100644
--- a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
+++ b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
@@ -527,6 +527,7 @@ function BlueprintService($log, $q, $sce, paletteApi, iconGenerator, dslService)
     }
 
     function addUnlistedConfigKeysDefinitions(entity) {
+        // copy config key definitions set on this entity into the miscData aggregated view
         let allConfig = entity.miscData.get('config') || [];
         entity.config.forEach((value, key) => {
             if (!allConfig.some((e) => e.name === key)) {
@@ -537,6 +538,7 @@ function BlueprintService($log, $q, $sce, paletteApi, iconGenerator, dslService)
     }
 
     function addUnlistedParameterDefinitions(entity) {
+        // copy parameter definitions set on this entity into the miscData aggregated view
         let allParams = entity.miscData.get('parameters') || [];
         entity.parameters.forEach((param) => {
             if (!allParams.some((e) => e.name === param.name)) {