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

Prevent deletion of contributors/institutions used by other publishers (#548) #614

Merged
merged 11 commits into from
Sep 3, 2024

Conversation

rhigman
Copy link
Member

@rhigman rhigman commented Jul 17, 2024

Fixes #548.

@rhigman rhigman requested a review from ja573 July 17, 2024 09:09
@rhigman rhigman linked an issue Jul 17, 2024 that may be closed by this pull request
.filter(crate::schema::contribution::contributor_id.eq(contributor_id))
.distinct()
.load::<Uuid>(&mut connection)
.map_err(|e| e.into())
Copy link
Member

Choose a reason for hiding this comment

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

I'd change this to .map_err(Into::into)

@rhigman rhigman merged commit 180720f into develop Sep 3, 2024
12 checks passed
@rhigman rhigman deleted the feature/548_contributor_deletion branch September 3, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent deleting contributors added by third-parties
2 participants