This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Store deb packages list for a device. #395
Store deb packages list for a device. #395
Changes from 7 commits
781f32d
1973b7d
0620f8a
4c142ee
170d494
14495b0
938c387
31029fc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way you'll keep old and outdated packages list if the agent was reverted to some old version that doesn't pass
deb_packages
. I recommend sending (from agent) None as thedeb_packages
payload element, which means it was not changed. So you'll do nothing ifdeb_packages is None
and you'll cleardevice.deb_packages
content in case of nodeb_packages
in data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should we clear
deb_packages
? Isn't outdated data better than no data at all?@vpetersson need your input on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a timestamp on the actual report, right? If so, then yes, old data is better than no data.