0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services
Fabien 'egg' O'Carroll f4cb5c57c6
Updated members_status_events table (#12647)
refs https://github.com/TryGhost/Ghost/issues/12602

* Updated members_status_events table

By replacing the `status` column with a `from_status` and `to_status`
column, we are able to track the changes between multiple statuses
easier, and accumulate the data. e.g. the delta of paid members in a
given time range is the sum of the `to_status` columns set to 'paid'
minus the sum of the `from_status` columns set to 'paid' within that
time range

* Updated MEGA to handle addition of 'comped' status

With the addition of the 'comped' status, we need to ensure that MEGA
will still send emails to the correct recipients. I've opted to use an
"inverse" filter, as that is the intention of the free/paid split in
MEGA - as far as MEGA is concerned, "free" is the opposite of "paid"

* Updated customQuery for MemberStatusEvent

With the `status` column replaced with `from_status` and `to_status`
this allows us to fix and update the customQuery to correctly accumulate
the data into deltas over time, broken down by day.

* Populated members_status_events table

As the table will be used to generate deltas, we need to backfill the
data so that existing sites will be able to sum up the deltas and
calculate correct data.

The assumptions used in backfilling is that a Member's current status,
is their only status.
2021-02-16 10:38:36 +00:00
..
adapter-manager Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
auth Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
bulk-email 🐛 Fixed reply-to address not set for newsletters 2021-01-05 17:58:55 +05:30
email-analytics 🐛 Disabled auto-unsubscribe of members on permanent email failure events 2021-01-12 18:40:31 +00:00
invitations 🐛 Fixed error caused by accepting invitation with existing email (#12172) 2020-09-09 11:58:53 +12:00
invites Refactored invites module into a class 2021-01-14 19:42:38 +13:00
jobs Added central error handler to job manager 2020-12-14 18:01:41 +13:00
mail Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
mega Updated members_status_events table (#12647) 2021-02-16 10:38:36 +00:00
members Added MemberPaidSubscriptionEvent model 2021-02-12 13:55:14 +00:00
notifications Fixed update check tests 2021-01-14 18:30:09 +13:00
permissions Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
settings Fixed settings reinit to only emit changed settings events (#12184) 2020-09-23 14:35:03 +01:00
webhooks Updated logging message for webhooks 2020-12-03 17:50:53 +00:00
labs.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
oembed.js Moved the OEmbed service to use our DI pattern 2021-01-15 15:35:30 +01:00
slack.js Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
users.js Moved the users service to use our DI pattern 2021-01-15 17:58:36 +01:00
xmlrpc.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00