Ghost/core/test/integration/api
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
..
advanced_browse_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_authentication_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_configuration_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_db_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_mail_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_notifications_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_posts_spec.js fix: "url" field is undefined when restricting returned fields (#7089) 2016-07-18 22:21:47 +02:00
api_roles_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_schedules_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_settings_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_slugs_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_subscription_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_tags_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_themes_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_upload_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
api_users_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00