Commit Graph

76 Commits (4789-cannot-set-an-header-to-empty-string)

Author SHA1 Message Date
Nick O'Leary 56fe2801eb
Merge branch 'master' into dev 2024-05-14 17:27:02 +01:00
Nick O'Leary 03648dc7e8
Update tests for changed function node low-level output 2024-05-09 17:25:47 +01:00
Nick O'Leary e9efe493f9
Remove only 2024-04-02 13:59:15 +01:00
Nick O'Leary 3bd782e62a
Fix change node handling of replacing with boolean
Fixes #4638
2024-04-02 13:57:19 +01:00
Håkon Løvdal 9091935d77 Update variable names 2023-09-25 18:53:11 +02:00
Håkon Løvdal 34e8d2b051 Add workaround for timers triggering too early in test 2023-09-24 18:16:59 +02:00
Håkon Løvdal 0c2ab13c48 Print all delta values in case of error, not just the last value
Which might not even be the one triggering the error condition.
2023-09-24 18:16:59 +02:00
Håkon Løvdal 9489953a8f Introduce timeout constant 2023-09-24 18:16:59 +02:00
Kilian Hertel f7b64b101e adding function timeout to settings file
adding function timeout to settings file
2023-08-04 14:20:49 +02:00
Nick O'Leary 1c5fdb6ab6
Evaluate all env vars as part of async flow start 2023-06-23 02:11:57 +01:00
Nick O'Leary aa0225f59f
Apply suggestions from code review 2023-06-21 14:27:32 +01:00
Nick O'Leary 0697c26dd1
Merge branch 'dev' into adding-timeout-to-functio-node 2023-05-25 17:33:41 +01:00
Kilian Hertel 2253417459 adding timeout attribute to function node
- [x] New feature (non-breaking change which adds functionality)

Discussion here:
https://discourse.nodered.org/t/function-node-doesnt-have-timeout-feature/78483

## Proposed changes

Adding a timeout attribute to the function node, so an endless funciton doesnt break the node red server.

## Checklist

