Sync vulnerability_reads when INSERT or DELETE happens in vulnerability_external_issue_links
Why are we doing this work
According to &12882 (comment 1782997506) we need to copy triggers from vulnerability_issue_links
to vulnerability_external_issue_links
so that vulnerability_reads.has_issues
gets updated when external issue trackers are enabled.
Implementation plan
- Use GitLab EventStore to emit events and handle the events in a subscriber - https://docs.gitlab.com/ee/development/event_store.html
Edited by Michał Zając