[PR #3252] [MERGED] Fix Organization delete when groups are configured #3251

Closed
opened 2026-03-03 09:42:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3252
Author: @BlackDex
Created: 2/16/2023
Status: Merged
Merged: 2/21/2023
Merged by: @dani-garcia

Base: mainHead: issue-3247


📝 Commits (1)

  • 32bd9b8 Fix Organization delete when groups are configured

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 src/db/models/group.rs (+7 -0)
📝 src/db/models/organization.rs (+2 -1)

📄 Description

With existing groups configured within an org, deleting that org would fail because of Foreign Key issues.

This PR fixes this by making sure the groups get deleted before the org does.

Fixes #3247


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3252 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 2/16/2023 **Status:** ✅ Merged **Merged:** 2/21/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `issue-3247` --- ### 📝 Commits (1) - [`32bd9b8`](https://github.com/dani-garcia/vaultwarden/commit/32bd9b83a309d24c0fbeddf17240acd65f2e3650) Fix Organization delete when groups are configured ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/db/models/group.rs` (+7 -0) 📝 `src/db/models/organization.rs` (+2 -1) </details> ### 📄 Description With existing groups configured within an org, deleting that org would fail because of Foreign Key issues. This PR fixes this by making sure the groups get deleted before the org does. Fixes #3247 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 09:42:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3251
No description provided.