0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/core/server
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
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api 🐛 Fixed unexpected members-only content appearing in excerpt field (#12670) 2021-02-22 09:51:44 +00:00
data Removed stripe keys and analytics data from export (#12573) 2021-01-28 14:55:54 +05:30
lib Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
models 🐛 Fixed Member model removing labels when unset 2021-02-08 09:44:47 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Removed models require from analytics job (#12689) 2021-02-22 13:04:53 +00:00
translations Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Migrated jobs to use parentPort.postMessage 2021-02-22 13:02:41 +00:00
analytics-events.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
ghost-server.js 🐛 Fixed EADDRINUSE error handling on NodeJS >=13 (#12591) 2021-02-16 13:21:21 +00:00
index.js Prevented scheduling of recurring analytics jobs when not using emails (#12441) 2020-12-02 08:17:44 +00:00
overrides.js Improved threading performance on non-SQLite clients 2020-11-30 13:27:40 +13:00
update-check.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00