Skip to content
代码片段 群组 项目
用户头像
Qingyu Zhao 编辑于
GitlabSubscription before_update callback `reset_seat_statistics` needs
to handle ultimate-trial-paid-customer plan differently. During the
ultimate-trial-paid-customer period, we want to continue the premium
plan's seat statistics and QSR, as if the namespace is still under the
premium plan. Thus we should not reset_seat_statistics when starts(and
expires) ultimate-trial-paid-customer plan. There are several scenarios:
- premium=>ultimate-trial-paid-customer, do not reset_seat_statistics
- ultimate-trial-paid-customer=>premium(not renewed), do not
  reset_seat_statistics,
- ultimate-trial-paid-customer=>premium(renewed), reset_seat_statistics
- ultimate-trial-paid-customer=>ultimate, reset_seat_statistics

Changelog: changed
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/137243
EE: true
b69ef71c
历史
名称 最后提交 最后更新