Ghost/core/test/unit/models
Katharina Irrgang 7273786459
Fetch relations by default when insert/updating posts (#9568)
no issue

- required for model events
- otherwise you won't receive a full data set
  - in worst case you have to re-fetch the post
- required for the url service
  - the url service always needs relations (authors,tags) to be able to generate the url properly

@IMPORTANT
- no API change, we still return what you are asking for
  - we first edit/add the resource
  - then we fetch the data with the API options
  - @TODO: this can be optimised and will improve performance
    	   picking/selecting it from the insert/update response
- this is an internal change
2018-04-15 12:12:20 +02:00
..
base Sanitize incoming model relation data 2018-04-05 18:51:58 +02:00
plugins Deleted bookshelf access plugin 2018-01-25 17:54:28 +01:00
post_spec.js Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
tag_spec.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
user_spec.js Extended the API object validation 2018-04-05 18:51:58 +02:00