0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit/server/services
Simon Backx a30e42404b
Added getLazyRelation model helper method (#14943)
closes https://github.com/TryGhost/Team/issues/1626

- getLazyRelation is a safer shorthand for `model.related('relationName').fetch()`
- prevents doing a `fetch` operation on a relation that is already loaded, which can cause issues when `formatOnWrite` has a custom implementation
- uses the already loaded relation if it exists, or loads the relation
- doesn't reload if already loaded
- reload is forceable using the forceRefresh option
2022-05-31 13:21:53 +02:00
..
adapter-manager
api-version-compatibility Fixed legacyApiPathMatch not working with subdirs 2022-05-10 13:57:06 +01:00
auth Swapped setup to use tiers API endpoint 2022-05-12 19:48:27 +01:00
frontend-data-service Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
mail Extracted email-content-generator into a package 2022-05-04 17:28:09 +08:00
mega Added getLazyRelation model helper method (#14943) 2022-05-31 13:21:53 +02:00
members Removed GA feature flags (#14915) 2022-05-26 09:54:30 +02:00
newsletters Fixed newsletter includes when adding or editing (#14696) 2022-05-05 11:20:15 +02:00
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
permissions
posts
redirects
route-settings Removed sync method from route settings loader 2022-04-28 15:37:09 +01:00
settings Added test coverage to settings bread service 2022-04-22 16:31:56 +08:00
stripe Removed settings that are no longer in use (#14802) 2022-05-13 21:19:21 +01:00
themes
url 🔥 Removed support for http/https mixed mode (#14783) 2022-05-11 14:53:23 +01:00
webhooks Improved assertions 2022-05-12 13:54:21 +08:00
labs.test.js Removed oauth experiment 2022-05-16 17:37:13 +01:00
limits.test.js Fixed incorrect usage of limit config causing Ghost not to boot 2022-05-10 15:47:45 -04:00
slack.test.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
xmlrpc.test.js