0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/v2
Katharina Irrgang 9d7c3bd726
🐛 Fixed all known filter limitations (#10159)
refs #10105, closes #10108, closes https://github.com/TryGhost/Ghost/issues/9950, refs https://github.com/TryGhost/Ghost/issues/9923, refs https://github.com/TryGhost/Ghost/issues/9916, refs https://github.com/TryGhost/Ghost/issues/9574, refs https://github.com/TryGhost/Ghost/issues/6345, refs https://github.com/TryGhost/Ghost/issues/6309, refs https://github.com/TryGhost/Ghost/issues/6158, refs https://github.com/TryGhost/GQL/issues/16

- removed GQL dependency
- replaced GQL with our brand new NQL implementation
- fixed all known filter limitations
- GQL suffered from some underlying filter bugs, which NQL tried to fix
- the bugs were mostly in how we query the database for relation filtering
- the underlying problem was caused by a too simple implementation of querying the relations
- mongo-knex has implemented a more robust and complex filtering mechanism for relations
- replaced logic in our bookshelf filter plugin
- we pass the custom, default and override filters from Ghost to NQL, which then are getting parsed and merged into a mongo JSON object. The mongo JSON is getting attached by mongo-knex.

NQL: https://github.com/NexesJS/NQL
mongo-knex: https://github.com/NexesJS/mongo-knex
2018-12-11 11:53:40 +01:00
..
utils 🐛 Fixed all known filter limitations (#10159) 2018-12-11 11:53:40 +01:00
authors.js Renamed /users to /authors for Content API V2 (#10096) 2018-11-07 15:29:37 +01:00
configuration.js Added configuration controller to v2 API (#10056) 2018-12-04 09:27:36 +05:30
index.js Added configuration controller to v2 API (#10056) 2018-12-04 09:27:36 +05:30
integrations.js Added HTTP BREAD for integrations resource (#9985) 2018-10-18 14:03:56 +01:00
invites.js Corrected incorrect syntax for required propierties 2018-12-10 16:33:39 +01:00
mail.js Fixed mail api usage of the notifcations api 2018-10-24 13:18:51 +05:30
notifications.js Added notifications ctrl to v2 2018-10-12 21:13:20 +02:00
oembed.js Added oembed controller to v2 api (#10057) 2018-11-02 09:32:26 +01:00
pages.js Returned relative paths in html for Content API V2 by default (#10091) 2018-11-05 18:07:45 +01:00
posts.js Returned relative paths in html for Content API V2 by default (#10091) 2018-11-05 18:07:45 +01:00
preview.js Changed preview controller to support v0.1 and v2 2018-10-18 19:41:07 +02:00
roles.js
session.js Added spam prevention for v2 sessions (#10030) 2018-10-18 09:58:29 +01:00
settings.js 🐛 Protected Ghost blog against invalid uploaded routes.yaml (#10100) 2018-11-26 16:28:22 +07:00
slack.js Added slack controller to v2 API (#10086) 2018-11-06 23:20:43 +01:00
slugs.js
subscribers.js 🐛 Fixed missing filename when exporting subscribers csv 2018-10-27 18:39:39 +02:00
tags.js 🐛 Fixed pagination/duplicate posts and users appearing in admin area (#10031) 2018-10-18 10:05:51 +01:00
upload.js Added upload controller to v1 (#9997) 2018-10-12 22:41:39 +02:00
users.js 🐛 Fixed pagination/duplicate posts and users appearing in admin area (#10031) 2018-10-18 10:05:51 +01:00
webhooks.js Added edit webhook route to v2 Admin API (#10033) 2018-10-19 18:35:55 +01:00