Open arturohu opened 4 years ago
I understand (by the mention to "lazy attributes") that you are using IOTA in your setup. Is that correct? Which one and which version, please?
If you remove the registrations created by the IOTA (using DELETE /v2/registrations/<regId>
operation), requests to Orion work as expected?
Thanks for the feedback!
We're actually using an own context provider. When we ask Orion for the entities with attribute filter, this context provider receives the request and returns all the associated context elements. It seems that Orion doesn't apply the filter to all the entities returned by the context provider.
I have checked what happens when I remove the registrations associated with the devices. At the moment it has been deleted, Orion has responded as expected to the request of the entities with filter.
Thank you for helping us!
it looks like your issue is the same as #3657
It is known issue that filtering is not working well with CPrs (see issue https://github.com/telefonicaid/fiware-orion/issues/2282) and maybe it is impating/causing the same issue you have here.
Exactly, we are using CPrs registered using NGSIv1, and requesting entities with filtering through NGSIv2.
What will be the next step? Should we close this issue to attend the issue #2282 you have mentioned?
Thank you
If you think #2282 covers this issue (and would do so with some comments to #2282), I think is a good idea to close this one.
After that, the next step would be to find some brave developer :) wanting to have a look at #2282 and solve the issue. I can guide on the process, if somebody commits with the task.
Do we have a fix available for this filtering issue please? We are facing the same issue where Context providing returning invalid records and Orion forwarding them to the client as it is.
Do we have a fix available for this filtering issue please? We are facing the same issue where Context providing returning invalid records and Orion forwarding them to the client as it is.
Already answered in issue https://github.com/telefonicaid/fiware-orion/issues/2282#issuecomment-746589644 ;)
What I said some time ago stills:
... the next step would be to find some brave developer :) wanting to have a look at #2282 and solve the issue. I can guide on the process, if somebody commits with the task.
We're trying to run some filters on a type of entity. These entities are Device type and have static, lazy, and active attributes. We get the following response when we try to ask for the entities by satisfying a certain condition, for instance, "q=name=='Test Name'", and taking into account that "name" is a static attribute.
Examples:
Request (no entity satisfies the condition):
Response:
Request (some entity satisfies the condition):
Response:
I have tried it on Docker: