mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-02 13:53:06 +00:00
fixes issue with low confidence suggestion not being filtered out for review required fields
This commit is contained in:
parent
4cb324861a
commit
96422df404
@ -22,6 +22,7 @@ import {
|
||||
} from 'wherehows-web/typings/app/dataset-columns';
|
||||
import { IDatasetColumn } from 'wherehows-web/typings/api/datasets/columns';
|
||||
import { ComplianceFieldIdValue } from 'wherehows-web/constants/datasets/compliance';
|
||||
import { isHighConfidenceSuggestion } from 'wherehows-web/utils/datasets/compliance-suggestions';
|
||||
|
||||
/**
|
||||
* Defines a map of values for the compliance policy on a dataset
|
||||
@ -199,8 +200,8 @@ const tagNeedsReview = (complianceDataTypes: Array<IComplianceDataType>) =>
|
||||
return true;
|
||||
}
|
||||
|
||||
// Check that suggestion exists and the identifierType does not match the change set item
|
||||
if (suggestion && suggestion.identifierType !== identifierType) {
|
||||
// Check that a hi confidence suggestion exists and the identifierType does not match the change set item
|
||||
if (suggestion && suggestion.identifierType !== identifierType && isHighConfidenceSuggestion(suggestion)) {
|
||||
isReviewRequired = isReviewRequired || !suggestionAuthority;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user