Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awareness of Developer Mode within Node-RED #326

Open
knolleary opened this issue Nov 14, 2024 · 2 comments
Open

Awareness of Developer Mode within Node-RED #326

knolleary opened this issue Nov 14, 2024 · 2 comments
Labels
customer request requested by customer feature-request New feature or request that needs to be turned into Epic/Story details
Milestone

Comments

@knolleary
Copy link
Member

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

@knolleary knolleary added needs-triage Needs looking at to decide what to do feature-request New feature or request that needs to be turned into Epic/Story details labels Nov 14, 2024
@knolleary knolleary added the customer request requested by customer label Nov 14, 2024
@joepavitt joepavitt moved this to In Design in 🛠 Development Nov 19, 2024
@joepavitt
Copy link
Contributor

Needs some thinking around the solution given Nick's note above re: Env Vars

@joepavitt joepavitt added this to the 2.12 milestone Nov 19, 2024
@joepavitt joepavitt removed the needs-triage Needs looking at to decide what to do label Nov 19, 2024
@joepavitt joepavitt moved this from In Design to Todo in 🛠 Development Nov 19, 2024
@Steve-Mcl
Copy link
Contributor

Since this is purely a FlowFuse thing, perhaps we could add functionality to one of our plugins or nodes?

Perhaps the project nodes?
or something in the auth plugin could set a settings flag?
or a specific MQTT topic from the broker?

Does that pop any light blubs for anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request requested by customer feature-request New feature or request that needs to be turned into Epic/Story details
Projects
Status: Todo
Development

No branches or pull requests

3 participants