diff --git a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js
index 292f124fb52..2547cbe49f8 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/common/common.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/common/common.js
@@ -186,7 +186,7 @@ export const testServiceCreationAndIngestion = (
cy.get('[data-testid="add-ingestion-container"]').should('be.visible');
if (isDatabaseService(type)) {
- cy.get('[data-testid="schema-filter-pattern-checkbox"]').should(
+ cy.get('[data-testid="configure-ingestion-container"]').should(
'be.visible'
);
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/bigquery.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/bigquery.spec.js
index cb40230a770..5273dc059e2 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/bigquery.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/bigquery.spec.js
@@ -71,9 +71,10 @@ describe('BigQuery Ingestion', () => {
};
const addIngestionInput = () => {
+
cy.get('[data-testid="schema-filter-pattern-checkbox"]')
- .scrollIntoView()
- .should('be.visible')
+ .invoke('show')
+ .trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.scrollIntoView()
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/glue.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/glue.spec.js
index 1c4735574e2..9fbae064c39 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/glue.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/glue.spec.js
@@ -47,8 +47,7 @@ describe('Glue Ingestion', () => {
const addIngestionInput = () => {
cy.get('[data-testid="schema-filter-pattern-checkbox"]')
- .scrollIntoView()
- .should('be.visible')
+ .invoke('show').trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.scrollIntoView()
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/kafka.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/kafka.spec.js
index 1b0d9a8e2b9..892ad3575c6 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/kafka.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/kafka.spec.js
@@ -40,7 +40,7 @@ describe('Kafka Ingestion', () => {
const addIngestionInput = () => {
cy.get('[data-testid="topic-filter-pattern-checkbox"]')
- .should('be.visible')
+ .invoke('show').trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-topic"]')
.should('be.visible')
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/metabase.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/metabase.spec.js
index 9ad559b455a..1e905a82d4c 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/metabase.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/metabase.spec.js
@@ -41,7 +41,7 @@ describe('Metabase Ingestion', () => {
const addIngestionInput = () => {
cy.get('[data-testid="dashboard-filter-pattern-checkbox"]')
- .should('be.visible')
+ .invoke('show').trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-dashboard"]')
.should('be.visible')
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/mysql.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/mysql.spec.js
index f05a2034602..a72b8053ad4 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/mysql.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/mysql.spec.js
@@ -27,7 +27,8 @@ describe('MySQL Ingestion', () => {
goToAddNewServicePage(SERVICE_TYPE.Database);
const addIngestionInput = () => {
- cy.get('[data-testid="schema-filter-pattern-checkbox"]').check();
+ // cy.get('[data-testid="filter-pattern-container"]').first().scrollIntoView().should('be.visible');
+ cy.get('[data-testid="schema-filter-pattern-checkbox"]').invoke('show').trigger('mouseover').check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.should('be.visible')
.type(Cypress.env('mysqlDatabaseSchema'));
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/postgres.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/postgres.spec.js
index afb859dc9cc..9688688e57b 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/postgres.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/postgres.spec.js
@@ -53,8 +53,7 @@ it('add and ingest data', () => {
const addIngestionInput = () => {
cy.get('[data-testid="schema-filter-pattern-checkbox"]')
- .scrollIntoView()
- .should('be.visible')
+ .invoke('show').trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.scrollIntoView()
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/redshiftWithDBT.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/redshiftWithDBT.spec.js
index e4677451f6e..d2f464b8a09 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/redshiftWithDBT.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/redshiftWithDBT.spec.js
@@ -48,7 +48,7 @@ describe('RedShift Ingestion', () => {
const addIngestionInput = () => {
// no schema or database filters
- cy.get('[data-testid="schema-filter-pattern-checkbox"]').check();
+ cy.get('[data-testid="schema-filter-pattern-checkbox"]').invoke('show').trigger('mouseover').check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.should('be.visible')
.type('dbt_jaffle');
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/snowflake.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/snowflake.spec.js
index ed3e9a16b5e..8e87c7915d3 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/snowflake.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/snowflake.spec.js
@@ -35,7 +35,7 @@ describe('Snowflake Ingestion', () => {
};
const addIngestionInput = () => {
- cy.get('[data-testid="schema-filter-pattern-checkbox"]').check();
+ cy.get('[data-testid="schema-filter-pattern-checkbox"]').invoke('show').trigger('mouseover').check();
cy.get('[data-testid="filter-pattern-includes-schema"]')
.should('be.visible')
.type(schema);
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/superset.spec.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/superset.spec.js
index 25f5af6227f..b3fb41fbac7 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/superset.spec.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/AddNewService/superset.spec.js
@@ -50,7 +50,7 @@ describe('Superset Ingestion', () => {
const addIngestionInput = () => {
cy.get('[data-testid="dashboard-filter-pattern-checkbox"]')
- .should('be.visible')
+ .invoke('show').trigger('mouseover')
.check();
cy.get('[data-testid="filter-pattern-includes-dashboard"]')
.should('be.visible')
diff --git a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.js b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.js
index 28aa7f1ba67..69d7e31d7f0 100644
--- a/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.js
+++ b/openmetadata-ui/src/main/resources/ui/cypress/e2e/Pages/DataQualityAndProfiler.js
@@ -104,7 +104,11 @@ describe('Data Quality and Profiler should work properly', () => {
.scrollIntoView()
.contains('Profiler Ingestion')
.click();
- cy.get('[data-testid="profileSample"]').should('be.visible').and('not.be.disabled').type(10);
+ cy.get('[data-testid="profileSample"]')
+ .scrollIntoView()
+ .should('be.visible')
+ .and('not.be.disabled')
+ .type(10);
cy.get('[data-testid="next-button"]')
.scrollIntoView()
.should('be.visible')
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.component.tsx
index 41305866458..916b94d5c7e 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/Users/Users.component.tsx
@@ -942,11 +942,11 @@ const Users = ({
) : (
{TITLE_FOR_NON_OWNER_ACTION}
- {!isClaimOwner ?Claim ownership in Manage
: null} - > - ); -}; - -export const getOwnerIds = ( - filter: Ownership, - userDetails: User, - nonSecureUserDetails: User -): Array@@ -534,47 +470,6 @@ export const getEntityMissingError = (entityType: string, fqn: string) => { ); }; -export const getDocButton = (label: string, url: string, dataTestId = '') => { - return ( - - ); -}; - export const getNameFromFQN = (fqn: string): string => { const arr = fqn.split(FQN_SEPARATOR_CHAR); @@ -824,13 +719,6 @@ export const getTeamsUser = ( return; }; -export const getDiffArray = ( - compareWith: string[], - toCompare: string[] -): string[] => { - return differenceWith(compareWith, toCompare, isEqual); -}; - export const getHostNameFromURL = (url: string) => { if (isValidUrl(url)) { const domain = new URL(url); @@ -1063,3 +951,33 @@ export const sortTagsCaseInsensitive = (tags: TagLabel[]) => { tag1.tagFQN.toLowerCase() < tag2.tagFQN.toLowerCase() ? -1 : 1 ); }; + +/** + * It returns a link to the documentation for the given filter pattern type + * @param {FilterPatternEnum} type - The type of filter pattern. + * @returns A string + */ +export const getFilterPatternDocsLinks = (type: FilterPatternEnum) => { + switch (type) { + case FilterPatternEnum.DATABASE: + case FilterPatternEnum.SCHEMA: + case FilterPatternEnum.TABLE: + return `https://docs.open-metadata.org/connectors/ingestion/workflows/metadata/filter-patterns/${FilterPatternEnum.DATABASE}#${type}-filter-pattern`; + + case FilterPatternEnum.DASHBOARD: + case FilterPatternEnum.CHART: + return 'https://docs.open-metadata.org/connectors/dashboard/metabase#6-configure-metadata-ingestion'; + + case FilterPatternEnum.TOPIC: + return 'https://docs.open-metadata.org/connectors/messaging/kafka#6-configure-metadata-ingestion'; + + case FilterPatternEnum.PIPELINE: + return 'https://docs.open-metadata.org/connectors/pipeline/airflow#6-configure-metadata-ingestion'; + + case FilterPatternEnum.MLMODEL: + return 'https://docs.open-metadata.org/connectors/ml-model/mlflow'; + + default: + return 'https://docs.open-metadata.org/connectors/ingestion/workflows/metadata/filter-patterns'; + } +};