Nick O'Leary
84771f5864
Flows/subflows must preinitialise their context objects
...
Fixes #2513
If a node inside a subflow accessed its context object in its
constructor, the subflow-instance flow context would not yet
have been created. This would cause a place holder context
to get created on its behalf, but that place holder doesn't
have its parent set properly. This then breaks the usage
of $parent inside such a subflow.
This fix has changed it so flows (and subflows) create their
flow context as part of their initial creation. That ensures
it exists when individual nodes from the subflow are created,
allowing them to safely access their context.
This has also fixed a related issue where any attempt to use
$parent to access beyond the root parent would seemingly hang
as the callback was never being called. This would cause
messages to get stuck in flows. The fix ensures the callback
is used in the root context objects and undefined is returned.
2020-03-27 23:47:12 +00:00
Nick O'Leary
4304d44851
Ensure complete node scope is remapped in subflows
...
Fixes #2514
2020-03-27 09:44:15 +00:00
Nick O'Leary
1018c0e8a5
Handle false values in $env() properly
...
Fixes 2517
2020-03-27 09:05:58 +00:00
Nick O'Leary
9b6e798eb6
Merge pull request #2502 from kazuhitoyokoi/master-updatemsgcatalog4websocketnode
...
Add Japanese translation to node property of websocket node
2020-03-24 15:14:17 +00:00
Dave Conway-Jones
b0c3c78899
MQTT out - Add warning if topic contains + or #
...
still sends msg as it causes connection to bounce which may be useful and dropping it would be a change in behaviour.
2020-03-18 15:47:03 +00:00
Kazuhito Yokoi
282f00e091
Add Japanese translation for join node ( #2508 )
2020-03-17 21:36:23 +00:00
Dave Conway-Jones
85a1f59a93
Fix join to not crash on appending invalid tyoes to buffer.
...
Add extra info to clarify use of complete
to Close #2505
2020-03-15 16:43:32 +00:00
Dave Conway-Jones
43258ee816
Trigger node - reset default timeout value when switcing away from wait for reset
2020-03-15 15:11:19 +00:00
Nick O'Leary
b8e610e1b6
Merge pull request #2500 from tilleul/patch-3
...
Support for context stores using JSONata and evaluateNodeProperty()
2020-03-13 13:21:26 +00:00
Kazuhito Yokoi
421b5846f2
Add page objects for UI testing ( #2501 )
...
* Update page object of change node
* Support multiple node outputs in UI testing
* Add page object of switch node
* Add page objects of trigger and exec nodes
* Remove unnecessary code
* Update page object of trigger node to select time unit
* Add page objects of websocket nodes
* Support boolean as value in selectWithWait()
* Update page object of split node
* Merge page objects of mqtt nodes to make them same as original mqtt node file path
2020-03-13 13:20:16 +00:00
Nick O'Leary
6a30f2cbc8
Merge pull request #2503 from kazuhitoyokoi/master-jpn4filenode
...
Remove old leagcy wording from file node info (Japanese and Chinese)
2020-03-13 13:19:53 +00:00
Nick O'Leary
a8b1e91843
Merge pull request #2504 from bonanitech/patch-3
...
Fix paletteCategories order
2020-03-13 13:11:41 +00:00
Nick O'Leary
20f97d0d13
Add better handling of host-key-verify error with projects
2020-03-13 13:09:47 +00:00
Mauricio Bonani
4c78f06c2b
Fix paletteCategories order
2020-03-13 08:44:56 -04:00
Kazuhito Yokoi
c700d5c922
Remove old leagcy wording from file node info (Chinese)
2020-03-13 21:38:23 +09:00
Kazuhito Yokoi
a9508a2c04
Remove old leagcy wording from file node info (Japanese)
2020-03-13 21:31:16 +09:00
Dave Conway-Jones
09d55a0cbd
remove unneeded title line from file info text
2020-03-13 11:33:37 +00:00
Dave Conway-Jones
b165129388
Remove old leagcy wording from file node info to stop confusing users.
2020-03-13 11:28:19 +00:00
Dave Conway-Jones
9ba9998bd6
make exec node logging consistent with itself. (only be verbose when in verbose mode)
2020-03-13 11:26:49 +00:00
Kazuhito Yokoi
72126730ef
Remove unnecessary code for node property of websocket node in the German language
2020-03-13 16:32:00 +09:00
Kazuhito Yokoi
fd2213232c
Update message catalogs for other languages
2020-03-13 16:29:16 +09:00
Kazuhito Yokoi
369c5754f2
Add Japanese translation to node property of websocket node
2020-03-13 16:26:48 +09:00
Nick O'Leary
1c63d7ff31
Merge pull request #2489 from kazuhitoyokoi/master-fixuitest
...
Fix XPath in page objects for UI tests
2020-03-09 11:17:49 +00:00
tilleul
b78ef006ec
Support for context stores using JSONata and evaluateNodeProperty()
...
The function prepareJSONataExpression() does not take context store into account.
This causes problems when using typedInput fields and getting the value of a property based on its type using evaluateNodeProperty().
2020-03-09 11:22:20 +01:00
Dave Conway-Jones
5090b01b8e
Ensure join node handles missing buffer joiner when not in string mode
...
and add tests
to close #2491
2020-03-02 19:50:39 +00:00
Kazuhito Yokoi
491812fac5
Fix XPath in UI tests
2020-03-02 05:07:48 +00:00
Nick O'Leary
32aa4c41ce
Bump for 1.0.4
2020-02-27 14:37:25 +00:00
Nick O'Leary
2a6bedbd8d
update changelog
2020-02-27 11:38:44 +00:00
Nick O'Leary
cc5fdd9844
Avoid adding extra divs to edit form to avoid size miscalculation
2020-02-26 13:17:03 +00:00
Nick O'Leary
d09ee6611f
Update dependencies
2020-02-26 11:37:37 +00:00
Nick O'Leary
43970b404e
Update github templates
2020-02-25 23:06:14 +00:00
Dave Conway-Jones
1868289b71
Better fix for trigegr 2nd message in last payload mode
...
Now works correctly in multiple topics mode.
And update tests
2020-02-25 22:15:53 +00:00
Nick O'Leary
3d6170be5e
Merge pull request #2475 from kazuhitoyokoi/master-adduitest
...
Add UI test case for error handling
2020-02-25 14:10:38 +00:00
Kazuhito Yokoi
00477fd67a
Add UI test case for error handling
2020-02-25 19:56:48 +09:00
Kazuhito Yokoi
21c57f968a
Add page object code for nodes
2020-02-25 19:02:46 +09:00
Kazuhito Yokoi
f7d2314d64
Add page object code for split node and remove duplicated code
2020-02-25 19:01:17 +09:00
Kazuhito Yokoi
5ecf8c83db
Support to input JSON path in debug node property
2020-02-25 18:46:02 +09:00
Nick O'Leary
608834eafb
Ensure IPv6 broker names are wrapped in brackets
...
Fixes #2462
2020-02-24 21:52:07 +00:00
Dave Conway-Jones
1fd4b2b9fc
join node - check existance before clearing timeout
2020-02-24 21:31:01 +00:00
Dave Conway-Jones
01a143cd5a
Emsure trigger complete 2nd msg when set to send latest
...
and add test
to close #2474
2020-02-24 21:28:40 +00:00
Dave Conway-Jones
6321b21a1a
Merge branch 'master' of https://github.com/node-red/node-red
2020-02-24 21:19:54 +00:00
Nick O'Leary
22de8855c1
Handle httpAdminRoot missing ending slash with login strategy
...
Fixes #2473
2020-02-24 21:08:29 +00:00
Nick O'Leary
1830478ec3
Merge pull request #2461 from node-red/set-flow-with-creds
...
Allow credentials to be provided as part of /flows api
2020-02-24 16:22:57 +00:00
Nick O'Leary
6d98b93135
Merge pull request #2464 from kazuhitoyokoi/master-adduitests
...
Add UI test cases for data formats
2020-02-24 16:20:13 +00:00
Nick O'Leary
9d567d61fe
Merge pull request #2470 from mknj/master
...
bump https-proxy-agent
2020-02-24 16:19:17 +00:00
Nick O'Leary
79feb691bd
Add regex awareness to jsonata formatter
2020-02-24 16:08:58 +00:00
Nick O'Leary
e16fe1e6a5
Add better regex highlighting in jsonata edit mode
...
Fixes #2465
2020-02-24 13:27:42 +00:00
Nick O'Leary
04d3981921
Bump to jsonata 1.8.1
2020-02-24 11:42:56 +00:00
Nick O'Leary
40c3099e4e
Avoid adding extra newlines when formating jsonata
...
Fixes #2472
2020-02-24 11:41:27 +00:00
Nick O'Leary
3f86fd7176
Upgrade to latest marked and dompurify libs
2020-02-24 11:22:47 +00:00