Ghost/ghost/core/test
Kevin Ansfield f98467611c
Added page html reset and re-render to handle dynamic collection card content (#18265)
no issue

Collection cards contain dynamic data that can change when there's any change to a published post but in Ghost all post/page content is rendered once on save and stored as a static string meaning we need a new approach for triggering a re-render of pages that plays well with caching.

- fixed typo in the relations/authors code that meant we weren't correctly calling the prototype method on the Post model inside the `onFetchedCollection` event handler
- updated Post model to clear the `html` field of all pages when saving or deleting a published post
- updated Post model to re-render `html` fields when fetching individual posts or a collection of posts
- modified `insertExtraPostsTags` fixture util to wrap it's concurrent post edits in a transaction otherwise MySQL errors because it hits a deadlock
2023-09-21 14:51:08 +00:00
..
e2e-api Added page html reset and re-render to handle dynamic collection card content (#18265) 2023-09-21 14:51:08 +00:00
e2e-browser Added Playwright tests for donations (#17699) 2023-08-15 15:20:18 +02:00
e2e-frontend Added newsletter payload serializer 2023-09-13 13:18:43 +08:00
e2e-server Disabled network retries for webmentions in tests (#18269) 2023-09-21 16:17:05 +02:00
e2e-webhooks Trimmed down Members Admin API response data 2023-09-13 13:18:43 +08:00
integration 🐛 Fixed collection card post excerpts (#18232) 2023-09-19 23:12:57 +00:00
regression Added new setting to enable Recommendations (#17856) 2023-08-30 08:56:21 +00:00
unit Updated page metadata to use author image over cover image (#17689) 2023-09-15 16:07:06 +02:00
utils Added page html reset and re-render to handle dynamic collection card content (#18265) 2023-09-21 14:51:08 +00:00
.eslintignore Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
.eslintrc.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00