RED-3343 - mandatory reason in backend

This commit is contained in:
Timo Bejan 2022-04-25 14:28:54 +03:00
parent 90cf58ca7e
commit 8aacbfe0ad
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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,