-
Notifications
You must be signed in to change notification settings - Fork 66
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
Version History for Devices #4873
Comments
I think i got the gist of things on why the device timeline would be a bit harder to implement. Project AuditLog events are pretty straight forward, having the polymorphic relation point straight to the project/instance:
Device AuditLog events are scattered between:
There might be more, these were taken from my local db, some actions could be missing because I couldn't trigger them or didn't know how to trigger them. SELECT DISTINCT event FROM AuditLogs where event like '%device%'; Because we don't have a direct device reference for team.device.xx, application.device.xx, application.deviceGroup.xx, project.device.xx and project.snapshot.device-target-set, correlating these to the device in question (as we stand) would be costly at best if not impossible. Most of them reference the device in the body of the entry which is a TEXT type that stores a json payload. The main problem we have is that we can't correlate team, application and project device events to the device itself. The way I see it, there are a couple of ways to go about it, each with it's own drawbacks and advantages.
Moving forward with either pt. 2 or 3, a |
I think we move foward with option 1 to get the basic api and UI in place. We then formulate a plan to address 2/3 as a follow on (rather than try to solve them before making progress on 1). I don't have an immediate suggestion on solving 2/3 - will need to digest and think about it some more. |
The key piece of information we care about for the Version History view is just when new flows are deployed to a Remote Instance, which I'd assume is always |
The events we need to understand are always going to be
If we have an event for each of these four, then we are golden. You can read the events that were used for Hosted Instances here: #4424 (comment) |
The version history view should only be showing the following events:
Please can you identify the gaps here and detail explicitly which audit log events correlate to these things happening on the Device. |
opened https://github.com/FlowFuse/security/issues/100 for the audit log security issues |
Current state of affairs:
Other than the manual deploy event we don't have anything registered on the device itself. For an mvp we could at least insert a device audit log event starting from this moment onward when these project/team/applications events are triggered so users can at least actively keep track of their device flow changes. Backtracking these would be worth it on the long run but it would need careful implementation. |
Agreed, but separate PR please as a follow up as to not block this. |
Closing this out as the primary task has been completed. Follow up item with #5111 has been created for next Milestone |
Description
Follow on item from: #4509
Create the Version History view for Devices
Tasks
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered: