mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-27 18:45:50 +00:00
removes logical type validation
This commit is contained in:
parent
500b6ef513
commit
b287277c32
@ -726,12 +726,7 @@ export default Component.extend({
|
||||
validateFields() {
|
||||
const notify = get(this, 'notifications.notify');
|
||||
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 schemaFieldLengthGreaterThanComplianceEntities = this.isSchemaFieldLengthGreaterThanComplianceEntities();
|
||||
|
||||
@ -739,10 +734,6 @@ export default Component.extend({
|
||||
notify('error', { content: 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