-
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
Pagination trouble with CPr responses #847
Comments
Thanks for the feedback! In order to have more information, maybe you could detail a concrete use case or situation in which the problem arises, please? |
Firstly I thought that the pagination process depended on the CB so my CPr didn't take this process into account. The query that I tried was similar to this: When I saw the response without any pagination restriction, I supposed that maybe the pagination process should depend on the CPr, so I implemented a routine which adds the ability to process queries that include pagination syntax, The problem is that when a query like the previous one is sent to CP, it sends the query to the url which appears at the providingApplication field of the entities registration, but It doesn't add anywhere the pagination info. |
It could happend (not 100% sure but almost) that current Orion version doesn't forward pagination URL params to CPrs. Considering the general case of N CPrs, the expected behaviour should be as follows:
|
Discussing this with @anabelengp, we have found that the above approach is not valid. Using L in the request to CPr will lead in general to less results in CB at aggregation step. Thus, the set to which CB applies F and L is not the one containing all the possible results. Two possible alternatives:
|
Related issue (in some sense, a "child" of the present one): #1647 |
…_less_new_2 Hardening/less memory less new 2
This issue is fixed in PR #4149 so we are going to close it. If we are wrong and it is still not working, please tell us about it (with the detailed steps to reproduce the problem), please. |
ContextBroker neither sends the pagination info (offset, limit) to the CPr nor makes any pagination control to CPr responses. So it might be useful to add the pagination parameters when the query is send to the provider.
The text was updated successfully, but these errors were encountered: