Repository navigation
Merge v17/main into v18/main (2026-11-27) - #1307
Merged
Merged
Conversation
Three opt-in pieces, so a site can sync an item being binned: - DependencyFlags.IncludeTrashed: set for the item being synced, so dependency checkers can tell an item picked from the recycle bin apart from a binned item that only comes along with something live. - ExportTrashedAsDelete (content and media handler setting, off by default): an item in the recycle bin exports as an empty Delete node, with its itemType so it can be imported from outside a handler folder. - MoveToRecycleBin (serializer setting, off by default): a Delete for content or media moves the item to the recycle bin instead of deleting it outright. Blueprints have no bin and still delete. An item already in the bin is no change. ProcessDeleteAsync gets an overload that takes the serializer options, so a delete can depend on a setting; it calls the flags version by default, so existing overrides keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Trashed-as-delete exports now run ShouldExportAsync on the full item, so ExportTrashed and RulesOnExport (paths, doc types) still apply. - A delete that moves to the recycle bin clears the old restore relation first, and fails when the move is cancelled instead of reporting a delete. - Tests for ExportTrashed=false and the blueprint opt-out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A delete of an item that is in the recycle bin (e.g emptying the bin) is marked RecycleBin="Delete", and always deletes the item outright, even when the target has MoveToRecycleBin on. Trashed items exported as deletes are marked RecycleBin="Move". Every other delete follows the target's MoveToRecycleBin setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
So a delete written when the bin is emptied can be imported from a sync pack, the same as the trashed-as-delete export. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Send recycle bin items as deletes, and delete content and media to the bin
uSync.Complete already ships a uSync.Files package, assembly and namespace, so the new folder checks library would clash with it. Renamed the project, package, assembly and namespace (and the test project) before it's released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rchecks Rename uSync.Files to uSync.FolderChecks
The Umbraco 17 management API doesn't return a health check's Description, so the file list each folder integrity result built was never shown. The backoffice renders the message as html, so the explanation, the files (with line numbers) and the fix now go in the message. The key clash result counted one issue per file, so a single pair of files read as "2 clash(es)". It now says "2 item(s) that share a key with another item", in line with the alias and deleted-and-live results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show folder check details in the backoffice health check
Adapts the new TrashedItemDeleteTests to Umbraco 18 (async content/media type create, no local links migration), as the last forward port did for ContentMoveTests. Lock files regenerated for the uSync.FolderChecks rename. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
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.
Forward port of v17/main into v18/main.
Baseline:
978ea226(#1301), the v17 side of the last forward merge (536fc02d, #1302).Carried (3 PRs, 6 commits)
ExportTrashedAsDelete) and delete to the bin (MoveToRecycleBin)dist/build-package.ps1)Already on v18: nothing after the baseline.
Merge fixes for v18
uSync.Tests/Handlers/TrashedItemDeleteTests.cs(new in Send recycle bin items as deletes, and delete content and media to the bin #1304) used v17-only APIs. Adapted the same way the last forward port adaptedContentMoveTests: dropped theV_15_0_0.LocalLinksmigration composer, and content/media types are created withCreateAsync(…, SuperUserKey)in place ofSave.packages.lock.jsonconflicts (8 files): took v18's side, then regenerated.Checks
dotnet restore uSync.slnx --locked-mode(after merge)dotnet restore uSync.slnx --force-evaluatedotnet restore uSync.Extend --force-evaluatedotnet restore --locked-mode(solution and uSync.Extend), rerunnpm cipackage.jsonorpackage-lock.jsontoucheddotnet build uSync.slnx -c ReleaseuSync.TestsuSync.FolderChecks.TestsVersion values the merge brings in (project files, workflows, build script) are renames only;
uSync.FolderCheckskeeps v18'snet10.0and package settings.🤖 Generated with Claude Code