0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/test/acceptance/old/admin
kirrg001 449bae9a48 🐛 Fixed missing "value" property for settings Admin API v2
closes #10518

- we had a very generic logic to remove "unwanted" null values
  - copied from v0.1
  - originally added in 7d4107fec4
- this logic transformed: settings = [{key: 'key', value: null}] to [{key: 'key'}], which is wrong
- i've removed this generic logic completely, because i don't know which purpose it serves
- if there a specific case where we want to remove null values, we should either use the JSON schema or use a specific serializer for the target resource
- added tests to proof that settings API behaves as it should
- one test failed because we removed the isNull logic -> if you send published_at = null on a published post
  - the model layer has a piece of logic to force a date if you set published_at to null if the status is published
  - protected
2019-03-04 20:06:53 +01:00
..
actions_spec.js Updated audience validation for admin api tokens (#10519) 2019-02-23 12:51:21 +01:00
config_spec.js Returned prefix for site & config response 2019-02-25 13:24:19 +01:00
db_spec.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
images_spec.js Combined /images* endpoints into /images/upload 2019-02-25 19:15:16 +07:00
integrations_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
invites_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
key_authentication_spec.js Removed requirement to provide authors for admin api keys 2019-02-25 09:16:32 +01:00
mail_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
notifications_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
oembed_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
pages_spec.js Fixed pages acceptance test 2019-03-04 14:53:15 +00:00
posts_spec.js Returned tags & authors by default for Admin API v2 2019-02-25 13:22:50 +01:00
roles_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
settings_spec.js 🐛 Fixed missing "value" property for settings Admin API v2 2019-03-04 20:06:53 +01:00
slugs_spec.js Reduced & moved acceptance tests for content API 2019-02-04 15:58:18 +01:00
tags_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00
themes_spec.js Renamed theme upload file field name 2019-02-25 13:26:03 +01:00
users_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
utils.js Updated Admin API key auth to require kid in header (#10538) 2019-02-26 11:03:47 +07:00
webhooks_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00