-
Notifications
You must be signed in to change notification settings - Fork 265
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
Attribute update without losing existing metadata #4033
Comments
B option is the desired behavior from my point of view |
At the end the name of the option will be: |
Fixed by PR #4033 |
@fgalan thanks, for all the work that you put into this piece of software. However, it would be very kind if you would highlight such change as a BREAKING CHANGE in the semantic release. As this is a breaking change it should have been a major release, right? Especially important if a feature is not part of the specifications ;) It took me quite a while to figure this out but it actually occurred with version 3.7.0. So something was a little messed up with this. Thank you anyway. |
Sorry heard that... However, note that in the (rare) cases in which a Orion release breaks the backward compatibility, it is properly warned in the release notes. For instance:
Bottom line: it is important to read the release notes before to upgrade to a new version :) |
@fgalan I saw it, but it was somehow confusing that the NOTE is in version 3.6.0 but the error occurred later in 3.7.0. I would just recommend highlighting BREAKING CHANGES and making them more prominent. In this case, it was not as critical, as it rather protects existing data, but it prevented updating behavior. The FIWARE community had such a hard time convincing people in so many application domains. Nevertheless, I like the feature ;) |
Do you mean that the the change in the metadata update semantics (and side option From which version did you update to 3.7.0? |
@fgalan I am sorry. I just doubled checked and apparently, we accidentally skipped some versions here although 3.6 was already released more than a half year ago and I was pretty sure that it was updated in between. Sorry for that! Hence, no need to look into it again. I was probably in rush and like to apologize. Next time I goona read the notes more carefully! |
Dont' worry :) The bottom line is that if you upgrade (for instance) from 1.0 to 1.3 you not only have to check the release notes in 1.3, but also in other versions in the upgrade path (1.1 and 1.2 in this case). |
Is your feature request related to a problem / use case? Please describe.
Some metadata are "sticky" to the attribute. For instance, a metadata meaning the units/format of the attribute value or the proposed
extraLoc
metadata in issue #4032However, the current semantics for attribute update is that the metadata is part of the value. So, if we have attribute
temperature
with value42
and metadataunit
with value"Celsius"
and we do:Then the
unit
metadata will be deleted. The only way of avoiding the removal is:Describe the solution you'd like
CB should implement to two different behaviours for attribute updates:
There are two alternative implementations:
options
will change behaviour to 2. Fully backward compatibleoptions
will change behaviour to 1. Not backward compatible but maybe better from a operative point of viewWe have to choose one of these when we address this issue.
Describe alternatives you've considered
Not aplicable
Describe why you need this feature
Do you have the intention to implement the solution
The text was updated successfully, but these errors were encountered: