Fix incorrect max_seats_used values
What does this MR do and why?
For issue #345894+
In https://gitlab.com/gitlab-org/gitlab/-/issues/334132 it was
identified that the max_seats_used
of GitlabSubscription
was not
correctly resetting when a new term starts (e.g. subscription renewal)
The wrong resetting logic was fixed by https://gitlab.com/gitlab-org/gitlab/-/issues/334132.
This MR fix the existing wrong max_seats_used
values in a background
migration script.
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #345894
Edited by Qingyu Zhao