From 5e828296d80b5527d0ef7a05e6a9cd3166493aa6 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Thu, 9 Dec 2021 19:15:20 +0530 Subject: [PATCH] Fix: display name issue on teams page and other miner issue (#1643) --- .../EntityInfoDrawer.component.tsx | 18 ------------------ .../ui/src/components/app-bar/Appbar.tsx | 8 ++++---- .../src/components/dropdown/DropDownList.tsx | 6 +++++- .../resources/ui/src/pages/teams/index.tsx | 5 ++--- .../src/main/resources/ui/src/styles/temp.css | 4 ++-- .../main/resources/ui/src/styles/x-master.css | 4 ++-- 6 files changed, 15 insertions(+), 30 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/EntityInfoDrawer/EntityInfoDrawer.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/EntityInfoDrawer/EntityInfoDrawer.component.tsx index 4cbe3ea6e06..dd200932e86 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/EntityInfoDrawer/EntityInfoDrawer.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/EntityInfoDrawer/EntityInfoDrawer.component.tsx @@ -15,7 +15,6 @@ import { AxiosError, AxiosResponse } from 'axios'; import classNames from 'classnames'; import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; -import { getDatabase } from '../../axiosAPIs/databaseAPI'; import { getPipelineByFqn } from '../../axiosAPIs/pipelineAPI'; import { getServiceById } from '../../axiosAPIs/serviceAPI'; import { getTableDetailsByFQN } from '../../axiosAPIs/tableAPI'; @@ -91,25 +90,8 @@ const EntityInfoDrawer = ({ 'columns', 'usageSummary', 'tableProfile', - 'database', ]) .then((res: AxiosResponse) => { - getDatabase(res.data.database.id, 'service') - .then((resDB: AxiosResponse) => { - getServiceById('databaseServices', resDB.data.service?.id).then( - (resService: AxiosResponse) => { - setServiceType(resService.data.serviceType); - } - ); - }) - .catch((err: AxiosError) => { - const msg = err.message; - showToast({ - variant: 'error', - body: - msg ?? `Error while getting ${selectedNode.name} details`, - }); - }); setEntityDetail(res.data); setIsLoading(false); }) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx index 5bfa1bb0a8e..14be62a9a20 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/app-bar/Appbar.tsx @@ -163,7 +163,7 @@ const Appbar: React.FC = (): JSX.Element => { return ( <> {isAuthenticatedRoute && isSignedIn ? ( -
+