When I import a flow with a Configuration node that already exists, a new configuration is added to the Configuration Nodes tab. It ends with '!!', which seems to be expected behavior based on my code review.
However, the '!!' suffix remains on the configuration node even after clicking the Deploy button. It's only removed after refreshing the page.
Should the '!!' be automatically removed when the configuration is deployed, or is this the expected behavior? I want to confirm this before creating an issue on GitHub.
This are the images during import and configuration window
Sure, the test is simple i attached a flow that can be used as flow 1 and flow 2 using mqtt in node (since it's one of the out of the box nodes that have configuration section)
Import the flow which would add a configuration node and mqtt with a debug node very simple.
Deploy and refresh the page
Import the Flow one more time
Click View nodes
check on the configuration node (no check on replace)
Click on Import selected
Check the configuration nodes tab
you should see 2 configurations (1 from first import and 1 from second)
the second one would have '!!' in the end (which is expected from my code review)
Click Deploy, the '!!' will still be there but will be removed when refresh
I did make a start on adding proper change icons to the config node sidebar, but it opened a can of worms I decided to step away from this close to 4.0....
Ultimately, the nodes should have the same blue dot as we use in the workspace. The !! change was a quick hack to do something - but there is no hint to the user what it means and is entirely inconsistent.
Your fix for the immediate issue is welcome for 4.0. After 4.0 we can look at adding a proper change indicator to the nodes.
@GogoVega yes. I mentioned in my post about the can of worms I opened. I don't know if that translates - but basically, yes, there's a bunch of internal state in the editor that we track for flow nodes that we don't track for config nodes which is needed to properly manage the change/error icons for the config nodes. I started working through it, but put it on pause as it needed more than I was expecting and that I had time for.