Ghost/ghost/admin/app/serializers
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
..
action.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
api-key.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
application.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
custom-theme-setting-list.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
integration.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
invite.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
label.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member.js Fixed odd behavior with saving complimentary members 2022-08-17 20:53:34 +05:30
newsletter.js Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
notification.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
page.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
post-revision.js Added custom excerpt to post revisions (#20323) 2024-06-05 14:47:33 +01:00
post.js Fixed Admin sending all post revisions along with each post save request (#18582) 2023-10-11 17:37:50 +00:00
role.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
setting.js Updated AdminX to sync data changes to Ember (#18327) 2023-09-25 17:29:09 +01:00
snippet.js 🐛 Fixed existing snippets not being available in beta editor 2023-06-06 12:56:33 +01:00
tag.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
theme.js Fixed Theme.errors clash with Ember Data Model's errors property (#16106) 2023-02-28 13:28:32 +00:00
tier.js Updated usage of the Tiers API (#2388) 2022-05-16 19:51:49 +01:00
user.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
webhook.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00