From 3740a7b34665fe16bfd8ef94c97c33c7798acf32 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 5 Feb 2024 16:32:43 +0530 Subject: [PATCH] fix glossary default selector in search index application while installation (#15024) --- .../AppInstallVerifyCard/app-install-verify-card.less | 5 +++-- .../ui/src/pages/AppInstall/AppInstall.component.tsx | 4 +++- .../utils/ApplicationSchemas/SearchIndexingApplication.json | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Applications/AppInstallVerifyCard/app-install-verify-card.less b/openmetadata-ui/src/main/resources/ui/src/components/Applications/AppInstallVerifyCard/app-install-verify-card.less index 44b2412dc33..24f90ce838c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Applications/AppInstallVerifyCard/app-install-verify-card.less +++ b/openmetadata-ui/src/main/resources/ui/src/components/Applications/AppInstallVerifyCard/app-install-verify-card.less @@ -11,8 +11,9 @@ * limitations under the License. */ .app-marketplace-avatar > img { - width: 64px; - height: 64px; + width: 54px; + height: 54px; + object-fit: contain; } .app-card-divider { diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/AppInstall/AppInstall.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/AppInstall/AppInstall.component.tsx index b6ee11899a6..2f1a62f5ff0 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/AppInstall/AppInstall.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/AppInstall/AppInstall.component.tsx @@ -19,6 +19,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useHistory } from 'react-router-dom'; import TestSuiteScheduler from '../../components/AddDataQualityTest/components/TestSuiteScheduler'; +import applicationSchemaClassBase from '../../components/Applications/AppDetails/ApplicationSchemaClassBase'; import AppInstallVerifyCard from '../../components/Applications/AppInstallVerifyCard/AppInstallVerifyCard.component'; import ErrorPlaceHolder from '../../components/common/ErrorWithPlaceholder/ErrorPlaceHolder'; import FormBuilder from '../../components/common/FormBuilder/FormBuilder'; @@ -79,7 +80,8 @@ const AppInstall = () => { }); setAppData(data); - const schema = await import(`../../utils/ApplicationSchemas/${fqn}.json`); + const schema = await applicationSchemaClassBase.importSchema(fqn); + setJsonSchema(schema); } catch (error) { showErrorToast(error as AxiosError); diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/ApplicationSchemas/SearchIndexingApplication.json b/openmetadata-ui/src/main/resources/ui/src/utils/ApplicationSchemas/SearchIndexingApplication.json index a050df8e825..b2b79db2eb2 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/ApplicationSchemas/SearchIndexingApplication.json +++ b/openmetadata-ui/src/main/resources/ui/src/utils/ApplicationSchemas/SearchIndexingApplication.json @@ -61,6 +61,7 @@ "searchIndex", "user", "team", + "glossary", "glossaryTerm", "mlmodel", "tag",