0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
Katharina Irrgang dfd350bd69
Cleaned up Admin API v2 posts/pages input serializer (#10516)
no issue

- make use of filter instead of status=all or data.page
- nql was designed to filter data on database layer
- do not break v0.1
- we just got rid of the "status" query param, you should use the filter instead
- get rid of the ugly condition to remove page field if "fields" param was used
- allow filtering on model layer for "findOne"
  - do not allow filtering for "findOne" on API layer for now
  - the API controller defines what is allowed
  - the model layer can allow more by default
  - we can re-use the powerful filter logic without adding hacks
2019-02-22 12:07:34 +01:00
..
adapters Removed unit tests who use the database (#10407) 2019-01-22 13:36:30 +01:00
api Cleaned up Admin API v2 posts/pages input serializer (#10516) 2019-02-22 12:07:34 +01:00
apps Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
config Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
data Added migration to insert builtin Zapier integration (#10500) 2019-02-15 14:48:21 +00:00
helpers Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
lib Added optional support for HTML source 2019-02-21 13:27:47 +07:00
models Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
public Refactored Ghost SDK unit test 2018-10-05 16:49:46 +02:00
services Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
web Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
filters_spec.js Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00