-
Notifications
You must be signed in to change notification settings - Fork 41
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
data_updater_plant: refute incomplete objects #574
base: release-1.0
Are you sure you want to change the base?
Conversation
7d12e9a
to
94246f2
Compare
Data Updater Plant was accepting objects containing a subset of the required keys. This MR fixes that behaviour, leaving a way to accept the old (incorrect) one for a transition period: passing DATA_UPDATER_PLANT_ACCEPT_INCOMPLETE_OBJECTS=true as environment variable. Fix astarte-platform#550 Signed-off-by: Riccardo Binetti <riccardo.binetti@ispirata.com>
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.
At the moment this would break any existing installation since devices having an older interface minor version have less keys than expected, however their data are still valid.
We need to compare keys against expected objects for given major and minor.
We already keeping track of the minor version which introduced any endpoint, however this sounds like a complex change.
I suggest documenting this "issue" as a known issue and we must tell our users to pay attention to this that will have stricter checks in future versions. |
Data Updater Plant was accepting objects containing a subset of the required
keys. This MR fixes that behaviour, leaving a way to accept the old (incorrect)
one for a transition period: passing
DATA_UPDATER_PLANT_ACCEPT_INCOMPLETE_OBJECTS=true as environment variable.
Fix #550
Signed-off-by: Riccardo Binetti riccardo.binetti@ispirata.com