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

Reload device settings when restarting in dev mode #348

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

knolleary
Copy link
Member

Closes FlowFuse/flowfuse#5069

When in developer mode, if the user triggers a restart via the UI, or if starting up the agent from scratch, trigger a reload of settings from the platform.

This ensures that any env vars/settings changes get picked up in an expected way. Previously this would require taking the device out of developer mode - which then resets the flows etc.

@knolleary knolleary requested a review from hardillb February 12, 2025 13:56
@knolleary
Copy link
Member Author

To verify this behaviour:

  1. Connect device, put in dev mode
  2. Deploy flow to report (for example) value of an env var
  3. Edit env var in platform UI
  4. Trigger restart action in platform UI
  5. Verify the flow reports the new env var value

@hardillb
Copy link
Contributor

Tested using the describe procedure

@hardillb hardillb merged commit b5d1a6c into main Feb 12, 2025
4 checks passed
@hardillb hardillb deleted the 5069-reload-settings-on-dev-restart branch February 12, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device restart whilst in Dev Mode should pickup settings changes
2 participants