Skip to content

Commit

Permalink
added lint check changes
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Feb 1, 2024
1 parent 942768e commit 197cc66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions common/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface RefreshIntervalType {
refreshInterval: string;
}

export interface watermarkDelayType {
export interface WatermarkDelayType {
delayWindow: number;
delayInterval: string;
}
Expand All @@ -45,7 +45,7 @@ export interface GroupByTumbleType {
tumbleInterval: string;
}

export interface materializedViewQueryType {
export interface MaterializedViewQueryType {
columnsValues: MaterializedViewColumn[];
groupByTumbleValue: GroupByTumbleType;
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions public/components/acceleration/create/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
AccelerationRefreshType,
CreateAccelerationForm,
FormErrorsType,
MaterializedViewQueryType,
SkippingIndexRowType,
materializedViewQueryType,
} from '../../../../common/types';

export const pluralizeTime = (timeWindow: number) => {
Expand Down Expand Up @@ -103,7 +103,7 @@ export const validateCoveringIndexData = (

export const validateMaterializedViewData = (
accelerationIndexType: AccelerationIndexType,
materializedViewQueryData: materializedViewQueryType
materializedViewQueryData: MaterializedViewQueryType
) => {
if (accelerationIndexType !== 'materialized') return [];

Expand Down
16 changes: 8 additions & 8 deletions test/mocks/accelerationMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down Expand Up @@ -39,7 +39,7 @@ export const materializedViewEmptyDataMock = {
},
};

export const materializedViewEmptyTumbleDataMock: materializedViewQueryType = {
export const materializedViewEmptyTumbleDataMock: MaterializedViewQueryType = {
columnsValues: [
{
id: '1',
Expand All @@ -54,7 +54,7 @@ export const materializedViewEmptyTumbleDataMock: materializedViewQueryType = {
},
};

export const materializedViewStaleDataMock: materializedViewQueryType = {
export const materializedViewStaleDataMock: MaterializedViewQueryType = {
columnsValues: [],
groupByTumbleValue: {
timeField: 'timestamp',
Expand All @@ -63,7 +63,7 @@ export const materializedViewStaleDataMock: materializedViewQueryType = {
},
};

export const materializedViewValidDataMock: materializedViewQueryType = {
export const materializedViewValidDataMock: MaterializedViewQueryType = {
columnsValues: [
{
id: '1',
Expand Down

0 comments on commit 197cc66

Please sign in to comment.