Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): dry run being inaccurate #9088

Merged
merged 1 commit into from
Apr 26, 2024
Merged

fix(cli): dry run being inaccurate #9088

merged 1 commit into from
Apr 26, 2024

Conversation

mertalev
Copy link
Contributor

Description

The dry run always returns an empty list for the list of new assets, meaning it will always report that it would create 0 new albums. This PR changes this to return a list of dummy assets instead for accurate reporting.

It also adds a bunch of e2e tests for dry runs since we seem to not test this flag at all right now.

Lastly, it makes dry runs incompatible with the --skip-hash flag since duplicates can't be accurately handled in this case.

Fixes #8966

How Has This Been Tested?

Tested that the dry run lines up with the real run with a number of different commands.

@mertalev mertalev added the cli Tasks related to the Immich CLI label Apr 25, 2024
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noiceeeeeeee

@mertalev mertalev merged commit d52ed51 into main Apr 26, 2024
25 of 26 checks passed
@mertalev mertalev deleted the fix/cli-dry-run branch April 26, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Tasks related to the Immich CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI dry-run shows incorrect album count
2 participants