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

Add FF_SNAPSHOT_ID to devices #2377

Merged
merged 3 commits into from
Jul 3, 2023
Merged

Add FF_SNAPSHOT_ID to devices #2377

merged 3 commits into from
Jul 3, 2023

Conversation

knolleary
Copy link
Member

Closes FlowFuse/device-agent#94

Description

This adds FF_SNAPSHOT_ID to the env passed down to devices. This is set to the id of the targetSnapshot for the device.

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated

@knolleary knolleary requested a review from Steve-Mcl June 30, 2023 15:23
@Steve-Mcl
Copy link
Contributor

Nick, should we not include the snapshot name and description? Similar to how the device name and type are be used in flows to "do something else" I can foresee similar requirements around snapshot. And while that can be achieved with the ID, it provides no context to the user.

@Steve-Mcl
Copy link
Contributor

@knolleary - I see Ben has approved the changes but please read and comment on my suggestion (above, dated 30th Jun) before merging.

@knolleary
Copy link
Member Author

@Steve-Mcl I think description is unnecessary, but a case could be made for name. Will add.

@knolleary
Copy link
Member Author

@Steve-Mcl FF_SNAPSHOT_NAME added

@Steve-Mcl
Copy link
Contributor

Thanks Nick. Reviewing now.

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@knolleary knolleary merged commit 0a00315 into main Jul 3, 2023
3 checks passed
@knolleary knolleary deleted the da94-add-device-snapshot-env branch July 3, 2023 11:57
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.

Allow devices to access details of the snapshot running on them
3 participants