FlowFuse / flowfuse

Connect, collect, transform, visualise, and interact with your Industrial Data in a single platform. Use FlowFuse to manage, scale and secure your Node-RED solutions.
https://flowfuse.com
Other
286 stars 64 forks source link

Enable / Disable persistent file nodes & context in my FlowForge platform projects #1472

Open Steve-Mcl opened 1 year ago

Steve-Mcl commented 1 year ago

Epic

212

Description

As a: Owner / Admin

I want to: Enable / Disable file nodes in my FlowForge platform

So that:

As discussed here: https://github.com/flowforge/flowforge/pull/1465#discussion_r1053212248

Current situation:

File storage can be enabled/disabled globally for a FlowForge Instance by adding/removing the fileStore block in the flowforge.yml If enabled then disabling the core file nodes will enable the FlowForge File Nodes There is currently no way to have projects with a mix of some with node file nodes at all and some with the FlowForge Nodes.

Which customers would this be availble to

None

Acceptance Criteria

knolleary commented 1 year ago

Focussing on the file nodes:

  1. You get the Core file nodes by default (ie, nothing adding to the Project Template)
  2. You get the FF File nodes if:
    • fileStore configured in yml
    • 10-file.js added to the 'Exclude nodes by filename' in Project Template

If an Admin wanted to disable the File nodes entirely - both core and our custom ones - but still have fileStore configured for Persistent Context, then I believe they should be able to:

  1. Add 10-file.js to 'Exclude nodes by filename' in Project Template
  2. Add @flowforge/nr-file-nodes to the 'Prevent Install of External nodes' section of the Project Template

That should be sufficient but needs to be verified.

image