Ghost/core/server/models/plugins
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
..
collision.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
custom-query.js Added ?paid query parameter to Admin API members browse endpoint (#11892) 2020-06-12 12:12:10 +01:00
eager-load.js Added support for ordering Post API resources by fields coming form posts_meta table (#12226) 2020-09-24 13:32:40 +12:00
filter.js 🐛 Fixed post resource filtering by posts_meta table fields (#12307) 2020-11-02 12:53:57 +13:00
has-posts.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
include-count.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
index.js Added support for ordering Post API resources by fields coming form posts_meta table (#12226) 2020-09-24 13:32:40 +12:00
order.js Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
pagination.js Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
search.js Added ?search= param to Admin API members endpoint (#11854) 2020-05-28 10:14:02 +01:00
transaction-events.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00