Skip to content

fix(mobile): getAllByRemoteId return all assets on empty arguments value #17263

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

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

alextran1502
Copy link
Contributor

@alextran1502 alextran1502 commented Mar 31, 2025

Fixes an issue where getAllByRemoteId will return all assets if the ids argument is empty.

@alextran1502 alextran1502 changed the title fix getAllByRemoteId empty arg fix(mobile): getAllByRemoteId return all assets on empty arguments Mar 31, 2025
@alextran1502 alextran1502 changed the title fix(mobile): getAllByRemoteId return all assets on empty arguments fix(mobile): getAllByRemoteId return all assets on empty arguments value Mar 31, 2025
Copy link
Member

@shenlong-tanwen shenlong-tanwen left a comment

Choose a reason for hiding this comment

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

This is actually a weird behaviour with the anyOf modifier from Isar which returns all the entries when the passed Id is empty. Might probably worth fixing it in all other places to have a consistent behaviour, or we can fix them as they come until we migrate everything to Sqlite :)

@alextran1502 alextran1502 merged commit f434e85 into main Apr 1, 2025
48 of 51 checks passed
@alextran1502 alextran1502 deleted the fix-getAllByRemoteId-empty-arg branch April 1, 2025 13:59
kirill-dev-pro pushed a commit to kirill-dev-pro/immich-but-with-public-albums-within-instance that referenced this pull request Apr 6, 2025
…lue (immich-app#17263)

* chore: post release tasks

* fix(mobile): getAllByRemoteId return all assets if ids is empty
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
…lue (immich-app#17263)

* chore: post release tasks

* fix(mobile): getAllByRemoteId return all assets if ids is empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants