mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-28 01:12:41 +00:00
fix link to request dataset retention
This commit is contained in:
parent
333f0090a3
commit
5f657f3cbe
@ -3,13 +3,14 @@ import { datasetUrlByUrn } from 'wherehows-web/utils/api/datasets/shared';
|
|||||||
import { IDatasetRetention, IGetDatasetRetentionResponse } from 'wherehows-web/typings/api/datasets/retention';
|
import { IDatasetRetention, IGetDatasetRetentionResponse } from 'wherehows-web/typings/api/datasets/retention';
|
||||||
import { notFoundApiError } from 'wherehows-web/utils/api';
|
import { notFoundApiError } from 'wherehows-web/utils/api';
|
||||||
import { fleece } from 'wherehows-web/utils/object';
|
import { fleece } from 'wherehows-web/utils/object';
|
||||||
|
import { encodeUrn } from 'wherehows-web/utils/validators/urn';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the url for a datasets retention policy
|
* Constructs the url for a datasets retention policy
|
||||||
* @param {string} urn the urn for the dataset
|
* @param {string} urn the urn for the dataset
|
||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
const datasetRetentionUrlByUrn = (urn: string): string => `${datasetUrlByUrn(urn)}/retention`;
|
const datasetRetentionUrlByUrn = (urn: string): string => `${encodeUrn(datasetUrlByUrn(urn))}/retention`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches the list of retention policy for a dataset by urn
|
* Fetches the list of retention policy for a dataset by urn
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user