Add callback wrapper to fix bug of missing callback API
What does this MR do and why?
Add callback wrapper to fix bug of missing callback API
There is an edge case where callback payloads are sent to zoekt indexer but there is no GitLab url configured. In these instances, the callbacks will fail because GitLab url is nil.
This change adds a wrapper to protect against that scenario. If no GitLab url is configured, the callbacks become a no-op.
See this slack thread for context: https://gitlab.slack.com/archives/C3TMLK465/p1710786198178869
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by John Mason