Tab-level Snapshots #1694
Labels
epic
A significant feature or piece of work that doesn't easily fit into a single release
scope:device
Agent feature for Gateways and PLCs
Description
Originally covered in #1509, but pulled out as its own epic
Currently a snapshot incorporates the entire flow configuration. When used with Devices, it means everything gets deployed to the device.
There is a use case (eg #1323) where a single project contains 'cloud' flows and 'device' flows all being edited together, but only the 'devices' flows should be deployed to devices.
This epic covers the ability to create snapshot that contains a subset of the full flow configuration. This would allow that subset to be deployed to devices without having to build in logic that selectively enables/disabled parts of the flows based on where it is running.
This does raise the question of: if a snapshot can be a subset of flows to push to a device, what is the reverse where a user wants only the inverse subset to be running in the cloud? They have to deploy the full set of flows to generate the device snapshot in the first place. Need to work through the UX on that side.
Possible approaches:
MVP could be an env var set on the tab. More interesting would be some custom UI added via plugin that makes it more intuitive and integrated
Generating a valid flow configuration that is a subset of the full flows needs to be done with some care. Global config nodes and subflows don't exist on tabs, but may be depended on.
The text was updated successfully, but these errors were encountered: