Ghost/core
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
..
client@eb31c438d5 Recommend Node v4 & use as default (#7102) 2016-07-15 12:36:15 -06:00
server fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
shared move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
test fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
index.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00