RDNG Publish API and unrelaiable behaviour when accessing modules
When using RDNG Publish API I figured out really weird behaviour when I am accessing modules in a specific project. For some projects all modules are returned and for some only small subset.
<ds:dataSource appId="RRC" rrm:totalCount="4" vMajor="60" vMinor="02">
<ds:dataSource appId="RRC" href="https://server2:9443/rm/publish/modules?scoped=true&size=100&projectURI=_cnAsUCsgEeWKUsdTFNz7Cg&token=_H68S8ANvEeexwe7ftoMOEw&page=1" rel="next" rrm:totalCount="3" vMajor="60" vMinor="02">
Accepted answer
Hi,
Both examples are working as expected, with example 2 TBD by consuming all the pages. The behavior is the following:
- totalCount = no of artifacts (i.e. ds:artifact) present in the server response; if the server response is paged, then totalCount = no of artifacts present in the currently returned response page
The response is automatically paged by the server when no size is specified. Even if a size parameter is specified, it is up to the server to page. This follows the REST Reporting Services API specification from https://open-services.net/pub/Main/ReportingHome/Reportable_Rest_Services_Interfaces-OSLC_Submission.pdf.
Here is the extracted pertinent information:
In your case, complete response total count += rrm:totalCount(each page)
Comments
Donald Nong
Mar 08 '17, 11:34 p.m.I doubt that anybody can help you here unless someone happens to have seen the exact same issue before. How do we know that there are indeed 49 modules in the second project? I suggest you contact Support if the issue really bugs you.
Bartosz Chrabski
Mar 09 '17, 3:44 a.m.We know exact number from RDNG UI
Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Mar 12 '18, 3:56 p.m.Hello Bartosz
What do you get when you request the URI that is in the href? https://server2:9443/rm/publish/modules?scoped=true&size=100&projectURI=_cnAsUCsgEeWKUsdTFNz7Cg&token=_H68S8ANvEeexwe7ftoMOEw&page=1%22
do you get 46 which is 49-3?
Bartosz Chrabski
Mar 12 '18, 5:02 p.m.Rosa, I need to find this example on one of my VMs. As you see publish date is March 7th 2017 (a year ago). I can say my focused change a bit since than :).
Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Mar 12 '18, 5:29 p.m.Bartosz
There is no need to go through that trouble for me. If it comes up again, then we can revisit.
Bartosz Chrabski
Mar 12 '18, 5:40 p.m.Thx!