Awareness of Developer Mode within Node-RED #326
Labels
customer request
requested by customer
feature-request
New feature or request that needs to be turned into Epic/Story details
Milestone
Description
From https://discourse.nodered.org/t/feature-request-self-awareness-of-developer-mode/93147
I'd like my flows to be self-aware of whether it's in Developer Mode or not, specifically so the tests we run can log whether this is the case.
Is there a way to determine this? I'd like to think I could pull a boolean of this from an environmental variable or something, but I can't find anything on this online.
This comes from me wanting to have better awareness of which devices are running in developer mode, as accessed by our production database, not the flowfuse UI. In each 'test' that our NR flows perform, it would be nice to be able to have a flag for whether it is in developer mode or not. We could then do alerting on this and analytics on how many of our tests were done in developer mode and over what time frame, etc. The flowfuse UI only gives a current snapshot, not historical.
This could also allow me to make sure certain flows stop at a certain point if in developer mode, further guarding from running production processes in developer mode accidentally
@knolleary says: An Env Var would be handy, but this would require restarting NR each time it comes in/out of developer mode - something we don't do today, and would potentially be disruptive to existing workflows.
Requested By
The text was updated successfully, but these errors were encountered: