Skip to content
代码片段 群组 项目
提交 b69ef71c 编辑于 作者: Qingyu Zhao's avatar Qingyu Zhao 提交者: Adam Hegyi
浏览文件

Handle reset for ultimate-trial-paid-customer plan

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
上级 f9e2c8c4
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册