mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-09 09:02:12 +00:00
Added Looker service for UI (#441)
This commit is contained in:
parent
e7433262c1
commit
a53d876937
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -21,6 +21,7 @@ import athena from '../assets/img/service-icon-athena.png';
|
|||||||
import serviceDefault from '../assets/img/service-icon-generic.png';
|
import serviceDefault from '../assets/img/service-icon-generic.png';
|
||||||
import hive from '../assets/img/service-icon-hive.png';
|
import hive from '../assets/img/service-icon-hive.png';
|
||||||
import kafka from '../assets/img/service-icon-kafka.png';
|
import kafka from '../assets/img/service-icon-kafka.png';
|
||||||
|
import looker from '../assets/img/service-icon-looker.png';
|
||||||
import mssql from '../assets/img/service-icon-mssql.png';
|
import mssql from '../assets/img/service-icon-mssql.png';
|
||||||
import oracle from '../assets/img/service-icon-oracle.png';
|
import oracle from '../assets/img/service-icon-oracle.png';
|
||||||
import postgres from '../assets/img/service-icon-post.png';
|
import postgres from '../assets/img/service-icon-post.png';
|
||||||
@ -47,6 +48,7 @@ export const PRESTO = presto;
|
|||||||
export const KAFKA = kafka;
|
export const KAFKA = kafka;
|
||||||
export const PULSAR = pulsar;
|
export const PULSAR = pulsar;
|
||||||
export const SUPERSET = superset;
|
export const SUPERSET = superset;
|
||||||
|
export const LOOKER = looker;
|
||||||
export const SERVICE_DEFAULT = serviceDefault;
|
export const SERVICE_DEFAULT = serviceDefault;
|
||||||
|
|
||||||
export const PLUS = plus;
|
export const PLUS = plus;
|
||||||
@ -66,7 +68,7 @@ export const serviceTypes: Record<ServiceTypes, Array<string>> = {
|
|||||||
'Presto',
|
'Presto',
|
||||||
],
|
],
|
||||||
messagingServices: ['Kafka', 'Pulsar'],
|
messagingServices: ['Kafka', 'Pulsar'],
|
||||||
dashboardServices: ['Superset'],
|
dashboardServices: ['Superset', 'Looker'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const arrServiceTypes: Array<ServiceTypes> = [
|
export const arrServiceTypes: Array<ServiceTypes> = [
|
||||||
|
@ -41,4 +41,5 @@ export enum MessagingServiceType {
|
|||||||
|
|
||||||
export enum DashboardServiceType {
|
export enum DashboardServiceType {
|
||||||
SUPERSET = 'Superset',
|
SUPERSET = 'Superset',
|
||||||
|
LOOKER = 'Looker',
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
BIGQUERY,
|
BIGQUERY,
|
||||||
HIVE,
|
HIVE,
|
||||||
KAFKA,
|
KAFKA,
|
||||||
|
LOOKER,
|
||||||
MSSQL,
|
MSSQL,
|
||||||
MYSQL,
|
MYSQL,
|
||||||
ORACLE,
|
ORACLE,
|
||||||
@ -67,6 +68,9 @@ export const serviceTypeLogo = (type: string) => {
|
|||||||
case DashboardServiceType.SUPERSET:
|
case DashboardServiceType.SUPERSET:
|
||||||
return SUPERSET;
|
return SUPERSET;
|
||||||
|
|
||||||
|
case DashboardServiceType.LOOKER:
|
||||||
|
return LOOKER;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return SERVICE_DEFAULT;
|
return SERVICE_DEFAULT;
|
||||||
}
|
}
|
||||||
@ -190,6 +194,7 @@ export const getEntityCountByService = (buckets: Array<Bucket>) => {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case DashboardServiceType.SUPERSET:
|
case DashboardServiceType.SUPERSET:
|
||||||
|
case DashboardServiceType.LOOKER:
|
||||||
entityCounts.dashboardCount += bucket.doc_count;
|
entityCounts.dashboardCount += bucket.doc_count;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user