Ghost/core/server/services/email-analytics
Kevin Ansfield 42e452b127
Removed models require from analytics job (#12689)
refs https://github.com/TryGhost/Ghost/issues/12496

By requiring the models layer the shared logging util was being required as a side-effect causing the open file descriptors problem to continue. Removing logging from the models layer isn't feasible due to deep require chains spreading across the codebase, it's much quicker to remove the need for models in the analytics job.

- models layer was only needed because it's used by the session service
- updated analytics job to create it's own instance of `EmailAnalyticsService` rather than the default instance in order to pass in custom dependencies
- pass in custom `logging` object that uses `parentPort.postMessage` as a way of writing log output
- pass in custom `settings` object that returns settings that have been manually fetched and cached during job instantiation
2021-02-22 12:10:19 +00:00
..
jobs Removed models require from analytics job (#12689) 2021-02-22 12:10:19 +00:00
lib 🐛 Disabled auto-unsubscribe of members on permanent email failure events 2021-01-12 18:40:31 +00:00
providers Added guard for page.items existing in Mailgun response 2020-12-07 11:07:25 +00:00
email-analytics.js Added members.email_open_rate aggregation to email analytics (#12458) 2020-12-08 12:43:10 +00:00
index.js Added email analytics service (#12393) 2020-11-26 13:09:38 +00:00