我正在使用Rally Lookback API运行一些查询,似乎未检索到超过1周的修订:
const enumOptions: any = [
{
value: caseStatusEnum.submitted.toString(),
selected: false,
},
{
value: caseStatusEnum.closed.toString(),
selected: true,
}
];
it('should create status options when no list value options are provided', () => {
optionService.options = this.enumOptions as OptionModel[];
const result = service.createStatusOptions([], {});
expect(result.length).toBe(2);
expect(result).toEqual([{ value: '103', selected: true }, { value: '105', selected: false }]);
// tslint:disable-next-line:no-commented-code
// const response = [{ mock: 'mock' } as any];
// expect(spy).toBe(result);
});
it('should create status options when there ar list value options are provided', () => {
optionService.options = this.enumOptions as OptionModel[];
const result = service.createStatusOptions([{ value: '103', selected: false }, { value: '104_103', selected: false }, ], {});
expect(result.length).toBe(4);
// expect(result).toEqual([{ value: '104', selected: false, }, { value: '105', selected: false, }, ]);
});
使用以下查询:
λ date
Wed, Nov 28, 2018 2:26:45 PM
结果:
{
"ObjectID": 251038028040,
"__At": "current"
}
请记住,截至目前,该工件已有79个修订,根据Rally Central的“修订”选项卡,最新修订指向CST 11/21/2018 PM。 另一件事是,如果我在几分钟后运行查询,则由于正在运行某种索引,ETL日期似乎正在更新:
{
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"Errors": [],
"Warnings": [
"Max page size limited to 100 when fields=true"
],
"GeneratedQuery": {
"find": {
"ObjectID": 251038028040,
"$and": [
{
"_ValidFrom": {
"$lte": "2018-11-21T14:44:34.694Z"
},
"_ValidTo": {
"$gt": "2018-11-21T14:44:34.694Z"
}
}
],
"_ValidFrom": {
"$lte": "2018-11-21T14:44:34.694Z"
}
},
"limit": 10,
"skip": 0,
"fields": true
},
"TotalResultCount": 1,
"HasMore": false,
"StartIndex": 0,
"PageSize": 10,
"ETLDate": "2018-11-21T14:44:34.694Z",
"Results": [
{
"_id": "5bfe7e3c3f1f4460feaeaf11",
"_SnapshotNumber": 30,
"_ValidFrom": "2018-11-21T12:22:08.961Z",
"_ValidTo": "9999-01-01T00:00:00.000Z",
"ObjectID": 251038028040,
"_TypeHierarchy": [
-51001,
-51002,
-51003,
-51004,
-51005,
-51038,
46772408020
],
"_Revision": 268342830516,
"_RevisionDate": "2018-11-21T12:22:08.961Z",
"_RevisionNumber": 53,
}
],
"ThreadStats": {
"cpuTime": "15.463705",
"waitTime": "0",
"waitCount": "0",
"blockedTime": "0",
"blockedCount": "0"
},
"Timings": {
"preProcess": 0,
"findEtlDate": 88,
"allowedValuesDisambiguation": 1,
"mongoQuery": 1,
"authorization": 3,
"suppressNonRequested": 0,
"compressSnapshots": 0,
"allowedValuesHydration": 0,
"TOTAL": 93
}
}
Lookback API有什么理由不应该处理当前数据,而不是记录之间相差一周吗?
答案 0 :(得分:0)
似乎您的工作区数据当前正在“重建”。 _ETLDate是LBAPI数据库中最新修订的日期,最终应赶上当前修订的日期。