Some expired trials are not downgraded to free
Bug
Summary
We recently had a free group that was unable to transfer their group due to this bug. Additionally, the group's plan was on a trial that showed that it expired in 2020. This group should've been downgraded to free when the group's trial expired. It seems like this was largely fixed here, but there are some cases where we still have to manually downgrade to free using this mechanizer workflow.
Additional context in Slack and additional examples can be found in https://gitlab.com/gitlab-org/gitlab/-/issues/372074#note_1081405016.
Steps to reproduce
N/A
What is the current bug behavior?
When a customer is on a temporary trial, they seem to be able to continue on this trial even after it expires.
What is the expected correct behavior?
When a trial ends:
- If the customer has no active paid plan, revert to Free plan.
- If the customer has a currently active paid plan, revert to this plan. (NOTE: this is not currently relevant, but will be once Allow Premium customers to apply an Ultimate tr... (gitlab#12186 - closed) is in place, so we need to make sure this use case is accounted for)
This way, all trial functionality is appropriately de-provisioned when the trial ends.
Relevant logs and/or screenshots
See this comment
Workarounds
Use this mechanizer workflow to downgrade a namespace from an expired trial to free.
Reported examples
- https://gitlab.com/gitlab-com/support/internal-requests/-/issues/14836
- https://gitlab.com/gitlab-com/support/internal-requests/-/issues/15586
- https://gitlab.com/gitlab-com/support/internal-requests/-/issues/15712
- #4390 (comment 1069470643)
- https://gitlab.zendesk.com/agent/tickets/350967
- https://gitlab.zendesk.com/agent/tickets/352717
- https://gitlab.zendesk.com/agent/tickets/353952
- https://gitlab.zendesk.com/agent/tickets/372786
Support Priority Score: (-, -, -, -, -, -, -, -, -, -, -) => 11