Skip to content

Fix apple-photos export --edited to prefer instead of filter#99

Closed
TechNickAI wants to merge 1 commit into
mainfrom
fix/apple-photos-bot-feedback
Closed

Fix apple-photos export --edited to prefer instead of filter#99
TechNickAI wants to merge 1 commit into
mainfrom
fix/apple-photos-bot-feedback

Conversation

@TechNickAI
Copy link
Copy Markdown
Owner

Summary

Fixes the --edited flag behavior on the apple-photos export command. Previously it filtered out all non-edited photos (via QueryOptions.edited=True), contradicting the "prefer edited versions" documentation. Now it includes all matching photos and uses the flag only to select which version to export.

What Changed

  • Added filter_edited parameter to build_query_options() (default True for backward compatibility)
  • Export command passes filter_edited=False to disable the upstream filter
  • The --edited flag still works as intended in the source selection logic (line 168)
  • Documentation semantics now match actual behavior

Test Plan

  • All 35 unit tests pass
  • --edited now includes non-edited photos (just prefers edited versions when available)
  • Query command behavior unchanged (still filters with --edited)

Context

Addresses valid feedback from cursor[bot] on PR #91 (comment #3107030964).

🤖 Generated via /address-pr-comments skill

The --edited flag on export was documented as "prefer edited versions" but was
incorrectly filtering out all non-edited photos via QueryOptions. This fix adds a
filter_edited parameter to build_query_options() that allows export to disable the
filter while still using the flag as a preference in the source selection logic.

Now export includes all photos and just prefers edited versions when available,
matching the documented behavior.

Addresses cursor[bot] feedback on PR #91.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@TechNickAI TechNickAI added review-sweep Follow-up fixes from PR review comments Hex Created by Hex labels Apr 20, 2026
@TechNickAI
Copy link
Copy Markdown
Owner Author

Superseded by #107 (merged) — same fix with cleaner skip_edited_filter naming and version bump. Closing to clean up duplicates.

@TechNickAI TechNickAI closed this Apr 28, 2026
@TechNickAI TechNickAI deleted the fix/apple-photos-bot-feedback branch April 28, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hex Created by Hex review-sweep Follow-up fixes from PR review comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant