Skip to content

Commit 1363dd3

Browse files
don't (over)write status on comment event (#14208)
1 parent 6b2cc4c commit 1363dd3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dojo/jira_link/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ def check_for_and_create_comment(parsed_json):
285285
finding.notes.add(new_note)
286286
finding.jira_issue.jira_change = timezone.now()
287287
finding.jira_issue.save()
288-
finding.save()
288+
# Only update the timestamp, not other fields like 'active' to avoid
289+
# race conditions with concurrent webhook events (e.g. issue_updated)
290+
finding.save(update_fields=["updated"])
289291
return None
290292

291293

0 commit comments

Comments
 (0)