0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
Kevin Ansfield 9ff7423b2b
Added email.open_rate order option to posts api (#12439)
refs https://github.com/TryGhost/Ghost/issues/12420

- updated `order` bookshelf plugin's `parseOrderOption()` method to return multiple order-related properties
  - `order` same as before, a key-value object of property-direction
  - `orderRaw` new property that is a raw SQL order string generated from `orderRawQuery()` method in models
  - `eagerLoad` new property that is an array of properties the `eagerLoad` plugin should use to join across
- updated `pagination.fetchAll()` to apply normal order + raw order if both are available and to handle eager loading / joins when `options.eagerLoad` is populated
- updated post model to include details for email relationship and to add `orderRawQuery()` that allows `email.open_rate` to be used as an order option
2020-12-03 20:13:37 +00:00
..
adapters Fixed malformatted JSDoc {Object} parameters 2020-11-30 17:18:13 +13:00
api Added emailAnalytics config feature flag (#12443) 2020-12-02 13:22:12 +00:00
data Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
lib Added JSDoc comments into package-json lib 2020-11-25 11:29:04 +00:00
models Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
public Enabled Portal (#12317) 2020-11-03 14:36:21 +05:30
services Updated logging message for webhooks 2020-12-03 17:50:53 +00:00
translations Updated redirect error message 2020-11-04 12:26:22 +13:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Added support for graceful job shutdown and worker threads 2020-11-23 17:17:49 +13:00
analytics-events.js
ghost-server.js Improved job queue logging 2020-11-25 13:28:13 +13: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