Skip to content

1.0.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@andresvillenas andresvillenas released this 03 Dec 16:25
48e8538

Sixth beta of the Content Sync Toolkit for Xperience by Kentico. Forms join the status pages, with their own tab and a way to take a page's forms along when you sync it. Items that are only on the target can now be moved to its recycle bin from the lists. And the top of each list shows which instances you're comparing, with a way to tell us how the toolkit works for you.

What's new

  • Forms tab (Xperience 30.9.0 or newer). Forms lists the forms of this instance and the target: New, Changed, Only on target or In sync, with the fields a sync would remove, and Sync from a row or from selected rows, as on the other tabs. From 31.11.0, where forms belong to workspaces, it shows one workspace at a time, chosen with Xperience's Workspace dropdown in the top bar. Earlier versions don't show the tab.
  • Include forms. Xperience's Sync dialog, opened from the Pages and Content hub lists, can take the forms the selected items use along (30.9.0 or newer). It's greyed out without the permission to sync forms.
  • Move to recycle bin on target. Items that are on the target but not on this instance (Only on target and Deleted here) can be moved to the target's recycle bin, from a row or from selected rows. A side panel, worded like Xperience's own Move to recycle bin dialog, first lists what will be moved, the child pages that go with a page, what won't be moved and why, and what visitors get after removal. Nothing changes on this instance, and everything can be restored on the target. The target turns it on with ContentSyncToolkit:DeleteFromSource and needs 30.12.0 or newer. It moves items as the user with the same user name there, after checking the permissions Xperience requires. A page deleted here with a redirect gets the same redirect on the target. Forms can't be moved this way.
  • Route chip. The top of each list shows this instance and the target, for example localhost:27500 → localhost:27511, with a dot for the target's state: answering, unreachable or rejecting the request. Labels set with InstanceLabel and TargetLabel replace the hosts, which show on hover.
  • Feedback. A Feedback link next to the chip opens a form in GitHub Discussions, filled in with the toolkit's and Xperience's versions, and nothing else. After a user's first sync with a new version, a one-time line asks how it's working and links to this release's feedback discussion. The toolkit sends nothing anywhere; set ContentSyncToolkit:FeedbackLinks to false to hide both.
  • Connection problems in the Event log. When the target doesn't answer, answers with an error (a wrong secret looks like a 404), or answers with something other than the toolkit's data, the source writes a warning once, with the reason and what to check, and an information entry when it answers again. Source ContentSyncToolkit, codes TARGETUNREACHABLE, TARGETREJECTED, TARGETERROR and TARGETRECOVERED. The message rows at the top of the lists can't be selected or synced.

Fixes

  • The list reloads after a sync from it. It reloads when the sync starts and when it ends, so the statuses are current without Refresh.
  • Scheduled syncs. A sync scheduled for later no longer reports a timeout or keeps asking while it waits. On versions without Xperience's Sync dialog (30.8.0), the confirmation always shows the time field and refuses a missing time, and the Event log records the scheduled time in UTC.
  • Xperience's Sync side panel stays open. On versions before 31.11.0, the list's reload no longer closes it.
  • The lists fit a 1440px-wide window. With the selection and Actions columns, they no longer scroll sideways.

Upgrading

Update both instances. The target's endpoint stays at schema version 5.

  • With a 1.0.0-beta.5 target, the Pages and Content hub tabs work as before. The Forms tab says the target's toolkit is older and to update it, and Move to recycle bin on target isn't offered.
  • New settings, both optional:
    • ContentSyncToolkit:FeedbackLinks (source, default true): the Feedback link and the one-time line.
    • ContentSyncToolkit:DeleteFromSource (target, default false): lets a source move items to this instance's recycle bin.
  • Permissions. The Forms tab needs View on Content synchronization, like the other tabs, and syncing forms needs Xperience's permission to sync forms. Move to recycle bin on target needs Delete here (Content hub's in the workspace, or the page permission in the channel), and the same user name on the target with the permissions Xperience requires there.

No breaking changes for code using the toolkit's public classes: IContentInventoryClient and IContentInventoryCache gained members with default implementations, and ContentInventoryItemKind gained Form.

Installation

Install on both the source and the target:

dotnet add package XperienceCommunity.ContentSyncToolkit --prerelease

See the Usage Guide for registration, configuration and giving editors access.

Compatibility

Xperience by Kentico 30.8.0 or newer, runtime-checked on 30.8.0, 30.9.0, 30.12.0, 31.9.1 and 31.11.0. Forms need 30.9.0 and Move to recycle bin on target needs 30.12.0 on the target. See the verification record.

This is a beta: APIs and behavior may change before 1.0.0.

Feedback is welcome in the beta.6 discussion.