From 6a5537106686bb1b21c2ecae5cf0f77836a8c138 Mon Sep 17 00:00:00 2001 From: almog8k Date: Wed, 26 Nov 2025 09:37:06 +0200 Subject: [PATCH 1/2] fix: add unknown error and count it --- src/constants/ingestion/constants.ts | 1 + src/schemas/ingestion/validationTask.schema.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/constants/ingestion/constants.ts b/src/constants/ingestion/constants.ts index 63df2e0..e300677 100644 --- a/src/constants/ingestion/constants.ts +++ b/src/constants/ingestion/constants.ts @@ -97,6 +97,7 @@ export const ValidationErrorType = { SMALL_GEOMETRY: 'Small_Geometry', SMALL_HOLES: 'Small_Holes', RESOLUTION: 'Resolution', + UNKNOWN: 'Unknown', } as const; /* eslint-enable @typescript-eslint/naming-convention */ diff --git a/src/schemas/ingestion/validationTask.schema.ts b/src/schemas/ingestion/validationTask.schema.ts index 644334e..1f6e142 100644 --- a/src/schemas/ingestion/validationTask.schema.ts +++ b/src/schemas/ingestion/validationTask.schema.ts @@ -13,6 +13,7 @@ export const featuresErrorCountSchema = z.object({ resolution: counterSchema.describe('Number of features not matching the required resolution'), smallHoles: counterSchema.describe('Number of features containing small holes'), smallGeometries: counterSchema.describe('Number of features containing small geometries'), + unknown: counterSchema.describe('Number of features with unknown errors'), }); export const thresholdsSchema = z.object({ From f5c8d4b7658fa9e401c816da5c1aa82b70415c9c Mon Sep 17 00:00:00 2001 From: almog8k Date: Wed, 26 Nov 2025 09:55:01 +0200 Subject: [PATCH 2/2] fix: add unknown error to PolygonPartValidationErrorsType --- src/types/ingestion/report.type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/ingestion/report.type.ts b/src/types/ingestion/report.type.ts index a58d6c5..d7dfc0a 100644 --- a/src/types/ingestion/report.type.ts +++ b/src/types/ingestion/report.type.ts @@ -2,8 +2,8 @@ import { ValidationErrorType } from '../../constants'; export type PolygonPartValidationErrorsType = Pick< typeof ValidationErrorType, - 'RESOLUTION' | 'GEOMETRY_VALIDITY' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' ->[keyof Pick]; + 'RESOLUTION' | 'GEOMETRY_VALIDITY' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' | 'UNKNOWN' +>[keyof Pick]; export interface PolygonPartValidationError { id: string;