0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server
Fabien 'egg' O'Carroll a0a35df13b
Migrated members comped status to reflect subscriptions (#13285)
* Migrated members comped status to reflect subscriptions

refs https://github.com/TryGhost/Team/issues/995

Due to a bug in subscription handling, members with Complimentary stripe
subscriptions were incorrectly given a status of 'paid'.

The goal of this migration is to fix existing broken members, and it
will be accompanied by a fix which prevents the bug for future members.

Since we are updating the status properties for members, we must ensure
that we also update the relevant member_status_events entries too, so
that we do not have incompatible sums between events and statuses.

For example, if we were to use events to graph comped members over time,
we would want the current count to match the query on statuses:

`SELECT COUNT(*) FROM members WHERE status='comped';`
2021-09-06 18:56:44 +02:00
..
adapters Swapped to American English spellings 2021-07-27 12:15:19 +04:00
api Fixed usage of linkStripeCustomer for v3 API (#13288) 2021-09-06 14:18:11 +01:00
data Migrated members comped status to reflect subscriptions (#13285) 2021-09-06 18:56:44 +02:00
lib Removed unused internal request lib 2021-08-26 14:21:27 +02:00
models Fixed 'sent' status setting when publishing a post 2021-08-26 22:25:45 +04:00
public Added /email/ route to robots.txt 2021-08-10 13:45:53 +04:00
services Removed i18t dependency from post scheduling service 2021-09-04 07:49:11 +12:00
views
web Added Members bulk actions endpoint 2021-08-23 16:38:21 +02:00
analytics-events.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
ghost-server.js
notify.js
overrides.js
run-update-check.js
update-check.js