Ghost/core/server/models
Vijay Kandy ffd3ec563a fix: "url" field is undefined when restricting returned fields (#7089)
closes #6625

- "url" and "author" fields depend on {id, published_at, slug, author_id} to construct post url.
- implemented a generic solution by defining defaultColumnsToFetch() in
  base class for models.
- findPage() calls defaultColumnsToFetch() before loading models
- results are transformed by filtering out additional properties to return just the requested fields
- Added a test case to check for url and author fields
- Renamed allColumns as requestedColumns and used _.map instead of Promise.map
2016-07-18 22:21:47 +02:00
..
base fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
plugins change default order of posts (#7096) 2016-07-15 11:04:10 +01:00
accesstoken.js Add token added event, update last_login 2016-06-09 09:17:06 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js post-scheduling 2016-06-14 10:52:13 +02:00
index.js feature: when timezone changes, reschedule all posts 2016-06-10 14:58:19 +02:00
permission.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
post.js fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
refreshtoken.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
role.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00
settings.js improvement: migrations (#7000) 2016-07-14 11:59:42 +01:00
subscriber.js subscribers: fix adding subscriber from admin if collection is empty 2016-05-11 19:23:44 +02:00
tag.js internal tags feature 2016-06-11 09:12:04 -06:00
user.js deps: lodash@4.13.1 2016-06-11 13:13:55 -06:00