appsdk2 - Rally Request Entity Too Large -


due limitations of lbapi detailed here, queries lbapi have drastically increased in size (i passing array of "visible" projects lbapi return work items projects have view access to) point "request entity large" error.

i know need break queries using of visible projectsat time. wanted programatically - every 100 visible projects, query, take records come , throw them array.

however, gets kind of messy when trying determine when continue - have of queries come , populated array of totals? can think of clean way make happen?

for (var = 0; < math.ceil(app.visibleteams.length / 100); i++) {     console.log('i',i);     var tempproj = [];     (var j = * 100; j < math.min((i + 1) * 100, app.visibleteams.length); j++) {         tempproj.push(app.visibleteams[j]);     }     console.log('tempproj.length',tempproj.length);     // query     app.completerecords = [];     ext.create('rally.data.lookback.snapshotstore', {         pagesize : 10000,         fetch    : ['parent','name','_unformattedid','portfolioitemtype','percentdonebystoryplanestimate','objectid','plannedstartdate','plannedenddate','actualstartdate','actualenddate','leafstoryplanestimatetotal'],         filters  : [{             property : '__at',             value    : 'current'         },{             property : '_typehierarchy',             value    : 'portfolioitem'         },{             property : '_itemhierarchy',             operator : 'in',             value    : node.objectid         },{             property : 'project',             operator : 'in',             value    : tempproj         },{             property : 'leafstoryplanestimatetotal',             operator : '>',             value    : 0         }]     }).load({         callback: function(records, operation, success) {             if (!success) {                 ext.getbody().unmask();                 ext.msg.alert('error ' + operation.error.status + ': ' + operation.error.statustext, operation.error.errors[0]);             } else {                 app.completerecords.push.apply(app.completerecords, records);                 // if done, callback(), else, nothing             }         }     }); } 

we added new functionality address this. added more detailed response other question referenced.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -