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(server): remove shared link with removed asset #5845

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

martabal
Copy link
Member

fixes #5842

Copy link

cloudflare-pages bot commented Dec 18, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: cc3b9e8
Status: ✅  Deploy successful!
Preview URL: https://ec8a3944.immich.pages.dev
Branch Preview URL: https://fix-remove-shared-link.immich.pages.dev

View logs

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.

This is wrong. Deleting an asset will delete all shared links that include it, even if other assets are still shared.

@martabal
Copy link
Member Author

This is wrong. Deleting an asset will delete all shared links that include it, even if other assets are still shared.

I can't experience this behavior, is it a background task or something ? 🤔

@jrasm91
Copy link
Contributor

jrasm91 commented Dec 19, 2023

Did you test adding multiple assets to a single shared link and then deleting one asset? Fom what I understand the cascade should try to delete the shared link that still contains other assets. Is this what happens?

@martabal
Copy link
Member Author

Am I missing something ?

2023-12-19.16-45-26-2.mp4

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.

Ah, I misread the migration originally. This looks good.

@alextran1502 alextran1502 merged commit 7e21680 into main Dec 19, 2023
19 checks passed
@alextran1502 alextran1502 deleted the fix/remove-shared-link branch December 19, 2023 17:05
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.

[BUG] Unable to remove Individual Share item after removing one item from that Individual Share
3 participants