From 197cc66aab6505cccaf923c27aabf70b80f4a15c Mon Sep 17 00:00:00 2001 From: sumukhswamy Date: Thu, 1 Feb 2024 11:42:08 -0800 Subject: [PATCH] added lint check changes Signed-off-by: sumukhswamy --- common/types/index.ts | 8 ++++---- public/components/acceleration/create/utils.tsx | 4 ++-- test/mocks/accelerationMock.ts | 16 ++++++++-------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/common/types/index.ts b/common/types/index.ts index 52758c41..8c473cd5 100644 --- a/common/types/index.ts +++ b/common/types/index.ts @@ -32,7 +32,7 @@ export interface RefreshIntervalType { refreshInterval: string; } -export interface watermarkDelayType { +export interface WatermarkDelayType { delayWindow: number; delayInterval: string; } @@ -45,7 +45,7 @@ export interface GroupByTumbleType { tumbleInterval: string; } -export interface materializedViewQueryType { +export interface MaterializedViewQueryType { columnsValues: MaterializedViewColumn[]; groupByTumbleValue: GroupByTumbleType; } @@ -75,13 +75,13 @@ export interface CreateAccelerationForm { accelerationIndexType: AccelerationIndexType; skippingIndexQueryData: SkippingIndexRowType[]; coveringIndexQueryData: string[]; - materializedViewQueryData: materializedViewQueryType; + materializedViewQueryData: MaterializedViewQueryType; accelerationIndexName: string; primaryShardsCount: number; replicaShardsCount: number; refreshType: AccelerationRefreshType; checkpointLocation: string | undefined; - watermarkDelay: watermarkDelayType; + watermarkDelay: WatermarkDelayType; refreshIntervalOptions: RefreshIntervalType; formErrors: FormErrorsType; } diff --git a/public/components/acceleration/create/utils.tsx b/public/components/acceleration/create/utils.tsx index b8805b91..dcb4cf16 100644 --- a/public/components/acceleration/create/utils.tsx +++ b/public/components/acceleration/create/utils.tsx @@ -12,8 +12,8 @@ import { AccelerationRefreshType, CreateAccelerationForm, FormErrorsType, + MaterializedViewQueryType, SkippingIndexRowType, - materializedViewQueryType, } from '../../../../common/types'; export const pluralizeTime = (timeWindow: number) => { @@ -103,7 +103,7 @@ export const validateCoveringIndexData = ( export const validateMaterializedViewData = ( accelerationIndexType: AccelerationIndexType, - materializedViewQueryData: materializedViewQueryType + materializedViewQueryData: MaterializedViewQueryType ) => { if (accelerationIndexType !== 'materialized') return []; diff --git a/test/mocks/accelerationMock.ts b/test/mocks/accelerationMock.ts index 47c96000..61ab67bf 100644 --- a/test/mocks/accelerationMock.ts +++ b/test/mocks/accelerationMock.ts @@ -4,13 +4,13 @@ */ import { - ACCELERATION_DEFUALT_SKIPPING_INDEX_NAME, - ACCELERATION_TIME_INTERVAL, + ACCELERATION_DEFUALT_SKIPPING_INDEX_NAME, + ACCELERATION_TIME_INTERVAL, } from '../../common/constants'; import { - CreateAccelerationForm, - SkippingIndexRowType, - materializedViewQueryType, + CreateAccelerationForm, + MaterializedViewQueryType, + SkippingIndexRowType, } from '../../common/types'; export const skippingIndexDataMock: SkippingIndexRowType[] = [ @@ -39,7 +39,7 @@ export const materializedViewEmptyDataMock = { }, }; -export const materializedViewEmptyTumbleDataMock: materializedViewQueryType = { +export const materializedViewEmptyTumbleDataMock: MaterializedViewQueryType = { columnsValues: [ { id: '1', @@ -54,7 +54,7 @@ export const materializedViewEmptyTumbleDataMock: materializedViewQueryType = { }, }; -export const materializedViewStaleDataMock: materializedViewQueryType = { +export const materializedViewStaleDataMock: MaterializedViewQueryType = { columnsValues: [], groupByTumbleValue: { timeField: 'timestamp', @@ -63,7 +63,7 @@ export const materializedViewStaleDataMock: materializedViewQueryType = { }, }; -export const materializedViewValidDataMock: materializedViewQueryType = { +export const materializedViewValidDataMock: MaterializedViewQueryType = { columnsValues: [ { id: '1',