0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit
Kevin Ansfield 0c59b948fa
Added migrations for email analytics (#12387)
no issue

- cleans up unused tables `emails.{meta,stats}`
- adds timestamp columns `email_recipients.{delivered_at,opened_at,failed_at}` that can be used for event timelines and basic stats aggregation
  - indexed because we want to sort by these columns to find the "latest event" when limiting Mailgun events API requests
- adds aggregated stats columns `emails.{delivered_count,opened_count,failed_count}`
- adds a composite index on `email_recipients.[email_id,member_email]` to dramatically speed up `email_recipient` update queries when processing events
  - modifies the db initialisation to support an `'@@INDEXES@@'` key in table schema definition for composite indexes
2020-11-25 17:48:24 +00:00
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api Included all subscriptions in stripeSubscriptions (#12414) 2020-11-25 10:39:07 +00:00
apps Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
data Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
helpers Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
lib Refactored package-json lib into a class 2020-11-25 09:19:35 +00:00
models Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
server Fixed settings reinit to only emit changed settings events (#12184) 2020-09-23 14:35:03 +01:00
services Supported redirecting externally after signup (#12391) 2020-11-23 09:36:45 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Replaced constants file with @tryghost/constants 2020-08-11 12:51:16 +01:00