mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-23 17:39:59 +00:00
12 lines
431 B
TypeScript
12 lines
431 B
TypeScript
import { getDatasetUrnParts } from '@datahub/data-models/entity/dataset/utils/urn';
|
|
import { FabricType } from '@datahub/metadata-types/constants/common/fabric-type';
|
|
|
|
export const browsePaths = (_schema: any, request: any): Array<string> => {
|
|
const {
|
|
queryParams: { urn }
|
|
} = request;
|
|
|
|
const { platform, prefix = '', fabric = FabricType.PROD } = getDatasetUrnParts(urn);
|
|
return [`${fabric}/${platform}/${prefix}`];
|
|
};
|