0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
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
..
base Extracted ordering into separate bookshelf plugin 2020-09-22 16:27:12 +12:00
plugins Extracted ordering into separate bookshelf plugin 2020-09-22 16:27:12 +12:00
relations Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
action.js
api-key.js
author.js
email.js Revert "Store email batch and recipient records when sending newsletters (#12195)" 2020-09-21 17:02:59 +01:00
index.js Revert "Store email batch and recipient records when sending newsletters (#12195)" 2020-09-21 17:02:59 +01:00
integration.js
invite.js Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
label.js
member-stripe-customer.js Added error handling for failed member imports 2020-08-26 17:11:35 +12:00
member.js 🐛 Fixed incorrect status used for trial subscription query 2020-09-02 13:07:48 +01:00
mobiledoc-revision.js
permission.js
post.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
posts-meta.js
role.js
session.js
settings.js 🐛 Fixed importing Stripe Plans with amount 0 (#12062) 2020-07-20 14:59:23 +02:00
single-use-token.js Added SingleUseToken model (#12215) 2020-09-18 15:05:56 +01:00
stripe-customer-subscription.js Added error handling for failed member imports 2020-08-26 17:11:35 +12:00
tag-public.js
tag.js
user.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
webhook.js