Paged OSLC query result limited to 100 ?
We are currently implementing dependent and parametrized HTTP Value set providers (https://jazz.net/library/article/1257)
In our implementation the XML Data source is retrieved from an OSLC query to the JTS Server.
By setting XML Data source to the value :
https://<server-name>:<port>/ccm/oslc/contexts/<id of project AREA/workitems?oslc_cm.query=dc:type=%22component%22&oslc_cm.pageSize=100&oslc_cm.properties=dc:title
Im a able to retreive and process 100 WI, but if there are more than 100 I receive an exception. This is because the query is paginated and the maximum page size is of 100.
Is there any way to increase the page size to more than 100 ?
Can we reset the pagination before running the query ?
We checked that in the server (ccm) there is a property called 'Maximum Query Result Set Size' set to 1000
and another property (jts) called 'Max Number of Entries Returned from User Search' set to 100.
We don't know what they are exactly for – can it help us increasing the limit to be more than 100 in our case ?
Please advise, this limitation could have a severe impact our implementation.
In our implementation the XML Data source is retrieved from an OSLC query to the JTS Server.
By setting XML Data source to the value :
https://<server-name>:<port>/ccm/oslc/contexts/<id of project AREA/workitems?oslc_cm.query=dc:type=%22component%22&oslc_cm.pageSize=100&oslc_cm.properties=dc:title
Im a able to retreive and process 100 WI, but if there are more than 100 I receive an exception. This is because the query is paginated and the maximum page size is of 100.
Is there any way to increase the page size to more than 100 ?
Can we reset the pagination before running the query ?
We checked that in the server (ccm) there is a property called 'Maximum Query Result Set Size' set to 1000
and another property (jts) called 'Max Number of Entries Returned from User Search' set to 100.
We don't know what they are exactly for – can it help us increasing the limit to be more than 100 in our case ?
Please advise, this limitation could have a severe impact our implementation.
Accepted answer
Hi Armand,
you could handle the resource paging feature as described in the Pagination section of this article:
https://jazz.net/library/article/1001#advanced_concepts
Regards,
Stéphane
you could handle the resource paging feature as described in the Pagination section of this article:
https://jazz.net/library/article/1001#advanced_concepts
Regards,
Stéphane
Comments
2 other answers
Did you try looking at
Max Feed Entries/Page , in the advanced properties?
Comments
The simple way to do it is to :
- Do the initial query
- get datas
- Get the oslc_cm:next attribute in oslc_cm:Collection
- if oslc_cm:next is set, go to 1 with the oslc_cm:next as the resource url and loop
That's all.
You have a oslc_cm:previous in oslc_cm:Collection to move to the previous page if you want to go back