send dotStyleProperties and Style Editor Schemas when Push Publish#35659
Conversation
|
Claude finished @dario-daza's task in 2m 38s —— View job PR Review — Style Editor data lost during Push Publishing
The fix targets the right three sites (sender × 2, receiver × 1) and the unit test demonstrates the wire format survives both legs. A few things I'd want a second look at before merging: 1. Bundle-format compatibility (already raised by the rollback bot — confirm)The XML bundle has no version marker and no receiver-side "unknown element" warning. Two new payload pieces ride along:
A receiver still on N‑1 ignores both silently — the very failure mode this PR is fixing in reverse. The rollback comment from the bot describes the staged-rollout alternative; if that's not viable for this release, at minimum keep this in mind for the release notes (and for bundles queued in 2.
|
|
Pull Request Unsafe to Rollback!!!
|
|
Pull Request Unsafe to Rollback!!!
|
|
Pull Request Unsafe to Rollback!!!
|
Proposed Changes
This PR fixes data-loss bugs that caused the Style Editor to be non-functional on the receiver after a push publish operation.
DOT_STYLE_EDITOR_SCHEMAnot included in the bundleContentTypeBundler.javaStructureTransformercall with a directContentTypeAPI.find()call, which reads the fullContentTypefrom the database including themetadataJSONB column.dotStylePropertiesnot included in the bundleContentBundler.javanew HashMap<>()copy:dotStylePropertiesignored on the receiverHandlerUtil.javaMultiTreeobject, readdotStylePropertiesfrom the map and set it:Unit test added to check Push Publishing
A pure unit test (
BundlerUtilUnitTest) was added to verify thatdotStylePropertiesandDOT_STYLE_EDITOR_SCHEMAsurvive the full XStream XML round-trip (serialize → deserialize) that happens betweenContentBundler(sender) andContentHandler(receiver).This PR fixes: #35658
This PR fixes: #35658