0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
naz a2bfef53de
🐛 Fixed post resource filtering by posts_meta table fields (#12307)
refs #11572

- Filtering by fields coming from posts_meta table did not work for post resources. This was due to lack of support for these types of operations on NQL layer. The approach taken here is using same way filtering was done for many:many relations and generates a `WHERE IN` filtering clause. In the future we could look into adding preloading of 1:1 relations which should allow getting rid of `WHERE IN` in favor of `JOIN` and filtering directly by field names. 
- Changed structure of `EXPANSIONS` filter configuration. Current approach was based on "bag of all the things". Such structure will become problematic as more fields are added. For example, adding all the fields from 1:1 relation posts:posts_meta might collide with any other relations that would have similar naming like meta_description from tags table (if it were was added).
- Bumped nql version to 0.5.0. This adds filtering support to 1:1 relations
- Added filter expansions which can be unique per model Previous approach with single global expansions lookup wasn't working in case different models would need to declare expansion for same field names. Having a `filterExpansion` method per model works in a similar convention other filter related model methods do (e.g. enforcedFilters, defaultFilters)
2020-11-02 12:53:57 +13:00
..
adapters Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
api Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
data Fixed "no-shadow" linting error in server/data modules (#12288) 2020-10-20 11:56:46 +13:00
lib Updated Ghost versioning lib to include all prerelease IDs 2020-10-29 12:44:55 +00:00
models 🐛 Fixed post resource filtering by posts_meta table fields (#12307) 2020-11-02 12:53:57 +13:00
public 🐛 Fixed members form missing data-members-name (#12250) 2020-10-01 18:05:23 +01:00
services Included email-id as user variable when sending bulk emails via mailgun 2020-10-29 16:37:42 +00:00
translations Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
views Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
web Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
analytics-events.js
ghost-server.js Improved testmode logging of shutdown status 2020-08-18 15:48:42 +01:00
index.js Added routes.yaml content checksum storage to the db 2020-09-10 10:54:57 +12:00
overrides.js
update-check.js