readthedocs.org icon indicating copy to clipboard operation
readthedocs.org copied to clipboard

Subscriptions: use djstripe for Plan and PlanFeature models

Open agjohnson opened this issue 2 years ago • 0 comments

Similar to #9312 we'll want to use djstripe for these models as well. This is a little bit more work, as there is no Stripe resource for PlanFeature.

  • [ ] Decide on mechanism for storing plan features programmatically -- options might include storing metadata values on the Plan instances
  • [ ] Update our feature detection code to use the new data and Stripe Plan objects
  • [ ] Again, monitor this heavily. This change might be more apt to break features for users. Be very careful of features for Pro plan users, which are the most likely to be gated behind PlanFeature conditionals. Any conditional feature should be tested before release or we risk bringing down user sites\
  • [ ] Bonus points if your plan can be feature flagged itself. Something to avoid releasing to production and affecting all high tier customers simultaneously.

agjohnson avatar Jun 08 '22 23:06 agjohnson