Skip to content

Members::CreatorService to avoid saving without any change

What does this MR do and why?

Members::CreatorService to avoid saving Member object if there's no change. Calling ActiveRecord#save triggers update callbacks which enqueues unnecessary AuthorizedProjectsWorker during member creation / update.

Related to #353112 (closed).

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Merge request reports