mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
ffd3ec563a
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 |
||
---|---|---|
.. | ||
advanced_browse_spec.js | ||
api_authentication_spec.js | ||
api_configuration_spec.js | ||
api_db_spec.js | ||
api_mail_spec.js | ||
api_notifications_spec.js | ||
api_posts_spec.js | ||
api_roles_spec.js | ||
api_schedules_spec.js | ||
api_settings_spec.js | ||
api_slugs_spec.js | ||
api_subscription_spec.js | ||
api_tags_spec.js | ||
api_themes_spec.js | ||
api_upload_spec.js | ||
api_users_spec.js |