0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/integration/model
kirrg001 bda76acba6 Extended the API object validation
refs #9548

- do not forward `tag.parent` to the model layer
  - the model layer should only know `tag.parent_id`
  - and the API should only expose `tag.parent` (this is an API feature)
  - currently Ghost has a mixture of using `toJSON` and the API validation layer for this
  - we just continue with this for now (no time to fix this)
- disallow sending nested-nested relations
  - unsupported
  - see comment for more information
  - this can cause problems with calling `hasChanged` on relations
- add unit tests
2018-04-05 18:51:58 +02:00
..
base Update Notification improvements (#9123) 2018-01-09 15:20:00 +01:00
model_accesstoken_spec.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
model_app-fields_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_app-settings_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_apps_spec.js Moved pipeline/sequence to lib/promise 2017-12-13 22:20:02 +01:00
model_invite_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_permissions_spec.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
model_posts_spec.js Extended the API object validation 2018-04-05 18:51:58 +02:00
model_roles_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
model_settings_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
model_tags_spec.js Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
model_users_spec.js Removed isNew usages in model layer 2018-02-15 22:11:49 +01:00