Skip to content

Clean up wrong max_seats_used batch two

What does this MR do and why?

Fix wrong max_seats_used values in a background migration script.

This is the same fix as we did in MR !78107 (merged) but this is the second batch.

MR !78107 (merged) covered gitlab_subscriptions with start_date >= 02-Aug-2021.

This MR covers gitlab_subscriptions with start_date < 02-Aug-2021.

This will be the last batch.

BTW: there is a dry-run output in https://gitlab.com/gitlab-org/gitlab/-/issues/351282#note_829210693. I've manually checked the output, and did not see anything wrong.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

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.

Related to #351282

Edited by Qingyu Zhao

Merge request reports