From a5ffbe905ae2178c3361308f8f5520030d72e324 Mon Sep 17 00:00:00 2001 From: gloriacai01 Date: Thu, 3 Jul 2025 15:05:30 -0400 Subject: [PATCH 1/3] enablebackfill typescript --- src/app/data-client.spec.ts | 3 +++ src/app/data-client.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/data-client.spec.ts b/src/app/data-client.spec.ts index 95e3c61ec..4243870c3 100644 --- a/src/app/data-client.spec.ts +++ b/src/app/data-client.spec.ts @@ -1430,6 +1430,7 @@ describe('DataPipelineClient tests', () => { const schedule = '0 0 * * *'; const dataSourceTypeStandard = TabularDataSourceType.STANDARD; const dataSourceTypeHotStorage = TabularDataSourceType.HOT_STORAGE; + const enableBackfill = true; describe('listDataPipelines tests', () => { const pipeline1 = new DataPipeline({ @@ -1538,6 +1539,7 @@ describe('DataPipelineClient tests', () => { name: pipelineName, mqlBinary: mqlQuery.map((value) => BSON.serialize(value)), schedule, + enableBackfill, dataSourceType: dataSourceTypeStandard, }); @@ -1546,6 +1548,7 @@ describe('DataPipelineClient tests', () => { pipelineName, mqlQuery, schedule, + enableBackfill, dataSourceTypeStandard ); expect(capReq).toStrictEqual(expectedRequest); diff --git a/src/app/data-client.ts b/src/app/data-client.ts index 79544e93d..0051fed88 100644 --- a/src/app/data-client.ts +++ b/src/app/data-client.ts @@ -1417,7 +1417,9 @@ export class DataClient { name: string, query: Uint8Array[] | Record[], schedule: string, - dataSourceType?: TabularDataSourceType + enableBackfill: boolean, + dataSourceType?: TabularDataSourceType, + ): Promise { const mqlBinary: Uint8Array[] = query[0] instanceof Uint8Array @@ -1432,6 +1434,7 @@ export class DataClient { name, mqlBinary, schedule, + enableBackfill, dataSourceType: inputDataSourceType, }); return resp.id; From 0f0b2b37fa8bf9e034492e0f91566e4a939545f1 Mon Sep 17 00:00:00 2001 From: gloriacai01 Date: Thu, 3 Jul 2025 15:22:22 -0400 Subject: [PATCH 2/3] lint --- src/app/data-client.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/data-client.ts b/src/app/data-client.ts index 0051fed88..f05bb5c3a 100644 --- a/src/app/data-client.ts +++ b/src/app/data-client.ts @@ -1418,8 +1418,7 @@ export class DataClient { query: Uint8Array[] | Record[], schedule: string, enableBackfill: boolean, - dataSourceType?: TabularDataSourceType, - + dataSourceType?: TabularDataSourceType ): Promise { const mqlBinary: Uint8Array[] = query[0] instanceof Uint8Array From 07c860421a1d28085457d41ea7d35ec3208cb242 Mon Sep 17 00:00:00 2001 From: gloriacai01 Date: Thu, 3 Jul 2025 17:12:13 -0400 Subject: [PATCH 3/3] linter --- src/app/data-client.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/data-client.spec.ts b/src/app/data-client.spec.ts index 4243870c3..c3b9bd129 100644 --- a/src/app/data-client.spec.ts +++ b/src/app/data-client.spec.ts @@ -1561,6 +1561,7 @@ describe('DataPipelineClient tests', () => { name: pipelineName, mqlBinary: mqlQuery.map((value) => BSON.serialize(value)), schedule, + enableBackfill, dataSourceType: dataSourceTypeStandard, }); @@ -1568,7 +1569,8 @@ describe('DataPipelineClient tests', () => { organizationId, pipelineName, mqlQuery, - schedule + schedule, + enableBackfill ); expect(capReq).toStrictEqual(expectedRequest); expect(response).toEqual(pipelineId);