Delete Marketo hook records from GitLab.com

Description

As part of cleaning up marketo-tools.gitlap.com (https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/2331), we want to get rid of the system hook that's pointed at it. Deleting it normally is not tenable right now (see the rationale in https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/2331#note_671931952), so it was changed the webhook type from SystemHook to ProjectHook so it's no longer discoverable by the application see: gitlab-com/gl-infra/production#5501 (closed).

We have to write a migration to:

  • On Gitlab.com, delete web_hook_logs records related to WebHook.find(67407)
  • On Gitlab.com, delete WebHook.find(67407) record.

WebHook.find(67407) should return type = 'ProjectHook', project_id = nil.

This is GitLab.com specific, shall we run this in the console as a Production Change?

Edited by Arturo Herrero