Ghost/ghost/core/test/unit/server
Kevin Ansfield b447a26832
Added custom excerpt to post revisions (#20323)
closes https://linear.app/tryghost/issue/MOM-170

When the subtitle field is included in the editor it creates a disconnect with post revisions if the underlying custom excerpt data is not included so we'd like to both preview and restore the subtitle when the in-editor subtitle field is enabled.

- added `post_revisions.custom_excerpt` column to schema
- added migration to add `post_revisions.custom_excerpt` to existing databases
- added migration to populate `post_revisions.custom_excerpt` with the current `post.custom_excerpt` value from the associated record
  - ensures no data is inadvertently lost when restoring an old version
- using current data matches what would have happened previously where custom_excerpt was never overwritten when restoring an old version
- updated post revisions handling to accept the `custom_excerpt` field
- updated Admin's revision preview and restoration to display and set the `custom_excerpt` field
2024-06-05 14:47:33 +01:00
..
adapters Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
data Added custom excerpt to post revisions (#20323) 2024-06-05 14:47:33 +01:00
lib Upgraded to latest version of @tryghost/request 2023-09-26 12:45:14 +01:00
models Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
services Added caching to the LinkRedirectRepository (#20036) 2024-04-25 19:17:25 -07:00
web Added sanitization for svg uploads (#20264) 2024-05-28 08:58:16 -05:00
notify.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00