0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test
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
..
functional Tests: balance featured and none featured posts 2018-04-14 10:32:03 +02:00
integration Tests: balance featured and none featured posts 2018-04-14 10:32:03 +02:00
unit Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
utils Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
.eslintrc.json ESlint rule: no-multiple-empty-lines 2017-11-06 10:12:18 +00:00
.jshintrc