Ghost/core/server/models/plugins
Nazar Gargol 84c8bcc457 Extracted ordering into separate bookshelf plugin
refs #11729

- Having a plugin allows to reason about ordering better and gives way
to further extraction away form the core.
- Just like with filtering, ordering falls into similar category of having effect on knex'es query builder object extension through additional statements - ORDER BY in this case.
- Because there were bugs associated with use of permittedAttributes inside of `parseOrderOption` method, introduced separate `orderAttributes` function which returns only those fields which are orderable (https://github.com/TryGhost/Ghost/issues/11729#issuecomment-685740836)
2020-09-22 16:27:12 +12: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
filter.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01: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 Extracted ordering into separate bookshelf plugin 2020-09-22 16:27:12 +12:00
order.js Extracted ordering into separate bookshelf plugin 2020-09-22 16:27:12 +12:00
pagination.js Skipped separate count query in .findPage() for limit="all" requests 2020-08-27 01:09:07 +01: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