This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
feat(multiple-flows): Enable experimental support for multiple flows #1749
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
In order to support multiple flows in the UI, we need to switch our data model from a single flow to an array of flows.
In practical terms, there are at least two alternatives:
IIntegrationJSONStore
to support multiple flowsIIntegrationJSONStore
to another store that supports multiple flows and ports the existing functionality.Changes
In this pull request, the latter was chosen, and for that purpose, the
useFlowsStore
was created. It also includes an additional setting to switch between single and multiple flows during runtime, to avoid any potential big-bang effect while developing this feature.Notes
Not all the functionality existing in Single Flow Mode is ported to the Multiple Flows Mode. Subsequent pull requests will add more functionality gradually.
Limitations
Screenshots
New setting: Enable experimental support for multiple flows
Demo: Multiple flows
Related discussion: #1750
Relates to: #801
Related backend pull request: kaoto-archive/kaoto-backend#638