Ghost/core
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
..
client@30e19e8c04 Updated Ghost-Admin to v3.39.0 2020-12-02 15:11:32 +00:00
frontend Pinned Portal to latest minor version 2020-12-01 16:16:14 +05:30
server Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +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