rally - LBAPI "removeUnauthorizedSnapshots" only sent on first request -
i started using "removeunauthorizedsnapshots" parameter lbapi avoid permissions errors experiencing. using lbapi gather details work items in our workspace faster wsapi, since have ~25,000 leaf stories in our workspace, data must gathered using more 1 api request. when adding "limit : infinity" parameter request, can see in network traffic while second request in fact made, "removeunauthorizedsnapshots" parameter not included, therefore resulting in permissions error.
is there plan add official support parameter lbapi, rather adding request manually?
thanks!
in meantime, here solution uses "loadpage" function, in place of "load":
var allrecords = []; function getworkitems(pagenumber) { ext.create('rally.data.lookback.snapshotstore', { fetch : ['name','objectid','planestimate'], filters : [{ property : '__at', value : 'current' },{ property : '_typehierarchy', value : 'hierarchicalrequirement' },{ property : 'children', value : null }] }).loadpage(pagenumber, { params : { compress : true, removeunauthorizedsnapshots : true }, callback : function(records, operation, success) { allrecords = ext.array.merge(allrecords, records); if (operation.response.startindex + operation.response.pagesize >= operation.response.totalresultcount) { //all records loaded } else { getworkitems(++pagenumber); } } }); }(1);
Comments
Post a Comment