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

Deleting datasets triggers SQL foreign-key violation #6038

Closed
fm3 opened this issue Feb 10, 2022 · 1 comment · Fixed by #7429
Closed

Deleting datasets triggers SQL foreign-key violation #6038

fm3 opened this issue Feb 10, 2022 · 1 comment · Fixed by #7429

Comments

@fm3
Copy link
Member

fm3 commented Feb 10, 2022

Users deleting datasets for which annotations exist triggers an SQL foreign-key violation
Detail: Key (_id)=(61fd361a010000e600f41f29) is still referenced from table "annotations".
We should discuss what the behavior should be here (can the annotations somehow stay downloadable?).

@fm3
Copy link
Member Author

fm3 commented Nov 2, 2023

in case an annotation referencing the DS exists, only delete on disk, but not in postgres (instead, mark as deleted)

annotations should still be downloadable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants