Record target entity ID with spam logs

What does this MR do and why?

Record the target ID of the entity spam was detected in (i.e. an issue, merge request, etc...) in the SpamLog record. The target entity type is already available in noteable_type.

References

See my internal only comment.

How to set up and validate locally

TODO on this for now - I updated the test cases but I'm not sure how to test spamcheck locally.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ruby Nealon

Merge request reports

Loading