Skip to content

Commit 36429ec

Browse files
authored
Set last reviewed date and reviewer for finding
Update finding's last reviewed date and reviewer to maintain parity with UI behaviors
1 parent c7adb0c commit 36429ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dojo/api_v2/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ def notes(self, request, pk=None):
10991099
note_type=note_type,
11001100
)
11011101
note.save()
1102+
finding.last_reviewed = new_note.date
1103+
finding.last_reviewed_by = author
1104+
finding.save(update_fields=["last_reviewed", "last_reviewed_by"])
11021105
finding.notes.add(note)
11031106
# Determine if we need to send any notifications for user mentioned
11041107
process_tag_notifications(

0 commit comments

Comments
 (0)