0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test/api-acceptance/admin
Kevin Ansfield 021cfecb59
Fixed __GHOST_URL__ appearing in settings values after edit (#12738)
refs https://github.com/TryGhost/Ghost/pull/12736
refs https://github.com/TryGhost/Team/issues/467

knex's `parse()` method is only called on data when directly fetched from the db. This was causing problems when model instances are passed around via events for example because `.get('key')` will return data that was directly set on the model without having gone through the `parse()` transformations. The result of this inconsistency was settings appearing correct when Ghost started up but then being broken as soon as a setting was changed.

- moved absolute/relative->transform-ready URL transformations from the API input serializers to the model's `format()` method and replaced with a relative->absolute transform in API input serializers
    - results in consistency because `.get()` on a settings model will always return an URL
- removed transform-ready->absolute transforms from the API output serializers as that is now handled at the model-layer
2021-03-08 18:41:43 +00:00
..
actions_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
actions_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
config_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
db_spec.js Excluded member events tables from site exports 2021-03-05 11:41:00 +00:00
email_preview_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
emails_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
images_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
integrations_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
invites_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
key_authentication_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
key_authentication_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
labels_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
labels_spec_v3.js Added acceptance tests on the v3 api version. 2021-01-22 17:49:06 +01:00
mail_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
members_spec.js 🏗 Flattened members subscriptions data in API (#12581) 2021-02-02 16:12:53 +00:00
notifications_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
oembed_spec.js Changed URL protocol in oembed acceptance tests 2020-12-03 21:46:01 +00:00
pages_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
posts_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
roles_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
settings_spec.js Fixed __GHOST_URL__ appearing in settings values after edit (#12738) 2021-03-08 18:41:43 +00:00
slugs_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
snippets_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
tags_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
themes_spec.js Bumped gscan to 4.0.0-pre.1 2021-03-01 19:26:17 +13:00
users_spec.js Refactored acceptance tests to use async-await 2020-12-03 08:47:01 +00:00
utils.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00
utils_v3.js Added status property to members (#12570) 2021-02-02 16:11:34 +00:00
webhooks_spec.js Updated API versions used in regression test for webhooks 2021-03-04 13:06:16 +13:00