mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-16 19:33:41 +00:00
converts links to use config object
This commit is contained in:
parent
2509b1ce77
commit
a3b1ec4db4
@ -30,6 +30,12 @@ const minSelectableExpirationDate = new Date(Date.now() + millisecondDays());
|
|||||||
const maxSelectableExpirationDate = new Date(Date.now() + millisecondDays(7));
|
const maxSelectableExpirationDate = new Date(Date.now() + millisecondDays(7));
|
||||||
|
|
||||||
export default class DatasetAclAccess extends Component {
|
export default class DatasetAclAccess extends Component {
|
||||||
|
/**
|
||||||
|
* Named component argument with a string link reference to more information on acls
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
aclMoreInfoLink: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The currently logged in user is listed on the related datasets acl
|
* The currently logged in user is listed on the related datasets acl
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
@ -66,6 +66,12 @@ export default class DatasetController extends Controller {
|
|||||||
*/
|
*/
|
||||||
jitAclAccessWhitelist: Array<DatasetPlatform>;
|
jitAclAccessWhitelist: Array<DatasetPlatform>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* References the collection of help links with references to external pages of help information
|
||||||
|
* @type {Record<string, string>}
|
||||||
|
*/
|
||||||
|
wikiLinks: Record<string, string>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag indicating the dataset policy is derived from an upstream source
|
* Flag indicating the dataset policy is derived from an upstream source
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@ -140,8 +146,11 @@ export default class DatasetController extends Controller {
|
|||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
|
|
||||||
|
// defaults
|
||||||
this.tabSelected || (this.tabSelected = Tabs.Ownership);
|
this.tabSelected || (this.tabSelected = Tabs.Ownership);
|
||||||
this.jitAclAccessWhitelist || (this.jitAclAccessWhitelist = []);
|
this.jitAclAccessWhitelist || (this.jitAclAccessWhitelist = []);
|
||||||
|
this.wikiLinks || (this.wikiLinks = {});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -96,7 +96,8 @@ export default class DatasetRoute extends Route {
|
|||||||
isInternal: !!getConfig('isInternal'),
|
isInternal: !!getConfig('isInternal'),
|
||||||
jitAclAccessWhitelist: getConfig('JitAclAccessWhitelist') || [],
|
jitAclAccessWhitelist: getConfig('JitAclAccessWhitelist') || [],
|
||||||
shouldShowDatasetLineage: getConfig('shouldShowDatasetLineage'),
|
shouldShowDatasetLineage: getConfig('shouldShowDatasetLineage'),
|
||||||
shouldShowDatasetHealth: getConfig('shouldShowDatasetHealth')
|
shouldShowDatasetHealth: getConfig('shouldShowDatasetHealth'),
|
||||||
|
wikiLinks: getConfig('wikiLinks')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/jitaclfaq"
|
link=@aclMoreInfoLink
|
||||||
tooltip="Click for more information on ACL Access"
|
tooltip="Click for more information on ACL Access"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -175,7 +175,7 @@
|
|||||||
Compliance Purge Policy
|
Compliance Purge Policy
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/gdpr/deletions/purgePolicies"
|
link=@wikiLinks.purgePolicies
|
||||||
tooltip="Click for more information Purge Policies"
|
tooltip="Click for more information Purge Policies"
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
@ -212,6 +212,7 @@
|
|||||||
|
|
||||||
{{#if (or isReadOnly isInitialEditStep)}}
|
{{#if (or isReadOnly isInitialEditStep)}}
|
||||||
{{datasets/schemaless-tagging
|
{{datasets/schemaless-tagging
|
||||||
|
classificationHelpLink=@wikiLinks.dht
|
||||||
isEditable=(not isReadOnly)
|
isEditable=(not isReadOnly)
|
||||||
classification=(readonly complianceInfo.confidentiality)
|
classification=(readonly complianceInfo.confidentiality)
|
||||||
containsPersonalData=(readonly complianceInfo.containingPersonalData)
|
containsPersonalData=(readonly complianceInfo.containingPersonalData)
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
{{#if isJitAclAccessEnabled}}
|
{{#if isJitAclAccessEnabled}}
|
||||||
{{dataset-aclaccess
|
{{dataset-aclaccess
|
||||||
acls=acls
|
acls=acls
|
||||||
|
aclMoreInfoLink=@aclMoreInfoLink
|
||||||
hasValidAclRequest=hasValidAclRequest
|
hasValidAclRequest=hasValidAclRequest
|
||||||
userAclRequest=userAclRequest
|
userAclRequest=userAclRequest
|
||||||
userHasAclAccess=userHasAclAccess
|
userHasAclAccess=userHasAclAccess
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
datasetName=datasetName
|
datasetName=datasetName
|
||||||
schemaless=schemaless
|
schemaless=schemaless
|
||||||
platform=platform
|
platform=platform
|
||||||
|
wikiLinks=@wikiLinks
|
||||||
complianceInfo=complianceInfo
|
complianceInfo=complianceInfo
|
||||||
complianceSuggestion=complianceSuggestion
|
complianceSuggestion=complianceSuggestion
|
||||||
suggestionConfidenceThreshold=suggestionConfidenceThreshold
|
suggestionConfidenceThreshold=suggestionConfidenceThreshold
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
Dataset security classification
|
Dataset security classification
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/dht"
|
link=@classificationHelpLink
|
||||||
tooltip="information dataset security classification"
|
tooltip="information dataset security classification"
|
||||||
}}
|
}}
|
||||||
</h4>
|
</h4>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/gdpr-taxonomy#MetadataTaxonomyforDataSets-DatasetLevelTags"
|
link=@wikiLinks.gdprTaxonomy
|
||||||
tooltip="Click for more information on Dataset classification with examples"
|
tooltip="Click for more information on Dataset classification with examples"
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"IDs and PII in the schema"}}
|
"IDs and PII in the schema"}}
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/gdpr-pii"
|
link=@wikiLinks.gdprPii
|
||||||
tooltip="Click for more information on Schema field format and types"
|
tooltip="Click for more information on Schema field format and types"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@
|
|||||||
Field
|
Field
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/tms-schema"
|
link=@wikiLinks.tmsSchema
|
||||||
tooltip="Click for more information on Schema"
|
tooltip="Click for more information on Schema"
|
||||||
}}
|
}}
|
||||||
{{/head.column}}
|
{{/head.column}}
|
||||||
@ -337,7 +337,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{more-info
|
{{more-info
|
||||||
link="http://go/metadata-custom-regex"
|
link=@wikiLinks.metadataCustomRegex
|
||||||
tooltip="Click for more information on RegExp format"
|
tooltip="Click for more information on RegExp format"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|||||||
@ -149,6 +149,7 @@
|
|||||||
{{datasets/containers/dataset-compliance
|
{{datasets/containers/dataset-compliance
|
||||||
urn=encodedUrn
|
urn=encodedUrn
|
||||||
platform=model.platform
|
platform=model.platform
|
||||||
|
wikiLinks=wikiLinks
|
||||||
datasetName=model.nativeName
|
datasetName=model.nativeName
|
||||||
notifyPiiStatus=(action "onNotifyPiiStatus")
|
notifyPiiStatus=(action "onNotifyPiiStatus")
|
||||||
setOnChangeSetChange=(action "setOnChangeSetChange")
|
setOnChangeSetChange=(action "setOnChangeSetChange")
|
||||||
@ -158,7 +159,11 @@
|
|||||||
{{/tabs.tabpanel}}
|
{{/tabs.tabpanel}}
|
||||||
|
|
||||||
{{#tabs.tabpanel tabIds.Access}}
|
{{#tabs.tabpanel tabIds.Access}}
|
||||||
{{datasets/containers/dataset-acl-access urn=encodedUrn isJitAclAccessEnabled=isJitAclAccessEnabled}}
|
{{datasets/containers/dataset-acl-access
|
||||||
|
urn=encodedUrn
|
||||||
|
aclMoreInfoLink=wikiLinks.jitAcl
|
||||||
|
isJitAclAccessEnabled=isJitAclAccessEnabled
|
||||||
|
}}
|
||||||
{{/tabs.tabpanel}}
|
{{/tabs.tabpanel}}
|
||||||
|
|
||||||
{{#if shouldShowDatasetLineage}}
|
{{#if shouldShowDatasetLineage}}
|
||||||
|
|||||||
@ -12,6 +12,8 @@ interface IAppConfig {
|
|||||||
shouldShowDatasetHealth: boolean;
|
shouldShowDatasetHealth: boolean;
|
||||||
// confidence threshold for filtering out higher quality suggestions
|
// confidence threshold for filtering out higher quality suggestions
|
||||||
suggestionConfidenceThreshold: number;
|
suggestionConfidenceThreshold: number;
|
||||||
|
// collection of links to external help resource pages
|
||||||
|
wikiLinks: Record<string, string>;
|
||||||
tracking: {
|
tracking: {
|
||||||
isEnabled: boolean;
|
isEnabled: boolean;
|
||||||
trackers: {
|
trackers: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user