From e769ec7b96415f26426a1661407d7894d73d3c98 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Wed, 20 Mar 2024 13:37:39 -0700 Subject: [PATCH] Web console: fix Azure icon not rendering (#16173) * do not lowercase the icon name * missing icon * update test --- web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx | 3 ++- web-console/src/utils/types.ts | 1 + .../load-data-view/__snapshots__/load-data-view.spec.tsx.snap | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx b/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx index fa3fd905be38..ec765b9c3459 100644 --- a/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx +++ b/web-console/src/druid-models/ingestion-spec/ingestion-spec.tsx @@ -208,7 +208,7 @@ export function getIngestionTitle(ingestionType: IngestionComboTypeWithExtra): s export function getIngestionImage(ingestionType: IngestionComboTypeWithExtra): string { const parts = ingestionType.split(':'); - if (parts.length === 2) return parts[1].toLowerCase(); + if (parts.length === 2) return parts[1]; return ingestionType; } @@ -2071,6 +2071,7 @@ const TUNING_FORM_FIELDS: Field[] = [ { name: 'spec.tuningConfig.maxPendingPersists', type: 'number', + defaultValue: 0, hideInMore: true, info: ( <> diff --git a/web-console/src/utils/types.ts b/web-console/src/utils/types.ts index d164d46138bb..76437e58327b 100644 --- a/web-console/src/utils/types.ts +++ b/web-console/src/utils/types.ts @@ -80,6 +80,7 @@ export function dataTypeToIcon(dataType: string): IconName { return IconNames.SNOWFLAKE; case 'COMPLEX': + case 'COMPLEX': return IconNames.HORIZONTAL_DISTRIBUTION; case 'COMPLEX': diff --git a/web-console/src/views/load-data-view/__snapshots__/load-data-view.spec.tsx.snap b/web-console/src/views/load-data-view/__snapshots__/load-data-view.spec.tsx.snap index 3d1d2ec93ec4..266bfc9c05cd 100644 --- a/web-console/src/views/load-data-view/__snapshots__/load-data-view.spec.tsx.snap +++ b/web-console/src/views/load-data-view/__snapshots__/load-data-view.spec.tsx.snap @@ -182,7 +182,7 @@ exports[`LoadDataView matches snapshot batch 1`] = ` > Ingestion tile for index_parallel:azureStorage

Azure Data Lake