Whom to show the gold banner
- Removal of the feature flag
::Feature.enabled?(:render_dashboard_gold_trial, default_enabled: true)
- The following discussion from !29014 (merged) should be addressed:
-
@a_akgun started a discussion: (+3 comments) @engwan should maybe we rename and fix
any_namespace_with_gold?
toowns_gold_namespace?
in order not to modify the targeting of the gold callouts?This has the benefit of confining the scope of the current MR to
namespaces.plan_id
deprecation and avoid changing the exposure of the callouts.::Namespace .where("namespaces.id IN (#{namespace_union})") .include_gitlab_subscription .where(gitlab_subscriptions: { hosted_plan: Plan.where(name: Plan::GOLD) })
Edited by Alper Akgun