Replace event string with constant in Repository Replicator Strategy
requested to merge gitlab-community/gitlab:417608-improve-event-validation-repository-replicator-strategy into master
What does this MR do and why?
This MR modifies RepositoryReplicatorStrategy
where hardcoded strings was used to represent the 'created', 'updated' & 'deleted' event types.
The hardcoded string has been replaced with respective constants EVENT_CREATED
, EVENT_UPDATED
& EVENT_DELETED
to avoid potential typos or inconsistencies in the event type & potential bugs.
Related to #417608 (closed)
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Javiera Tapia