Skip to content

fix(server): reverse isTrash field #18665

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 3 commits into from
May 27, 2025

Conversation

wuzihao051119
Copy link
Collaborator

@wuzihao051119 wuzihao051119 commented May 27, 2025

Fixes #18629.

The assets in the timeline have isTrash: true and in the trash have isTrash: false. So bad!
Introduced in #17831 last week. I find it when fixing #18629.

Luckily, the database seems not to be destroyed. I will check other problem caused by this.

Copy link
Member

@bo0tzz bo0tzz left a comment

Choose a reason for hiding this comment

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

Good catch, thanks! Would it be worth adding a test case to cover this?

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

Also, please run make sql to update the generated SQL for that query.

@wuzihao051119
Copy link
Collaborator Author

Done. Add e2e test.

@danieldietzler danieldietzler merged commit 79d760c into immich-app:main May 27, 2025
47 checks passed
@wuzihao051119 wuzihao051119 deleted the fix-is-trash branch May 27, 2025 14:24
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
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.

Delete keyboard shortcut acts differently in multi-selection
3 participants