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
Enrichment: Support for a wildcard/placeholder identifying the changed feature in order to enrich e.g. its definition
#710
Comments
Sounds like a good idea/enhancement. |
We are using the enrichment feature as well and encountered the same use-case so would be nice to have this addition. I'm a bit confused however with the title of this issue. How would wildcards help you in this? From my point of view it would be nice to enrich a message with properties relative to the feature. If you do that, you can enrich a message with the definition but you can also enrich it with any metadata (assuming the metadata is the same on all features of course) |
Well, using e.g. {
"topic": "org.eclipse.ditto/fancy-thing/things/twin/events/modified",
"headers": {},
"path": "/features/temperature/properties/value",
"value": 23.42,
"revision": 34,
"extra": {
"features": {
"temperature": {
"definition": [
"org.eclipse.vorto:Temperature:1.0.0"
]
},
"humidity": {
"definition": [
"org.eclipse.vorto:Humidity:1.0.0"
]
}
}
}
} And as you have in the "path", that the "temperature" feature was changed, you can find out its "definition" as well. |
yes, sure. as a first step this is excellent! But indeed, my question/remark was more concerned the fact that you would receive the definition of all features. But again: excellent first step! |
I don't have a good idea (yet) to specify somehow in the existing syntax to only retrieve the definition of changed features as Any ideas from our community? |
As for the syntax you could potentially introduce a new operator like So if I specify
Regardless of this I think #874 is a good approach. |
@thjaeckle, is it possible at the moment to get all definitions using IMHO, extra fields with wildcards should be evaluated towards signal path or value (in case of several features/properties update). |
@desislava-marinova no, currently using wildcards is not possible, that's what this issue is about. Using wildcard in the |
@thjaeckle, thanks. |
I would also be interested in this feature. |
definition
I've stumbled upon the following use-case with the enrichment feature introduced in 1.1.0. I'm opening a WS connection and receive change events of many different things. The events are from different features which I don't know at the time of opening the WS connection.
Together with the state change events I also need to know the feature definition field. Right now I take the feature of an incoming message and query it's definition for each event. What I'd like to do is to request the corresponding definition of the feature the updated property belongs to.
The text was updated successfully, but these errors were encountered: