From 54b9c2d9df91f72dd5aa499994ad0dd8728ff550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Mon, 15 May 2017 10:21:48 -0400 Subject: [PATCH] Updated Design: external file for function and templates nodes (markdown) --- Design:-external-file-for-function-and-templates-nodes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Design:-external-file-for-function-and-templates-nodes.md b/Design:-external-file-for-function-and-templates-nodes.md index a4050e0..08256c8 100644 --- a/Design:-external-file-for-function-and-templates-nodes.md +++ b/Design:-external-file-for-function-and-templates-nodes.md @@ -4,6 +4,8 @@ Currently, the 3 code centric nodes (`function`, `template` and `ui-template`) l Doing diffs and merging flow files with a large number of functions or templates is a manual process now. This could be improved greatly if there was an option, in addition to the current mechanism, to load the code content of these nodes from a file on the user’s file system. +We know some third party nodes do this but we think this should be integrated in the code. The main downside of using third party nodes is they need to be kept up to date with the core to reflect changes in the function or template nodes which is not always the case. Having this in the core would ensure that everything it up to date. + ## Proposition We propose the addition of a checkbox named `Load from external file` just above the code field. Checking this checkbox would make a field appear where the user can type the path to a file, similar to the `file-in` node. Given the fact some cloud environment are not compatible with a traditional file system, a setting named `allowExternalFiles` could be added in `settings.js` to disable this feature entirely.