youtube image
From YouTube: BE Pairing - 2023-08-02 EMEA/APAC - Refactoring a callback into a service

Description

Discussing the newly-merge styleguide recommendation to avoid Rails callbacks: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/125836

Specifically as it relates to an in-progress MR that adds a callback: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/127497#note_1489574714

We refactored this callback into a service class, draft MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/128215