Trigger EE EventStore event when new members are added to a group
What does this MR do and why?
Related to #351423 (closed)
Needed for: https://gitlab.com/gitlab-org/gitlab/-/issues/348487
We want to be able to trigger an event for EE only subscribers so that we can send the user an email when they go over their purchased seat allowance.
Add an EE version of the EventStore configuration so that we can register an EE subscriber for the MembersAdded event. The handling of this event will be addressed in a follow up MR, currently this is just a no-op.
How to set up and validate locally
Groups
- Create or select a group in the GitLab UI
- Navigate to
Group Information > Members
- Add a user to the group
- Observe the
GitlabSubscriptions::NotifySeatsExceededWorker
has been run inlog/sidekiq.log
- Observe there are no retries for this worker at
http://localhost:3000/admin/sidekiq
- Observe there are no related errors in
log/exceptions_json.log
Projects
- Create or select a project in the GitLab UI
- Navigate to
Project Information > Members
- Add a user to the project
- Observe the
GitlabSubscriptions::NotifySeatsExceededWorker
has been run inlog/sidekiq.log
- Observe there are no retries for this worker at
http://localhost:3000/admin/sidekiq
- Observe there are no related errors in
log/exceptions_json.log
Restart GDK in FOSS_ONLY mode, and repeat the above steps - ensuring that the job is not triggered in this case.
FOSS_ONLY=1 gdk restart
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.