RED-3343 - mandatory reason in backend
This commit is contained in:
parent
90cf58ca7e
commit
8aacbfe0ad
@ -451,7 +451,7 @@ export class AnnotationActionsService {
|
||||
type: annotation.type,
|
||||
positions: annotation.positions,
|
||||
addToDictionary: true,
|
||||
comment: { text: 'False Positive' },
|
||||
reason: 'False Positive',
|
||||
dictionaryEntryType: annotation.isRecommendation
|
||||
? DictionaryEntryTypes.FALSE_RECOMMENDATION
|
||||
: DictionaryEntryTypes.FALSE_POSITIVE,
|
||||
|
||||
@ -67,6 +67,7 @@ export class ManualRedactionService extends GenericService<IManualAddResponse> {
|
||||
const recommendations: List<IAddRedactionRequest> = annotations.map(annotation => ({
|
||||
addToDictionary: true,
|
||||
sourceId: annotation.annotationId,
|
||||
reason: 'False Positive',
|
||||
value: annotation.value,
|
||||
positions: annotation.positions,
|
||||
type: annotation.recommendationType,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user