Skip to content

Make badges in app/views/admin/background_migrations/ Pajamas-compliant

What does this MR do and why?

This MR changes badges in the background migrations view to use the Pajamas-compliant component.

Screenshots or screen recordings

No visual changes, screenshot for the context:

Screenshot_2021-12-16_at_23.56.24

Screenshot_2021-12-16_at_23.58.15

How to set up and validate locally

  1. Create a migration. Example:
Gitlab::Database::BackgroundMigration::BatchedMigration.create!(
  job_class_name: 'MyJobClass',
  table_name: 'projects',
  column_name: 'id',
  interval: 300,
  min_value: 5,
  max_value: 1000,
  batch_class_name: 'MyBatchClass',
  batch_size: 100,
  sub_batch_size: 10,
  job_arguments: %w[],
  status: 'failed',
)
  1. Go to Admin -> Monitoring -> Background migrations

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344378 (closed), #344383 (closed), #344321 (closed)

Edited by Anna Vovchenko

Merge request reports

Loading