Skip to content

Add callback wrapper to fix bug of missing callback API

John Mason requested to merge jm-test-coverage-callback-bug into main

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

Merge request reports