-
Notifications
You must be signed in to change notification settings - Fork 266
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
Support query filtering on NGSIv2 query forwarding to CPrs (registered using NGSIv1) #2282
Comments
Just to clarify: not only |
This bug is posing a big problem for us, is there any work-around or way for us to help out to fix this issue? |
The easiest workaround is implementing the filtering at client side. I mean, the client will receive all the results, no matter if temperature is greater than 40 or not. The client may filter out the entities which entity less than or equal 40, |
Filtering at client side works as long as the amount of entities is not too great and the client knows filtering must be done on the results rather than the query. We have read the proposed Context Source Forwarding Specification and saw it would fix many problems, is there a priority to implement it? Is there anything we can contribute? |
A simplified version of the specification (described in this comment) is under work (in fact the first batch of functionality, corresponding to query forwarding, is on the way in PR #3467). My spectation is it will be finished in the next Orion version (2.3). However, note this simplified version of the specification doesn't include filtering, so probably it will not suffice your case. Filtering at NGSIv2 API client side stills being a posibility. |
Do we have a fix available for this query filtering issue in Context Provider please? We are facing the same issue where Context providing returning invalid records and Orion forwarding them to the client as it is. |
As far as I know, there isn't any fix available yet. The recommended workaround is to filter query results on the client side. |
Hi @fgalan sir, is this feature still valid? |
I'd suggest look for issues not related with registration or forwarding functionality. That functionality could be deprecated in the future (it is somehow problematic) so it would be wiser to devote effort to other more productive issues. |
Query filtering (e.g.
GET /v2/entities?q=temperature>40
) is not supported on query forwarding.POST /v1/queryContext
operation forwarded to CPr.Edit: the answer to question at SOF at https://stackoverflow.com/questions/53044149/how-to-avoid-registrations-result-when-query-the-entities-filtered-by-a-relation/53169410#53169410 should be edited when this issue gets solved.
The text was updated successfully, but these errors were encountered: