Ghost/core/test/unit/models
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
..
base 🐛 Fix last seen for users (#10141) 2018-11-13 18:27:10 +07:00
plugins 🐛 Fixed all known filter limitations (#10159) 2018-12-11 11:53:40 +01:00
api-key_spec.js Added refreshSecret method to ApiKey model (#9947) 2018-10-05 15:51:13 +07:00
invite_spec.js Respected hasUserPermissions & hasAppPermissions in invite model 2018-10-16 18:00:05 +02:00
permission_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
post_spec.js 🐛 Fixed all known filter limitations (#10159) 2018-12-11 11:53:40 +01:00
role_spec.js Stopped api key from assigning the 'Owner' role (#9971) 2018-10-12 15:38:57 +07:00
session_spec.js Removed user_id constraint when upserting session (#10085) 2018-10-30 16:15:48 +07:00
tag_spec.js Removed api integration tests (#9940) 2018-10-06 22:13:52 +02:00
user_spec.js 🐛 Fix last seen for users (#10141) 2018-11-13 18:27:10 +07:00
webhook_spec.js Removed api integration tests (#9940) 2018-10-06 22:13:52 +02:00