mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-21 23:58:06 +00:00
Sets default complianceType for new datasets to AUTO_PURGE. Fixes issue with logicalType comparision. Adds navbar styling for tabbed-navigation-list
This commit is contained in:
parent
094dfebf33
commit
45bb1216d6
@ -179,10 +179,10 @@ export default Component.extend({
|
||||
* @return {Boolean|*} Contains or does not
|
||||
*/
|
||||
ensureTypeContainsLogicalType: sourceEntities => {
|
||||
const logicalTypes = logicalTypes.map(type => type.toUpperCase());
|
||||
const logicalTypesInUppercase = logicalTypes.map(type => type.toUpperCase());
|
||||
|
||||
return sourceEntities.every(entity =>
|
||||
logicalTypes.includes(get(entity, 'logicalType')));
|
||||
logicalTypesInUppercase.includes(get(entity, 'logicalType')));
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
@ -49,8 +49,8 @@ export default Route.extend(ApplicationRouteMixin, {
|
||||
},
|
||||
|
||||
processLegacyDomOperations() {
|
||||
window.legacySearch();
|
||||
// TODO: DSS-6122 Refactor Remove tree legacy operations & references
|
||||
// window.legacySearch();
|
||||
// window.legacyTree();
|
||||
window.legacyMain();
|
||||
}
|
||||
|
@ -54,3 +54,14 @@
|
||||
.action-bar {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles a container list of navigation items
|
||||
*/
|
||||
.tabbed-navigation-list {
|
||||
white-space: nowrap;
|
||||
|
||||
&--tab {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,9 @@
|
||||
* Builds a privacyCompliancePolicy map with default / unset values for non null properties
|
||||
*/
|
||||
export const createPrivacyCompliancePolicy = () => {
|
||||
const complianceTypes = ['AUTO_PURGE', 'CUSTOM_PURGE', 'LIMITED_RETENTION', 'PURGE_NOT_APPLICABLE'];
|
||||
const policy = {
|
||||
// default to first item in compliance types list
|
||||
complianceType: complianceTypes.get('firstObject'),
|
||||
complianceType: 'AUTO_PURGE',
|
||||
compliancePurgeEntities: []
|
||||
};
|
||||
|
||||
@ -33,4 +32,4 @@ export const createSecuritySpecification = id => {
|
||||
};
|
||||
|
||||
return JSON.parse(JSON.stringify(securitySpecification));
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user