Nick O'Leary
5efbdf5d04
Revert removal of flow storage api
...
Whilst we know with the file system storage inplementation
getLibraryEntry is a suitable replacement for getFlow, this
may not be the case with other implementations.
The storage code uses the deprecated functions if they are
present - so the core code should call them and let the storage
layer decide what it calls.
2015-04-05 20:54:11 +01:00
Nick O'Leary
f459ff8ad0
Remove use of deprecated storage api
2015-04-04 19:25:07 +01:00
Nick O'Leary
b96ea36b70
Deprecate getAllFlows/getFlow/saveFlow storage functions
...
They were specialised versions of get/saveLibraryEntry that
complicated the interface.
This change removes them from localfilesystem, but the top
level module checks for their existence and uses them if
they are there - for backwards compatibility.
2015-04-03 23:05:56 +01:00
Nick O'Leary
e543cc0fed
Log settings file in use on start up
2015-04-03 23:05:15 +01:00
Nick O'Leary
fbfc5c8a2d
Add error codes to api responses
2015-03-31 22:29:42 +01:00
Nick O'Leary
b201828236
Remove 'loaded' property from external node info object
...
and fix everything that doing this broke
2015-03-30 21:49:20 +01:00
Nick O'Leary
2a8a885271
Standardise API error response format
2015-03-30 14:16:04 +01:00
Nick O'Leary
7adefd6ee0
Add access_token expiry
2015-03-30 14:14:32 +01:00
Nick O'Leary
f967a5ecdc
Fix auth on comms link and for anon user
...
The move to honour scope level of token broke the comms link
checking as well as the permissions checking for anon users.
2015-03-29 22:27:07 +01:00
Nick O'Leary
c8d6dc2531
Auth permission should honour the token scope
2015-03-29 21:59:48 +01:00
Nick O'Leary
cc1d080a5a
Remove add/removeNode by filename api
...
Only support add/remove by module name
2015-03-26 11:39:35 +00:00
Nick O'Leary
dd7f4f6752
Filter loaded property from /nodes endpoint
2015-03-26 11:38:51 +00:00
Nick O'Leary
9daeba02b5
Flow.registerType should indicate if type was missing or not
2015-03-26 11:37:24 +00:00
Nick O'Leary
2a57d0b6d0
auth/login should return empty object when insecure
2015-03-25 20:33:29 +00:00
Nick O'Leary
20bdea7ae0
Increase registry test coverage
2015-03-22 22:54:52 +00:00
Nick O'Leary
e19b8d35a9
Modules not properly removed from config.json
2015-03-22 21:48:12 +00:00
Nick O'Leary
81df74dfc8
Server not waiting for settings to load
2015-03-22 20:55:38 +00:00
Nick O'Leary
153fa7478f
Increase flows test coverage
2015-03-22 20:12:10 +00:00
Nick O'Leary
36f299c031
Improve core test coverage
2015-03-21 17:42:06 +00:00
Nick O'Leary
b61a250d58
Debug message formatting mangling brackets
2015-03-20 22:09:58 +00:00
dceejay
a9789697e7
add bcrypt as optional dependency to speed up Pi,
...
but not force compile on Windows.
Fix to close Issue #585
2015-03-19 11:36:48 +00:00
Nick O'Leary
be61cf6a88
Add node.error handling to core nodes
2015-03-16 13:58:01 +00:00
Nick O'Leary
46f2f752b0
Node on deleted tab not removed on partial deploy
2015-03-15 21:27:11 +00:00
Nick O'Leary
51e891ff88
Move sessionStorageModule into main storageModule
...
Fixes #586
- add get/saveSessions to main storage module
- handle storage modules without those functions
- store .session file in userDir
2015-03-13 23:37:59 +00:00
Nick O'Leary
731efe1c01
Add credential extract unit tests
2015-03-13 21:26:50 +00:00
Nick O'Leary
f77dd06e65
Partial deploy with missing type breaks flow diff
...
Another refactor of Flow lifecycle.
- diffFlow made a private static function
- applyConfig now diffConfig - which returns a diff object that
can be passed to .stop/.start to be properly applied
2015-03-13 17:54:58 +00:00
Nick O'Leary
af20f3df64
Partial deploy with missing node type breaks deploy
2015-03-13 13:15:20 +00:00
Nick O'Leary
0f3cc3196c
Log-in window incorrect
...
fixes #583
2015-03-09 20:02:13 +00:00
dceejay
acc0e0875b
few more tests for permissions and strategies
...
reset log flags at end of log test
2015-03-07 13:22:21 +00:00
dceejay
69f85bd688
boost api index, nodes index and nodes Node test coverage
2015-03-06 22:58:30 +00:00
dceejay
910d983b82
More tests for red, log, info and util.
2015-03-06 14:14:47 +00:00
dceejay
082ce798d8
slightly enhance test coverage for info and log and settings.
2015-03-06 10:18:33 +00:00
dceejay
234abd82a2
Move away from __defineGetter syntax, in red and server
...
Bump test coverage forwards a bit
2015-03-06 10:17:00 +00:00
Nick O'Leary
10b092a9a7
Ignore 'type' when detecting config nodes
2015-03-04 22:38:53 +00:00
Nick O'Leary
444a897410
Resort to NODE_RED_HOME if User HOME not found
...
Fixes #575
2015-03-04 21:47:38 +00:00
Nick O'Leary
34364f5627
Allow node to register multiple close handlers
...
Closes #573
2015-03-04 21:42:11 +00:00
dceejay
81dcfecb4e
Catch very early exit null pointer when ctrl-c hit during startup.
2015-03-02 17:32:22 +00:00
Nick O'Leary
00d0f8cfc7
Invoke catch node only when msg is provided
2015-02-26 22:40:54 +00:00
Nick O'Leary
c80a44933c
Add errorHandler tests
2015-02-26 22:40:54 +00:00
Nick O'Leary
5599b999ec
Add catch node
2015-02-26 22:40:53 +00:00
Nick O'Leary
393fc349b9
Fix saving for node-library content
2015-02-26 17:08:20 +00:00
Nick O'Leary
061c44f958
Move shebang to the correct red.js
2015-02-26 13:24:38 +00:00
Nick O'Leary
f5d8433341
Add node-red-pi command
2015-02-26 11:38:05 +00:00
Nick O'Leary
f78a71e8ed
Load flows file from userDir when appropriate
2015-02-26 11:30:20 +00:00
Nick O'Leary
ce1cd1ab9c
Change default data dir
...
Changes the default location for user data to $HOME/.node-red.
2015-02-25 14:25:01 +00:00
Nick O'Leary
d148a23ed6
Handle config nodes appearing out of order in flow
...
The editor ensures config nodes appear first in the flow file. The
code in the runtime and editor assumes this to be the case, so that
when a node is instantiated that requires a config node, it can assume
the config node already exists.
This change allows a config node to appear in the flow file after a
node that wants to use it. In both the editor and runtime, the code
now scans for config nodes and handles them first.
2015-02-24 23:04:55 +00:00
dceejay
049a5f1be6
revert small whitespace change to server start messages.
2015-02-24 22:22:16 +00:00
Nick O'Leary
f3880b7601
Fix credential pruning and start/stop log messages
2015-02-24 22:03:04 +00:00
dceejay
dc7701ad70
Add node.js version to startup log msgs for debug.
2015-02-23 19:30:29 +00:00
Nick O'Leary
5e2c51a741
Handle deleted tab when diffing flows
2015-02-22 22:59:26 +00:00