Ensure customers portal admin is showing correct plan
Summary
It seems in some cases, the plan is showing as "Free" in customers portal even though when impersonating the customer or when checking GitLab.com directly, the plan is correct.
Example
- This customer shows as Free in admin: https://customers.gitlab.com/admin/customer/20280/list_gitlab_namespaces
- However impersonating the user shows that the subscription is associated to the appropriate group
8268789
- Checking the billing page in GitLab.com for the group also shows the correct plan.
Initially I thought it was because the relevant order was missing the plan id:
#<Order:0x00007ff5b41969d0
id: 13500,
customer_id: 20280,
product_rate_plan_id: nil,
However, even after doing a manual copy over using order.subscription.products.first.product_rate_plan_id
via console, the plan id is now showing correctly through console, but still showing free in admin.
What is the current bug behavior?
Wrong plan showing in customers admin.
What is the expected correct behavior?
Shows the plan of the group.
Reported examples
- The above example as per Slack (internal)