mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-22 16:18:10 +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
|
* @return {Boolean|*} Contains or does not
|
||||||
*/
|
*/
|
||||||
ensureTypeContainsLogicalType: sourceEntities => {
|
ensureTypeContainsLogicalType: sourceEntities => {
|
||||||
const logicalTypes = logicalTypes.map(type => type.toUpperCase());
|
const logicalTypesInUppercase = logicalTypes.map(type => type.toUpperCase());
|
||||||
|
|
||||||
return sourceEntities.every(entity =>
|
return sourceEntities.every(entity =>
|
||||||
logicalTypes.includes(get(entity, 'logicalType')));
|
logicalTypesInUppercase.includes(get(entity, 'logicalType')));
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -49,8 +49,8 @@ export default Route.extend(ApplicationRouteMixin, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
processLegacyDomOperations() {
|
processLegacyDomOperations() {
|
||||||
window.legacySearch();
|
|
||||||
// TODO: DSS-6122 Refactor Remove tree legacy operations & references
|
// TODO: DSS-6122 Refactor Remove tree legacy operations & references
|
||||||
|
// window.legacySearch();
|
||||||
// window.legacyTree();
|
// window.legacyTree();
|
||||||
window.legacyMain();
|
window.legacyMain();
|
||||||
}
|
}
|
||||||
|
@ -54,3 +54,14 @@
|
|||||||
.action-bar {
|
.action-bar {
|
||||||
margin-bottom: 20px;
|
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
|
* Builds a privacyCompliancePolicy map with default / unset values for non null properties
|
||||||
*/
|
*/
|
||||||
export const createPrivacyCompliancePolicy = () => {
|
export const createPrivacyCompliancePolicy = () => {
|
||||||
const complianceTypes = ['AUTO_PURGE', 'CUSTOM_PURGE', 'LIMITED_RETENTION', 'PURGE_NOT_APPLICABLE'];
|
|
||||||
const policy = {
|
const policy = {
|
||||||
// default to first item in compliance types list
|
// default to first item in compliance types list
|
||||||
complianceType: complianceTypes.get('firstObject'),
|
complianceType: 'AUTO_PURGE',
|
||||||
compliancePurgeEntities: []
|
compliancePurgeEntities: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user