Skip to content

Store bare class name for batched migrations

What does this MR do?

Relates to #323768 (closed)

As a follow-up from the previous MR !54628 (merged), change the batched_background_migrations table to only store the unqualified class name for both job_class_name and batch_class_name.

This gives more flexibility and leaves it up to the application to look for the classes in the correct location(s). If the classes are moved into another module, or we introduce new modules in the future, we won't need to update the data in the database.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Patrick Bair

Merge request reports