readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
8k stars 3.58k forks source link

Add historial records for `djstripe.models.Subscription` #11440

Closed humitos closed 2 months ago

humitos commented 3 months ago

Some time ago we wanted this in https://github.com/readthedocs/meta/issues/53#issuecomment-1234010087. It seems we wanted this to plot "historical number of subscriptions group by start_date and status".

This PR adds historial records to that model for now. If we are happy merging it, we can come back later and plot more questions related with historial data and project/organization fields.

Closes #53

humitos commented 3 months ago

I moved the code to subscriptions/models.py. Hrm... for some reason it doesn't generate a migration 🤷🏼

humitos commented 2 months ago

Closing this for now. We can come back when we want to plot this data again.