Repository navigation
Read the incoming template in a content preview from the file - #1203
Merged
Merged
Conversation
The incoming side of the content preview took the template from the deserialized item, which only gets one the site already has. When the template is coming in the same sync (or is missing) the visual preview showed no template on either side and "No values change", while the details listed the template change. Read the alias from the uSync file's Info/Template instead, falling back to the item when the file has no Template element. Found via Jumoo/uSync.Complete#222. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 7, 2026
This was referenced Nov 9, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found via Jumoo/uSync.Complete#222.
Problem
Pushing content whose template isn't on the target yet: the details list
Template (Blank) → allProperties, but the visual preview shows "Template -" on both sides and, with "Only show changes" on, says no values change. A pending change looks like nothing.Cause
SyncPreviewMappingHelper.MapContentInfoAsynctook the incoming template from the deserialized item.ContentSerializer.DeserializeTemplateonly sets a template the site already has, so a template arriving in the same sync (or missing) came out as none.Fix
For the incoming side, read the alias from the uSync file's
Info/Template(empty means no template). When the file has noTemplateelement, fall back to the item as before. The current side (no node) is unchanged.Testing
Builds. No unit test:
uSync.Testsdoesn't referenceuSync.Backoffice.Management.Api, and adding it for this pulls in the management API packages. Not yet checked in the backoffice.🤖 Generated with Claude Code