Ghost/test/regression/api/canary/admin
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
..
authentication_spec.js Improved error messaging for password reset process 2020-09-22 15:45:19 +12:00
db_spec.js Added missing canary test present in v3 tests 2020-12-01 09:35:24 +00:00
identities_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
images_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
labels_spec.js Added more specific error handling when adding duplicate labels 2020-06-05 00:23:10 +12:00
members_signin_url_spec.js Granted Admin users ability to impersonate member (#12132) 2020-08-18 14:17:56 +05:30
members_spec.js Added test coverage for members search 2020-10-16 13:10:40 +13:00
notifications_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
pages_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
posts_spec.js Added email.open_rate order option to posts api (#12439) 2020-12-03 20:13:37 +00:00
redirects_spec.js Added .yaml format support in redirects configuration (#12187) 2020-11-04 12:08:32 +13:00
schedules_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
settings_spec.js Added "email_track_opens" setting (#12404) 2020-11-23 18:36:12 +00:00
slack_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
users_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
utils.js Fixed backward compatibility for send_email_when_published (#12357) 2020-11-11 13:03:41 +00:00
webhooks_spec.js Fixed integration_id assignment for webhook when creating through API key auth 2020-08-04 16:43:24 +12:00