Create a concern for sharing methods between Order and Subscription
The following discussion from !1247 should be addressed:
-
@tyleramos started a discussion: (+1 comment) Suggestion: I realize now that this is on the order, we might be able to use the
product_rate_plan_id
on the order to determine if this is a dot com plan, rather than querying the subscription. Actually, going a bit further, there are a lot of methods on subscription that could apply to the order as well (belongs_to_gitlab_ee_plan?
,legacy_plan?
, etc). Basically anything that refers to the plan could be shared. It's a minor point as this way works too, but it would be more efficient to avoid the call to Zuora. I'm happy to tackle this in a followup issue though as we could move multiple methods to a concern shared between order and subscription.