Github user tbouron commented on a diff in the pull request:
https://github.com/apache/brooklyn-ui/pull/112#discussion_r235930249
--- Diff:
ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
---
@@ -512,6 +514,16 @@ function BlueprintService($log, $q, $sce, paletteApi,
iconGenerator, dslService)
entity.miscData.set('config', allConfig);
}
+ function addUnlistedParameterDefinitions(entity) {
+ let allParams = entity.miscData.get('parameters') || [];
+ entity.parameters.forEach((param) => {
+ if (!allParams.some((e) => e.name === param.name)) {
+ allParams.push(param);
+ }
+ });
+ entity.miscData.set('parameters', allParams);
+ }
--- End diff --
`addUnlistedConfigKeyDefinition` has the specific function to create the
definition of a config key that we add. We don't do that for parameters hence
we should remove this method **before merging it**
---