Ghost/ghost/admin/app/adapters
Kevin Ansfield daa36a91b1
Fixed infinite save loop due to missing post_revisions include on saves (#18597)
refs edcd6caf2b
refs 56f2832754

- although we added an include for `post_revisions` when fetching a post for editing we didn't have the same `include` param added to saves meaning our revisions list was wiped from the store on each update
- on leaving the editor we check the last post revision to see if anything has changed and we need to save again, but with it being wiped and not being re-populated on save it meant the check always failed leading to an infinite loop of saves
- updated the posts and pages adapters to use the full includes param on create/update requests so we don't lose what we're trying to compare against
2023-10-12 19:16:45 +00:00
..
api-key.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
application.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
base.js Fixed API path generation for multi-segmented model names 2021-09-23 23:52:50 +01:00
collection.js Added /collections/slug/:slug Admin API endpoint 2023-07-24 14:27:17 +08:00
custom-theme-setting-list.js Added customThemeSettings service with all-records-in-one save request 2021-09-28 16:50:28 +01:00
email.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
embedded-relation-adapter.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
label.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
member.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
mention.js Added Mentions endpoint to Admin (#16136) 2023-01-17 20:16:18 +08:00
newsletter.js Fixed newsletter includes when adding or editing (#2365) 2022-05-05 11:31:45 +02:00
offer.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
page.js Fixed infinite save loop due to missing post_revisions include on saves (#18597) 2023-10-12 19:16:45 +00:00
post.js Fixed infinite save loop due to missing post_revisions include on saves (#18597) 2023-10-12 19:16:45 +00:00
setting.js 🐛 Fixed settings overriden when updated from multiple tabs (#15536) 2022-10-12 14:03:54 +01:00
snippet.js Wired lexical snippets to Ghost (#16647) 2023-04-17 17:39:04 +04:00
tag.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
theme.js Added visible theme errors in admin (#16081) 2023-01-06 13:44:27 +01:00
tier.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00
user.js Dropped use of @classic decorator in adapters 2022-09-02 19:14:40 +01:00