Correctly serialize BroadcastMessage for use with JsonCache
requested to merge 59208-upgrading-to-11-9-0-results-in-a-error-500-on-every-page-when-active-broadcast-message-present into master
What does this MR do?
This MR addresses an issue specifically for BroadcastMessage
when it is serialised by JsonCache
and stored in redis. When serialized for write, BroadcastMessage
removes the message_html
and cached_markdown_version
attributes but these are required when re-creating a BroadcastMessage` from the retrieved cached value.
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary [ ] Documentation created/updated via this MR[ ] Documentation reviewed by technical writer or follow-up review issue created-
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides [ ] Conforms to the database guides-
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer
Closes #59208 (closed)
Edited by Ash McKenzie