mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 14:37:52 +00:00
parent
00552f6d36
commit
22393c279a
@ -40,7 +40,6 @@ const PLACEHOLDER_ROUTE_PIPELINE_FQN = ':pipelineFQN';
|
|||||||
const PLACEHOLDER_ROUTE_DASHBOARD_FQN = ':dashboardFQN';
|
const PLACEHOLDER_ROUTE_DASHBOARD_FQN = ':dashboardFQN';
|
||||||
const PLACEHOLDER_ROUTE_DATABASE_FQN = ':databaseFQN';
|
const PLACEHOLDER_ROUTE_DATABASE_FQN = ':databaseFQN';
|
||||||
const PLACEHOLDER_ROUTE_SERVICE_FQN = ':serviceFQN';
|
const PLACEHOLDER_ROUTE_SERVICE_FQN = ':serviceFQN';
|
||||||
const PLACEHOLDER_ROUTE_SERVICE_TYPE = ':serviceType';
|
|
||||||
const PLACEHOLDER_ROUTE_SERVICE_CAT = ':serviceCategory';
|
const PLACEHOLDER_ROUTE_SERVICE_CAT = ':serviceCategory';
|
||||||
const PLACEHOLDER_ROUTE_SEARCHQUERY = ':searchQuery';
|
const PLACEHOLDER_ROUTE_SEARCHQUERY = ':searchQuery';
|
||||||
const PLACEHOLDER_ROUTE_TAB = ':tab';
|
const PLACEHOLDER_ROUTE_TAB = ':tab';
|
||||||
@ -132,8 +131,8 @@ export const ROUTES = {
|
|||||||
STORE: '/store',
|
STORE: '/store',
|
||||||
FEEDS: '/feeds',
|
FEEDS: '/feeds',
|
||||||
DUMMY: '/dummy',
|
DUMMY: '/dummy',
|
||||||
SERVICE: `/service/${PLACEHOLDER_ROUTE_SERVICE_CAT}/${PLACEHOLDER_ROUTE_SERVICE_TYPE}/${PLACEHOLDER_ROUTE_SERVICE_FQN}`,
|
SERVICE: `/service/${PLACEHOLDER_ROUTE_SERVICE_CAT}/${PLACEHOLDER_ROUTE_SERVICE_FQN}`,
|
||||||
SERVICE_WITH_TAB: `/service/${PLACEHOLDER_ROUTE_SERVICE_CAT}/${PLACEHOLDER_ROUTE_SERVICE_TYPE}/${PLACEHOLDER_ROUTE_SERVICE_FQN}/${PLACEHOLDER_ROUTE_TAB}`,
|
SERVICE_WITH_TAB: `/service/${PLACEHOLDER_ROUTE_SERVICE_CAT}/${PLACEHOLDER_ROUTE_SERVICE_FQN}/${PLACEHOLDER_ROUTE_TAB}`,
|
||||||
SERVICES: '/services',
|
SERVICES: '/services',
|
||||||
USERS: '/users',
|
USERS: '/users',
|
||||||
SCORECARD: '/scorecard',
|
SCORECARD: '/scorecard',
|
||||||
@ -195,14 +194,12 @@ export const getTableTabPath = (tableFQN: string, tab = 'schema') => {
|
|||||||
|
|
||||||
export const getServiceDetailsPath = (
|
export const getServiceDetailsPath = (
|
||||||
serviceFQN: string,
|
serviceFQN: string,
|
||||||
serviceType: string,
|
|
||||||
serviceCat: string,
|
serviceCat: string,
|
||||||
tab?: string
|
tab?: string
|
||||||
) => {
|
) => {
|
||||||
let path = tab ? ROUTES.SERVICE_WITH_TAB : ROUTES.SERVICE;
|
let path = tab ? ROUTES.SERVICE_WITH_TAB : ROUTES.SERVICE;
|
||||||
path = path
|
path = path
|
||||||
.replace(PLACEHOLDER_ROUTE_SERVICE_CAT, serviceCat)
|
.replace(PLACEHOLDER_ROUTE_SERVICE_CAT, serviceCat)
|
||||||
.replace(PLACEHOLDER_ROUTE_SERVICE_TYPE, serviceType)
|
|
||||||
.replace(PLACEHOLDER_ROUTE_SERVICE_FQN, serviceFQN);
|
.replace(PLACEHOLDER_ROUTE_SERVICE_FQN, serviceFQN);
|
||||||
|
|
||||||
if (tab) {
|
if (tab) {
|
||||||
|
@ -247,7 +247,6 @@ const DashboardDetailsPage = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DASHBOARD_SERVICES
|
ServiceCategory.DASHBOARD_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
|
@ -198,7 +198,6 @@ const DatasetDetailsPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DATABASE_SERVICES
|
ServiceCategory.DATABASE_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
|
@ -155,15 +155,14 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DATABASE_SERVICES
|
ServiceCategory.DATABASE_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: database.name,
|
name: getPartialNameFromFQN(database.name, ['database']),
|
||||||
url: getDatabaseDetailsPath(database.fullyQualifiedName),
|
url: getDatabaseDetailsPath(database.name),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: name,
|
name: name,
|
||||||
@ -208,7 +207,6 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
ServiceCategory.MESSAGING_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
@ -258,8 +256,7 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
ServiceCategory.DASHBOARD_SERVICES
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
||||||
@ -308,8 +305,7 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
ServiceCategory.PIPELINE_SERVICES
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
imgSrc: serviceType ? serviceTypeLogo(serviceType) : undefined,
|
||||||
@ -372,7 +368,6 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DATABASE_SERVICES
|
ServiceCategory.DATABASE_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
@ -381,8 +376,8 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: database.name,
|
name: getPartialNameFromFQN(database.name, ['database']),
|
||||||
url: getDatabaseDetailsPath(database.fullyQualifiedName),
|
url: getDatabaseDetailsPath(database.name),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: name,
|
name: name,
|
||||||
@ -429,7 +424,6 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
ServiceCategory.MESSAGING_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
@ -481,8 +475,7 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
ServiceCategory.DASHBOARD_SERVICES
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
imgSrc: serviceType
|
imgSrc: serviceType
|
||||||
@ -533,8 +526,7 @@ const EntityVersionPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
ServiceCategory.PIPELINE_SERVICES
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
imgSrc: serviceType
|
imgSrc: serviceType
|
||||||
|
@ -197,7 +197,6 @@ const PipelineDetailsPage = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.PIPELINE_SERVICES
|
ServiceCategory.PIPELINE_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
|
@ -157,7 +157,6 @@ const TopicDetailsPage: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.MESSAGING_SERVICES
|
ServiceCategory.MESSAGING_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
|
@ -181,7 +181,6 @@ const DatabaseDetails: FunctionComponent = () => {
|
|||||||
url: service.name
|
url: service.name
|
||||||
? getServiceDetailsPath(
|
? getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DATABASE_SERVICES
|
ServiceCategory.DATABASE_SERVICES
|
||||||
)
|
)
|
||||||
: '',
|
: '',
|
||||||
|
@ -209,7 +209,6 @@ const ServicePage: FunctionComponent = () => {
|
|||||||
history.push({
|
history.push({
|
||||||
pathname: getServiceDetailsPath(
|
pathname: getServiceDetailsPath(
|
||||||
serviceFQN,
|
serviceFQN,
|
||||||
serviceType,
|
|
||||||
serviceCategory,
|
serviceCategory,
|
||||||
servicePageTabs(getCountLabel())[currentTabIndex].path
|
servicePageTabs(getCountLabel())[currentTabIndex].path
|
||||||
),
|
),
|
||||||
|
@ -535,7 +535,6 @@ const ServicesPage = () => {
|
|||||||
<Link
|
<Link
|
||||||
to={getServiceDetailsPath(
|
to={getServiceDetailsPath(
|
||||||
service.name,
|
service.name,
|
||||||
service.serviceType || '',
|
|
||||||
serviceName
|
serviceName
|
||||||
)}>
|
)}>
|
||||||
<button>
|
<button>
|
||||||
|
@ -104,7 +104,6 @@ export const getEntityOverview = (
|
|||||||
value: service,
|
value: service,
|
||||||
url: getServiceDetailsPath(
|
url: getServiceDetailsPath(
|
||||||
service,
|
service,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DATABASE_SERVICES
|
ServiceCategory.DATABASE_SERVICES
|
||||||
),
|
),
|
||||||
isLink: true,
|
isLink: true,
|
||||||
@ -195,7 +194,6 @@ export const getEntityOverview = (
|
|||||||
value: service?.name as string,
|
value: service?.name as string,
|
||||||
url: getServiceDetailsPath(
|
url: getServiceDetailsPath(
|
||||||
service?.name as string,
|
service?.name as string,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.PIPELINE_SERVICES
|
ServiceCategory.PIPELINE_SERVICES
|
||||||
),
|
),
|
||||||
isLink: true,
|
isLink: true,
|
||||||
@ -238,7 +236,6 @@ export const getEntityOverview = (
|
|||||||
value: service?.name as string,
|
value: service?.name as string,
|
||||||
url: getServiceDetailsPath(
|
url: getServiceDetailsPath(
|
||||||
service?.name as string,
|
service?.name as string,
|
||||||
serviceType,
|
|
||||||
ServiceCategory.DASHBOARD_SERVICES
|
ServiceCategory.DASHBOARD_SERVICES
|
||||||
),
|
),
|
||||||
isLink: true,
|
isLink: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user