Ghost/core/server/services
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
..
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 Removed models require from analytics job (#12689) 2021-02-22 12:10:19 +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 custom worker message handler 2021-02-22 20:02:00 +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 Hardcoded labs to always return members:true 2021-02-17 19:55:16 +13: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 Adding sentry logging to all ping errors 2021-02-19 14:00:50 +01:00