Commit Graph

53 Commits

Author SHA1 Message Date
Hiroyasu Nishiyama 6a41cbebc9 evaluate env var after path initialization 2022-02-15 14:23:01 +09:00
Hiroyasu Nishiyama c948ff88a5 add support of NR_NODE_PATH 2022-01-26 21:24:48 +09:00
Nick O'Leary 87c89586a5
Merge pull request #3356 from node-red-hitachi/node-prop-env-var
Add support for accessing node id & name as environment variable
2022-01-26 11:11:02 +00:00
Hiroyasu Nishiyama ba304c9651 add NR_ prefix to special environment variables 2022-01-26 09:25:30 +09:00
Nick O'Leary 703c5adba7
Add _path property to nodes and expose as node.path in Function node 2022-01-25 21:32:28 +00:00
Hiroyasu Nishiyama 8b23d341b4 add support for env var access of GROUP_ID & GROUP_NAME 2022-01-25 21:04:43 +09:00
Hiroyasu Nishiyama 289815e128 add support of FLOW_ID & FLOW_NAME 2022-01-25 20:46:01 +09:00
Hiroyasu Nishiyama 75bcd9e8d5 add support for accessing node id & name as env var 2022-01-14 23:40:12 +09:00
Nick O'Leary ea43729063
Add _module to Node object to provide module info 2022-01-12 11:07:25 +00:00
Hiroyasu Nishiyama c331da7323 fix env var access using $env for groups 2021-11-27 19:29:57 +09:00
Hiroyasu Nishiyama 67404a327d merge getFlowSetting to getSetting 2021-09-01 22:26:31 +09:00
Hiroyasu Nishiyama d78e5932f9 update according to PR comments 2021-08-30 08:00:58 +09:00
Hiroyasu Nishiyama 6aecc3915c add support of environtment variable for tab & group 2021-08-19 21:15:13 +09:00
Nick O'Leary ce905ba2c4
Merge branch 'master' into dev 2021-06-08 11:44:31 +01:00
Nick O'Leary 7651941722
Do not assign z property to tab node when updating flow
Fixes #3010
2021-06-08 11:35:43 +01:00
Nick O'Leary 3541b4b968
Merge pull request #3004 from node-red-hitachi/fix-get-subflow-info
Fix allow Flow.getNode to return subflowInstance nodes
2021-06-07 18:16:01 +01:00
Kazuhiro Ito a7b8adb0e1 Fix allow Flow.getNode to return subflowInstance nodes 2021-06-04 15:08:03 +09:00
Nick O'Leary 7c02e4d66a
Merge branch 'master' into dev 2021-06-02 15:40:56 +01:00
Nick O'Leary c0e4cf2358
Fix handling of boolean subflow module properties
Fixes #3000
2021-06-02 14:48:54 +01:00
Nick O'Leary 71ba73b38f
Merge branch 'master' into dev 2021-05-04 11:19:05 +01:00
Nick O'Leary 7df1a03b4b
Handle subflow modules that contain subflows 2021-04-28 21:50:00 +01:00
Nick O'Leary ed351eee54
Move hooks to util package 2021-04-15 15:12:30 +01:00
Nick O'Leary 70632706f9
Allow Flow.getNode to return subflowInstance nodes
Related to #2898
2021-03-31 23:14:26 +01:00
Nick O'Leary f8a7835341
Fix credential lookup for nested subflows
Fixes #2910
2021-03-25 22:27:49 +00:00
Nick O'Leary 99a9e3a91b
Fix handling encrypted creds on /flows api 2021-03-06 20:27:51 +00:00
Nick O'Leary 101378c625
Properly handle credentials passed to /flows api 2021-03-06 20:09:03 +00:00
Nick O'Leary 3d23d1de4f
Merge pull request #2873 from node-red/function-modules
Function node external modules
2021-03-01 21:35:31 +00:00
Nick O'Leary 0dc4440a99
Merge branch 'master' into dev 2021-02-25 17:56:01 +00:00
Nick O'Leary afb17af571
Fix global leak in lib/flows/index.js 2021-02-19 21:47:02 +00:00
Nick O'Leary 5012568464
Stop config nodes after flow nodes
Fixes #2876
2021-02-19 20:44:01 +00:00
Hiroyasu Nishiyama 12c7238c72 revert diffConfigs args 2021-02-15 22:05:42 +09:00
Hiroyasu Nishiyama b66468c4ea restart node only if node's group changes 2021-02-14 10:06:46 +09:00
Nick O'Leary 9c09ee3b71
Rework Function node module integration 2021-02-12 18:14:13 +00:00
Hiroyasu Nishiyama 1be337fbc5 make nodes with only group change not deployed by nodes deploy mode 2021-02-13 00:23:30 +09:00
Dave Conway-Jones e86f6a841a
fix numeric status not displaying by ensuring it's a string 2021-02-05 11:36:26 +00:00
Nick O'Leary 814fc8bc69
Add SubflowModule class for running subflow modules 2021-01-07 11:10:58 +00:00
Nick O'Leary 0c9fd25d3e
Nodes log via parent flow to allow flow-info to be added 2021-01-07 11:10:34 +00:00
Nick O'Leary 9a660f3fe9
Support npm subflow modules 2021-01-07 11:10:33 +00:00
Nick O'Leary 7913b3cbc2
Merge branch 'master' into dev 2021-01-07 10:17:50 +00:00
Nick O'Leary 496b5a092f
Ensure subflow credential objects exist
Fixes #2783
2020-12-15 17:20:22 +00:00
johnwang71 be828af3e2 Fix bug: Crash & quit while handling exception with undefine msg.error. i.e. flow with 3 nodes, http-in, delay 5-10s, http-out; client with 3s timeout request the flow; TypeError: Cannot read property 'hasOwnProperty' of undefined\r at Flow.handleError (/usr/src/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:474:27) 2020-12-14 18:18:50 +08:00
Nick O'Leary 6fb96fa3c1
Move exec and events components to util module
The exec and events components are common components that
are used by both runtime and registry. It makes sense to
move them into the util package.

This also adds some docs to the registry module
2020-12-07 11:49:01 +00:00
Nick O'Leary f19ec5d9b6
Clear retained status of deleted nodes 2020-11-17 13:29:13 +00:00
Nick O'Leary 6ea978d83d
Prevent needless retention of node status messages 2020-11-16 21:05:13 +00:00
Nick O'Leary ff0be73b1f
Migrate to nyc instead of istanbul for code coverage 2020-10-19 21:10:34 +01:00
Nick O'Leary 12d56b8b03
Fix api call to reload flows
Fixes #2726
2020-10-19 12:56:40 +01:00
Nick O'Leary 517e376582
Restore support for runtimeSyncDelivery flag 2020-09-29 17:39:29 +01:00
Nick O'Leary ea45dde63a
Remove when.js from runtime/lib/flow/index 2020-09-29 17:20:01 +01:00
Nick O'Leary 22a301b55e
Add flows:* events and deprecate nodes-* events 2020-09-29 16:29:10 +01:00
Nick O'Leary 08148a07b2
Update Node/Flow to trigger msg routing hooks 2020-09-29 12:19:27 +01:00