Replace hardcoded event string with constant in BlobReplicatorStrategy
requested to merge gitlab-community/gitlab:411316-improve-event-validation-for-replicator-strategies into master
What does this MR do and why?
This MR modifies BlobReplicatorStrategy
where hardcoded strings was used to represent the 'created' & 'deleted' event types.
The hardcoded string has been replaced with respective constants EVENT_CREATED
& EVENT_DELETED
to avoid potential typos or inconsistencies in the event type & potential bugs.
Issue: #411316 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
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 Mayank Singh