@W-22482570 b2c job import: support subset of files/globs from a directory#428
Open
clavery wants to merge 1 commit into
Open
@W-22482570 b2c job import: support subset of files/globs from a directory#428clavery wants to merge 1 commit into
clavery wants to merge 1 commit into
Conversation
…ctory `b2c job import <dir>` now accepts an optional list of paths or globs after `TARGET` to import a subset of a site export. Each entry is resolved literally first (handles shell-expanded paths), then against the import root, then via internal glob expansion. Entries must resolve under `TARGET`; archive layout is preserved. Backward compatible — no extras = whole directory, today's behavior. Adds a corresponding `paths` option on `siteArchiveImport` (SDK), debug logging that surfaces resolved entries and final archive contents, unit tests for both surfaces, doc/skill updates, and a changeset.
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.
Summary
b2c job import <dir>now accepts an optional list of paths or globs afterTARGETto import a subset of a site export. Layout underTARGETis preserved inside the archive; backward compatible (no extras = whole dir).pathsoption on the SDK'ssiteArchiveImportoperation; debug logging shows resolved entries and final archive contents.Resolution order per entry: literal path → path relative to
TARGET→ internal glob expansion againstTARGET. Entries that escape the root, missing literal paths, and globs that match nothing all error.GUS: W-22482570 (request from Professional Services).
Test plan
pnpm --filter @salesforce/b2c-tooling-sdk run test:agent— 1729 passing (5 new SDK cases for path filtering)pnpm --filter @salesforce/b2c-cli run test:agent— 1232 passing (3 new CLI cases)pnpm run lint:agentcleanpnpm run typecheck:agentclean--debuglog output verified--remotestill rejects extra positionals