0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server
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
..
adapters Improved JSDoc in default scheduler 2020-12-16 17:25:05 +13:00
api Added new browse email endpoint 2021-02-22 13:55:20 +05:30
data Made addUnique/dropUnique migration utils idempodent 2021-02-22 16:13:28 +13:00
lib Added mobiledoc.ghostVersion to blank mobiledoc document 2021-02-15 18:10:56 +00:00
models Fixed member status events query 2021-02-18 18:11:50 +05:30
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Removed models require from analytics job (#12689) 2021-02-22 12:10:19 +00:00
translations Added ability to install themes directly from GitHub (#12635) 2021-02-12 09:19:17 +00:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Added new browse email endpoint 2021-02-22 13:55:20 +05:30
analytics-events.js Added ability to install themes directly from GitHub (#12635) 2021-02-12 09:19:17 +00:00
ghost-server.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js