1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated Design: Persistable Context (markdown)

Nick O'Leary 2018-03-21 10:09:59 +00:00
parent ac58258daa
commit 272a42723e

@ -123,6 +123,7 @@ The value set in the config is passed to the plugin. These items are defined by
3. if neither the identifier nor a `default` identifier are not defined, throw an exception. 3. if neither the identifier nor a `default` identifier are not defined, throw an exception.
> DCJ: Yes not running but ideally still able to edit/correct the error if possible. > DCJ: Yes not running but ideally still able to edit/correct the error if possible.
>> KN: If a user does not specify `default` identifier, it means they declare that they want to receive an error instead of doing something. So I think that just throwing an exception with an appropriate error message would be fine. >> KN: If a user does not specify `default` identifier, it means they declare that they want to receive an error instead of doing something. So I think that just throwing an exception with an appropriate error message would be fine.
>>> NOL: To be clear - this only applies if they have `contextStorage` in their settings, but no `default` config within it?
4. if the entire contextStorage section is missing in settings.js, use `memory` module (same as the current context). 4. if the entire contextStorage section is missing in settings.js, use `memory` module (same as the current context).
## Executing plugin specific function ## Executing plugin specific function