Create system notes for compliance violations

Description

  1. Create system notes whenever the status of the compliance violation is updated.
  2. Create system notes whenever an issue is linked or unliked from a compliance violation.
  3. These system notes would be used as shown in this design

image

Proposal

We can probably refer zoom_service and create a similar class for compliance violations, it should handle the meta aspects of the system note by default (like icons, marking it as a system note etc.)

create_note(NoteSummary.new(noteable, project, author, _('linked issue #{issue.title} to this compliance violation'), action: 'relate'))

Edited by 🤖 GitLab Bot 🤖