- [x] I have read the [contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
- [x] For non-bugfix PRs, I have discussed this change on the forum/slack team.
- [x] I have run `grunt` to verify the unit tests pass
- [x] I have added suitable unit tests to cover the new/changed functionality
2023-05-22 10:16:37 +02:00
Nick O'Leary 68bb38b8d7
Merge branch 'master' into dev 2023-02-02 10:40:33 +00:00
Dave Conway-Jones 4cc18c25fe
Add drop mode to range node
and include tests
2022-10-29 17:34:29 +01:00
Dave Conway-Jones 3e4c45ac6a
Fix change node overwriting msg with itself
and add test
to close #3891
2022-09-22 20:22:11 +01:00
Dave Conway-Jones fc657ecc71
let delay node handle both flush then reset
and add tests
2022-09-22 10:51:48 +01:00
cow0w 01d9affe61 Add support for evalulating {{env.<var>}} within a template node 2022-06-17 22:18:14 +03:00
Dave Conway-Jones 63ebadc526
add check for NaN in is of type number to be false
and add test
to fix issue #3408
2022-02-09 12:03:38 +00:00
Dave Conway-Jones 52e4e0e569
Fix for narrrowbandEq mode start condition failure
And add test
As discussed https://discourse.nodered.org/t/the-filter-node-or-the-old-rbe-node/56371
2022-01-11 13:56:44 +00:00
Nick O'Leary 1c18641699
Delay node: add option to send intermediate messages on separate output 2021-10-04 13:00:24 +01:00
Nick O'Leary 81a278dd8c
Merge pull request #3156 from node-red/change-clone
Add option to deep-clone properties in Change node
2021-10-04 10:54:52 +01:00
Nick O'Leary 7fffc1a36d
Merge pull request #3069 from node-red/delay-push-to-front
Add push to front of rate limit queue.
2021-09-30 10:44:14 +01:00
Nick O'Leary aa5fad6628
Add deep copy option to Change node 'set' action 2021-09-30 09:49:51 +01:00
Hiroyasu Nishiyama 6aecc3915c add support of environtment variable for tab & group 2021-08-19 21:15:13 +09:00
Dave Conway-Jones 4d26b806dd
delay - add test for push toFront and flush=1 2021-07-16 11:38:06 +01:00
Dave Conway-Jones a2b95dbb39
delay node - change lifo property to toFront
add info to sidebar
add tests
2021-07-16 11:31:21 +01:00
Nick O'Leary be9f9e7b0c
Change default functionExternalModules test 2021-07-15 10:13:21 +01:00
Dave Conway-Jones ea11aa7a0d
add some part flush tests 2021-07-08 13:51:37 +01:00
Dave Conway-Jones 41c8ca8ab4
Delay node updates to added flush control for queuing 2021-07-08 12:13:23 +01:00
Nick O'Leary b2f5a259ab
Fix exec node test for gh-actions
The node adds `shell` to `execOpts` if `/bin/bash` exists. Clearly it
has not existed in Travis or running locally - but it does exist
on gh-action runner, so the test was failing.
2021-07-02 10:15:44 +01:00
Nick O'Leary c8a0d3c10d
Add error handling to exec test 2021-07-02 10:09:00 +01:00
Nathanaël Lécaudé 7ae48d7390 exec: solidify tests 2021-06-16 17:38:34 -04:00
Nathanaël Lécaudé 2f0631809d exec node: modify test 2021-06-16 17:09:21 -04:00
Nick O'Leary 7c02e4d66a
Merge branch 'master' into dev 2021-06-02 15:40:56 +01:00
Hiroyasu Nishiyama bb1b3727cb add test case 2021-05-23 10:42:28 +09:00
Nick O'Leary 71ba73b38f
Merge branch 'master' into dev 2021-05-04 11:19:05 +01:00
Hiroyasu Nishiyama 70433f3d05 fix grunt fail on exec node test 2021-04-28 21:40:17 +09:00
Kazuhito Yokoi a20049c82a
Delay node enhancements (#2294)
* Remove unused messages in message catalog

* Support msg.rate in delay node

* Support nodeMessageBufferMaxLength in delay node

* Add logging function for queue size

* Support msg.nodeMessageBufferMaxLength

* Revert "Support msg.nodeMessageBufferMaxLength"

This reverts commit cc72f892f7.

* Improve logging function for delay node

* Add support for Messaging API to delay node

* Add documentation about msg.rate in delay node

* Add test cases for msg.rate in delay node

Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
2021-04-22 09:01:28 +01:00
Dave Conway-Jones 73063df11b
Pull in RBE node and push out tail 2021-04-19 13:09:13 +01:00
Nick O'Leary 877c463494
Update to latest sinon 2021-04-09 11:22:57 +01:00
Kristian Heljas 7b8ed487e9
Function node: add `node.outputCount` property to sandbox (#2918)
* Function node: add `node.outputs` property to sandbox

https://discourse.nodered.org/t/expose-configured-output-count-to-function-node-i-can-pr/43848

* style: indetation for function node sanbox code

I guess this was unintentionally unindented in d51aefa156 (diff-24cd715c3b7405ea194bfdc0dc2a350ceb2f5d18696b8163c3e40105b981a666)

* Function node: tests for accessing node properties

consistently tests that `node.id`, `node.name` and `node.outputs`
are available in `init()`, `func()` and `finalize()` methods.

* Function node: rename `node.outputs` to `node.outputCount`

https://discourse.nodered.org/t/expose-configured-output-count-to-function-node-i-can-pr/43848/9?u=kristian
2021-04-08 14:52:02 +01:00
Nick O'Leary f0f2eefb59
Merge branch 'pr_2908' into dev 2021-03-31 23:50:30 +01:00
Nick O'Leary bdb548ffdc
Exec node: remove addpayValue and reuse addpay to track appending property 2021-03-31 23:50:00 +01:00
Nick O'Leary 8da00c0872
Fix Switch node handling of hasKey rule when property is undefined 2021-03-30 21:37:39 +01:00
Kazuhito Yokoi cb72d5100e Remove type for typedInput in exec node 2021-03-22 20:24:12 +09:00
Kazuhito Yokoi f103533852 Support typedInput in msg.payload field of exec node 2021-03-22 16:19:55 +09:00
Nick O'Leary 0566a2d9b1
Fix function node tests use of RED.settings 2021-03-02 00:12:41 +00:00
Nick O'Leary c9c5f7f088
Fix functionExternalModules tests 2021-03-01 21:34:37 +00:00
Nick O'Leary 785c349adc
Prevent function module overwriting built-in sandbox properties 2021-02-16 13:58:59 +00:00