Specify appropriate feature_category to Batched bg migrations
What does this MR do and why?
- This enables migrations inheriting from BatchedMigrationJob to have it's own feature_category.
- This attribute will be used in the next MR to display it in the metrics (or logs).
How to set up and validate locally
class TestMigrationJob < Gitlab::BackgroundMigration::BatchedMigrationJob
feature_category :delivery
end
TestMigrationJob.feature_category
=> :delivery
class TestMigrationJob2 < Gitlab::BackgroundMigration::BatchedMigrationJob
feature_category :gitaly
end
TestMigrationJob2.feature_category
=> :gitaly
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.
Related to #381897 (closed)
Edited by Prabakaran Murugesan