Skip to content

[Blueprints] Allow WXR imports to skip attachment fetching - #3878

Merged
adamziel merged 1 commit into
trunkfrom
add-import-wxr-fetch-attachments-option
Jul 3, 2026
Merged

[Blueprints] Allow WXR imports to skip attachment fetching#3878
adamziel merged 1 commit into
trunkfrom
add-import-wxr-fetch-attachments-option

Conversation

@adamziel

@adamziel adamziel commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

What?

Adds a fetchAttachments option to the importWxr step.

fetchAttachments Behavior
true or omitted Keep the current behavior: fetch attachment files referenced by the WXR.
false Ask the importer to skip fetching remote attachment files.

The public Blueprint schema is regenerated to include the new option.

Why?

Blueprint v2 models this as staticAssets: "fetch" | "hotlink". The future v2 runner can map staticAssets: "hotlink" to fetchAttachments: false, but the low-level WXR step needs the importer control first.

This stays separate from SQL URL rewriting and from broader WXR controls like author mapping, comments, users, site options, and explicit URL maps.

Testing

  • npm exec nx run playground-blueprints:test:vite -- --testFiles=packages/playground/blueprints/src/tests/steps/import-wxr.spec.ts
  • npm exec nx run playground-blueprints:typecheck
  • npm exec nx run playground-blueprints:lint
  • npm exec nx run playground-blueprints:build:blueprint-schema
  • npm run format:uncommitted
  • git diff --check

Part of #2592.

Base automatically changed from add-import-wxr-rewrite-url-option to trunk July 3, 2026 00:28
@adamziel
adamziel requested review from a team and mho22 July 3, 2026 00:28
@adamziel
adamziel force-pushed the add-import-wxr-fetch-attachments-option branch from 8b60368 to 0c7cef5 Compare July 3, 2026 00:28
@adamziel
adamziel merged commit 15a115c into trunk Jul 3, 2026
100 of 103 checks passed
@adamziel
adamziel deleted the add-import-wxr-fetch-attachments-option branch July 3, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment