mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-29 03:25:58 +00:00
removes logical type validation
This commit is contained in:
parent
500b6ef513
commit
b287277c32
@ -726,12 +726,7 @@ export default Component.extend({
|
|||||||
validateFields() {
|
validateFields() {
|
||||||
const notify = get(this, 'notifications.notify');
|
const notify = get(this, 'notifications.notify');
|
||||||
const complianceEntities = get(this, policyComplianceEntitiesKey);
|
const complianceEntities = get(this, policyComplianceEntitiesKey);
|
||||||
const idFieldsHaveValidLogicalType = this.checkEachEntityByLogicalType(
|
|
||||||
complianceEntities.filter(({ identifierType }) =>
|
|
||||||
getIdTypeDataTypes(get(this, 'complianceDataTypes')).includes(identifierType)
|
|
||||||
),
|
|
||||||
[...genericLogicalTypes, ...idLogicalTypes]
|
|
||||||
);
|
|
||||||
const fieldIdentifiersAreUnique = isListUnique(complianceEntities.mapBy('identifierField'));
|
const fieldIdentifiersAreUnique = isListUnique(complianceEntities.mapBy('identifierField'));
|
||||||
const schemaFieldLengthGreaterThanComplianceEntities = this.isSchemaFieldLengthGreaterThanComplianceEntities();
|
const schemaFieldLengthGreaterThanComplianceEntities = this.isSchemaFieldLengthGreaterThanComplianceEntities();
|
||||||
|
|
||||||
@ -739,10 +734,6 @@ export default Component.extend({
|
|||||||
notify('error', { content: complianceDataException });
|
notify('error', { content: complianceDataException });
|
||||||
return Promise.reject(new Error(complianceDataException));
|
return Promise.reject(new Error(complianceDataException));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!idFieldsHaveValidLogicalType) {
|
|
||||||
return Promise.reject(notify('error', { content: missingTypes }));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user