Repository navigation
fix: compare in UTC and detect moved and reordered pages - #7
Merged
Merged
Conversation
Fix the foundation's accuracy gaps found in the design review. - Publish dates were compared in each server's local time: Xperience stores server-local time and the endpoint sent it without a time zone, so instances in different time zones compared the wrong moments. Both inventories now convert to UTC, the endpoint sends dates with a Z suffix, and the schema version is 2. A date without a time zone, as an older target sends, is read as before. - Moving or reordering a page changes neither its version nor its publish date. A different tree path on the target is now out of date (moved), and a level whose shared pages are in a different relative order marks those pages out of date (reordered), since Content Sync needs the whole level synced. The inventory carries each page's order for this. - Each status item carries a reason for being out of date, and the status tooltip explains it, including that Content Sync can't delete items only on the target. - The Last published column uses the same local date-time cell as Kentico's own listings, so it shows each editor's time zone. - Exclude Content Sync packages from the example's content items; their JSON files were included twice and broke the build after a sync. - Update the foundation and admin page specs and the Usage Guide, including what the page can't see and why content fingerprints and triggering a sync are deferred.
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.
Fixes the accuracy gaps found in the foundation design review: time zones, moved and reordered pages, and clearer guidance for editors.
Changes
Zsuffix, and the schema version is 2. A date without a time zone (from a target on schema version 1) is read as this server's local time, the same as before, so mixed versions behave as they did.Reason(newer here, publish state, moved, reordered). The status tooltip explains it and what to sync. For items only on the target, the tooltip explains that Content Sync can't delete, so they have to be deleted on the target.Testing