diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts index b209defe619..2d1a48d77f2 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts @@ -819,6 +819,8 @@ test.describe('Glossary tests', () => { }); test('Request tags for Glossary', async ({ browser }) => { + test.slow(true); + const { page, afterAction, apiContext } = await performAdminLogin(browser); const { page: page1, afterAction: afterActionUser1 } = await performUserLogin(browser, user2); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreTree/ExploreTree.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreTree/ExploreTree.tsx index 00a3a8df26a..8445f9b3bd6 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreTree/ExploreTree.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Explore/ExploreTree/ExploreTree.tsx @@ -13,7 +13,7 @@ import { Tree, Typography } from 'antd'; import { AxiosError } from 'axios'; import classNames from 'classnames'; -import { isString, isUndefined } from 'lodash'; +import { isEmpty, isString, isUndefined } from 'lodash'; import Qs from 'qs'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useParams } from 'react-router-dom'; @@ -76,7 +76,7 @@ const ExploreTree = ({ onFieldValueSelect }: ExploreTreeProps) => { return searchClassBase.getExploreTreeKey(tab as ExplorePageTabs); }, [tab]); - const [searchQueryParam, defaultServiceType] = useMemo(() => { + const [parsedSearch, searchQueryParam, defaultServiceType] = useMemo(() => { const parsedSearch = Qs.parse( location.search.startsWith('?') ? location.search.substring(1) @@ -89,7 +89,7 @@ const ExploreTree = ({ onFieldValueSelect }: ExploreTreeProps) => { ? parsedSearch.search : ''; - return [searchQueryParam, defaultServiceType]; + return [parsedSearch, searchQueryParam, defaultServiceType]; }, [location.search]); const handleChangeSearchIndex = ( @@ -299,6 +299,13 @@ const ExploreTree = ({ onFieldValueSelect }: ExploreTreeProps) => { fetchEntityCounts(); }, []); + useEffect(() => { + // Tree works on the quickFilter, so we need to reset the selectedKeys when the quickFilter is empty + if (isEmpty(parsedSearch.quickFilter)) { + setSelectedKeys([]); + } + }, [parsedSearch]); + return (