Fix trial callout to use the correct plan
What does this MR do?
namespaces.plan_id
is unused and we're trying to remove it in #196862 (closed)
As part of this, we needed to:
- Change the trial banner to show the correct plan from
gitlab_subscriptions
instead ofnamespaces.plan_id
. - Fix the callout to use the correct table for finding if a user owns a namespace with a paid plan.
- The old method was named
any_namespace_with_gold?
but it was actually checking if the user is an owner of any paid namespace. So we renamed this toowns_paid_namespace?
. - Because this could result in the callout being shown more often, add a feature flag for the whole callout.
- The old method was named
Edited by Heinrich Lee Yu