Add --method flag to import uploads (diff importer support)#42
Open
joehoyle wants to merge 2 commits into
Open
Add --method flag to import uploads (diff importer support)#42joehoyle wants to merge 2 commits into
joehoyle wants to merge 2 commits into
Conversation
Adds --method diff|legacy option to the import-uploads command, threading it through to the REST endpoint added in vantage-backend#2443. The diff method skips unchanged files for significantly faster re-imports. Also fixes a crash in stream.js where got.default.stream was called — got is already the default export so got.stream is the correct call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds --method diff|legacy option to `altis-cli stack import uploads`, wiring it to the REST endpoint from vantage-backend#2443. The diff method skips unchanged files for significantly faster re-imports. Also fixes a crash in stream.js where got.default.stream was called — got is already the default export so got.stream is the correct call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
--method diff|legacyoption toaltis-cli stack import uploads, wiring it to the REST endpoint added in vantage-backend#2443. Thediffmethod skips unchanged files for significantly faster re-imports (40× faster when most files are unchanged).stream.jswheregot.default.stream()was called —gotis already the default export fromimport got from 'got', sogot.stream()is the correct call.Usage
Test plan
import uploadswith no--methodflag behaves as before (server defaults tolegacy)import uploads --method diffpassesmethod: "diff"in the POST bodyimport uploads --method legacypassesmethod: "legacy"in the POST bodygot.streamfix🤖 Generated with Claude Code