diff --git a/openmetadata-ui/src/main/resources/ui/.eslintrc.yaml b/openmetadata-ui/src/main/resources/ui/.eslintrc.yaml
index b29f9821f68..69daa657571 100644
--- a/openmetadata-ui/src/main/resources/ui/.eslintrc.yaml
+++ b/openmetadata-ui/src/main/resources/ui/.eslintrc.yaml
@@ -55,6 +55,8 @@ rules:
- error
- smart
+ no-console: 2
+
# Require a whitespace at the beginning of a comment
spaced-comment:
- error
diff --git a/openmetadata-ui/src/main/resources/ui/.prettierrc.yaml b/openmetadata-ui/src/main/resources/ui/.prettierrc.yaml
index dc3b29f71e8..513ac9f45f7 100644
--- a/openmetadata-ui/src/main/resources/ui/.prettierrc.yaml
+++ b/openmetadata-ui/src/main/resources/ui/.prettierrc.yaml
@@ -15,4 +15,3 @@ tabWidth: 2
jsxBracketSameLine: true
htmlWhitespaceSensitivity: 'strict'
singleQuote: true
-endOfLine: 'auto'
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.component.tsx
deleted file mode 100644
index 2671acdccc2..00000000000
--- a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.component.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2022 Collate.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { useForm } from 'antd/lib/form/Form';
-import AddGlossaryTermForm from 'components/AddGlossaryTermForm/AddGlossaryTermForm.component';
-import { t } from 'i18next';
-import React from 'react';
-import { PageLayoutType } from '../../enums/layout.enum';
-import TitleBreadcrumb from '../common/title-breadcrumb/title-breadcrumb.component';
-import PageLayout from '../containers/PageLayout';
-import { AddGlossaryTermProps } from './AddGlossaryTerm.interface';
-
-const AddGlossaryTerm = ({
- glossaryData,
- onCancel,
- slashedBreadcrumb,
- isLoading,
-}: AddGlossaryTermProps) => {
- const fetchRightPanel = () => {
- return (
- <>
-
-
- );
-};
-
-export default AddGlossaryTerm;
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.interface.ts b/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.interface.ts
deleted file mode 100644
index 9ff28e25052..00000000000
--- a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.interface.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright 2022 Collate.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { CreateGlossaryTerm } from '../../generated/api/data/createGlossaryTerm';
-import { Glossary } from '../../generated/entity/data/glossary';
-import { GlossaryTerm } from '../../generated/entity/data/glossaryTerm';
-import { TitleBreadcrumbProps } from '../common/title-breadcrumb/title-breadcrumb.interface';
-
-export interface AddGlossaryTermProps {
- parentGlossaryData: GlossaryTerm | undefined;
- glossaryData: Glossary;
- isLoading: boolean;
- onSave: (value: CreateGlossaryTerm) => void;
- onCancel: () => void;
- slashedBreadcrumb: TitleBreadcrumbProps['titleLinks'];
-}
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.test.tsx
deleted file mode 100644
index 1a99611b509..00000000000
--- a/openmetadata-ui/src/main/resources/ui/src/components/AddGlossaryTerm/AddGlossaryTerm.test.tsx
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright 2022 Collate.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { fireEvent, getByTestId, render } from '@testing-library/react';
-import React, { forwardRef } from 'react';
-import {
- mockedGlossaries,
- mockedGlossaryTerms,
-} from '../../mocks/Glossary.mock';
-import AddGlossaryTerm from './AddGlossaryTerm.component';
-
-jest.mock('rest/glossaryAPI', () => ({
- addGlossaries: jest.fn().mockImplementation(() => Promise.resolve()),
-}));
-
-jest.mock('../common/rich-text-editor/RichTextEditorPreviewer', () => {
- return jest.fn().mockReturnValue(
- )}
-
- );
-};
-
-export default AddGlossaryTermPage;
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/AddGlossaryTermPage/AddGlossaryTermPage.test.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/AddGlossaryTermPage/AddGlossaryTermPage.test.tsx
deleted file mode 100644
index 355409402a3..00000000000
--- a/openmetadata-ui/src/main/resources/ui/src/pages/AddGlossaryTermPage/AddGlossaryTermPage.test.tsx
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright 2022 Collate.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { findByText, fireEvent, render } from '@testing-library/react';
-import React from 'react';
-import { getGlossaryPath } from '../../utils/RouterUtils';
-import AddGlossaryTermPage from './AddGlossaryTermPage.component';
-
-const mockRedirect = jest.fn((fqn) => fqn);
-
-jest.mock('react-router', () => ({
- ...jest.requireActual('react-router'),
- useHistory: () => ({
- push: jest.fn(),
- goBack: jest.fn(),
- }),
- useParams: jest.fn().mockImplementation(() => ({
- glossaryName: 'GlossaryName',
- glossaryTermsFQN: '',
- })),
-}));
-
-jest.mock('components/AddGlossaryTerm/AddGlossaryTerm.component', () => {
- return jest.fn().mockImplementation(({ onCancel, onSave }) => (
-