0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core
Kevin Ansfield 4d20e466e5 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 13:04:53 +00:00
..
client@1a92852c4b Updated Ghost-Admin to v3.41.6 2021-02-17 17:22:39 +00:00
frontend Updated {{content}} helper partial template name 2021-02-09 14:05:49 +05:30
server Removed models require from analytics job (#12689) 2021-02-22 13:04:53 +00:00
shared Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
index.js Refactored server announce functions to be clearer 2020-08-09 17:25:15 +01:00