Batched background migrations: Make PrimaryKeyBatchingStrategy easy to extend
What does this MR do and why?
This MR makes it easy to sub-class PrimaryKeyBatchingStrategy
and add additional filters.
Example:
class TypeIsNotNull < PrimaryKeyBatchingStrategy
def apply_additional_filters(relation)
relation.where.not(type: nil)
end
end
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.