Implement --align-raw RAW/JPEG version swapping#1
Merged
Conversation
Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file.
Owner
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. Reviewed: 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Test default value, all valid variants, and invalid input rejection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
* Add parallel concurrent downloads and --recent early termination Two-phase download design: sequential filter pass builds task list, then buffer_unordered downloads with --threads-num concurrency. Remove --until-found (will be replaced by stateful incremental sync). Add --recent N early termination to stop API enumeration after N photos. Add progress logging during photo enumeration and service init. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add 19 unit tests and apply idiomatic Rust fixes - Add CLI, config, download, and album unit tests (56 total) - Remove dead dry_run guards in download phase 2 - Modernize ref patterns to idiomatic & style - Fix stale doc comment in album.rs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
swapping (#1) * Implement --align-raw RAW/JPEG version swapping Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file. * Add CLI parsing tests for --align-raw flag Test default value, all valid variants, and invalid input rejection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
* Add parallel concurrent downloads and --recent early termination Two-phase download design: sequential filter pass builds task list, then buffer_unordered downloads with --threads-num concurrency. Remove --until-found (will be replaced by stateful incremental sync). Add --recent N early termination to stop API enumeration after N photos. Add progress logging during photo enumeration and service init. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add 19 unit tests and apply idiomatic Rust fixes - Add CLI, config, download, and album unit tests (56 total) - Remove dead dry_run guards in download phase 2 - Modernize ref patterns to idiomatic & style - Fix stale doc comment in album.rs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
swapping (#1) * Implement --align-raw RAW/JPEG version swapping Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file. * Add CLI parsing tests for --align-raw flag Test default value, all valid variants, and invalid input rejection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
* Add parallel concurrent downloads and --recent early termination Two-phase download design: sequential filter pass builds task list, then buffer_unordered downloads with --threads-num concurrency. Remove --until-found (will be replaced by stateful incremental sync). Add --recent N early termination to stop API enumeration after N photos. Add progress logging during photo enumeration and service init. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add 19 unit tests and apply idiomatic Rust fixes - Add CLI, config, download, and album unit tests (56 total) - Remove dead dry_run guards in download phase 2 - Modernize ref patterns to idiomatic & style - Fix stale doc comment in album.rs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
swapping (#1) * Implement --align-raw RAW/JPEG version swapping Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file. * Add CLI parsing tests for --align-raw flag Test default value, all valid variants, and invalid input rejection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Rob Hooper <rhoopr@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
* Add parallel concurrent downloads and --recent early termination Two-phase download design: sequential filter pass builds task list, then buffer_unordered downloads with --threads-num concurrency. Remove --until-found (will be replaced by stateful incremental sync). Add --recent N early termination to stop API enumeration after N photos. Add progress logging during photo enumeration and service init. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add 19 unit tests and apply idiomatic Rust fixes - Add CLI, config, download, and album unit tests (56 total) - Remove dead dry_run guards in download phase 2 - Modernize ref patterns to idiomatic & style - Fix stale doc comment in album.rs Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
swapping (#1) * Implement --align-raw RAW/JPEG version swapping Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file. * Add CLI parsing tests for --align-raw flag Test default value, all valid variants, and invalid input rejection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
* Add parallel concurrent downloads and --recent early termination Two-phase download design: sequential filter pass builds task list, then buffer_unordered downloads with --threads-num concurrency. Remove --until-found (will be replaced by stateful incremental sync). Add --recent N early termination to stop API enumeration after N photos. Add progress logging during photo enumeration and service init. * Add 19 unit tests and apply idiomatic Rust fixes - Add CLI, config, download, and album unit tests (56 total) - Remove dead dry_run guards in download phase 2 - Modernize ref patterns to idiomatic & style - Fix stale doc comment in album.rs ---------
rhoopr
added a commit
that referenced
this pull request
Feb 8, 2026
swapping (#1) * Implement --align-raw RAW/JPEG version swapping Wire the existing --align-raw CLI flag into the download pipeline, matching Python's apply_raw_policy() behavior. Swaps Original and Alternative asset versions when one is a RAW file. * Add CLI parsing tests for --align-raw flag Test default value, all valid variants, and invalid input rejection. ---------
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
`apply_raw_policy()`
type match
Test plan
🤖 Generated with Claude Code