当我在查询 lbapi 时遇到问题时,我退后一步,创建了一个非常基本的应用程序,其中只包含记录结果的查询。
它看起来像这样:
Deft.Chain.pipeline([
function() {
var dd = Ext.create('Deft.Deferred');
Ext.create('Rally.data.lookback.SnapshotStore', {
fetch : ['Parent', 'Feature'],
filters : [{
property : '__At',
value : 'current'
},{
property : '_TypeHierarchy',
value : 'HierarchicalRequirement'
}]
}).load({
params : {
compress : true,
removeUnauthorizedSnapshots : true
},
callback : function(store) {
console.log('store',store);
dd.resolve(store);
}
});
return dd.promise;
}
]).then({
success: function(records) {
console.log('records', records);
}
});
奇怪的是,如果我添加了这样的过滤器:
{
property : 'Parent',
operator : '!=',
value : null
}
我得到了更多的结果。我得出结论,removeUnauthorizedSnapshots 必须在将结果全部收集到 20000 个结果的页面中之后过滤结果,因此这是可能的。谁能证实这一点?希望以后可以避免这样的混乱