Skip to content

Merge v17/main into v18/main (2026-11-27) - #1307

Merged
KevinJump merged 11 commits into
v18/mainfrom
merge/v17-to-v18-2026-11-27
Nov 27, 2026
Merged

KevinJump merged 11 commits into
v18/mainfrom
merge/v17-to-v18-2026-11-27

Conversation

@KevinJump

Copy link
Copy Markdown
Member

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)

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 adapted ContentMoveTests: dropped the V_15_0_0.LocalLinks migration composer, and content/media types are created with CreateAsync(…, SuperUserKey) in place of Save.
  • packages.lock.json conflicts (8 files): took v18's side, then regenerated.

Checks

Check Result
dotnet restore uSync.slnx --locked-mode (after merge) Failed (NU1004: lock files still named uSync.Files)
dotnet restore uSync.slnx --force-evaluate Pass
dotnet restore uSync.Extend --force-evaluate Pass (not refreshed by the solution restore)
dotnet restore --locked-mode (solution and uSync.Extend), rerun Pass
Umbraco version in lock files 18.1.0, unchanged from v18/main
npm ci Not needed: no package.json or package-lock.json touched
dotnet build uSync.slnx -c Release Pass
uSync.Tests 450 passed
uSync.FolderChecks.Tests 33 passed

Version values the merge brings in (project files, workflows, build script) are renames only; uSync.FolderChecks keeps v18's net10.0 and package settings.

🤖 Generated with Claude Code

KevinJump and others added 11 commits November 27, 2026 12:16
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>
@github-actions github-actions Bot added the release/18.3.4 uSync 18.3.4 release label Nov 27, 2026
@KevinJump
KevinJump merged commit 799a866 into v18/main Nov 27, 2026
5 checks passed
@KevinJump
KevinJump deleted the merge/v17-to-v18-2026-11-27 branch November 27, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/18.3.4 uSync 18.3.4 release

Development

Successfully merging this pull request may close these issues.

1 participant