Skip to content

Refactored User#follow into a service

Ted Tran requested to merge gitlab-community/gitlab:refactor-user-follow into master

What does this MR do and why?

Refactor User#follow into a service

Gives more flexibility in error handling, can associate an HTTP status code with each error, and better separation of concerns.

Solves issue #375061

How to set up and validate locally

  1. Ensure pipelines pass

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ted Tran

Merge request reports