0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/test
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
..
functional feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
integration fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
unit fix test issues on node v6 (#7106) 2016-07-18 18:22:37 +01:00
utils feature: maintenance mode (#7019) 2016-07-15 17:22:41 +01:00
.jshintrc