[PR #3059] [MERGED] [management] Remove resource from groups when resource deleted #21338

Closed
opened 2026-08-05 05:08:23 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3059
Author: @pascal-fischer
Created: 12/16/2024
Status: Merged
Merged: 12/17/2024
Merged by: @pascal-fischer

Base: feature/new-networks-conceptHead: feature/new-networks-concept-resource-delete


📝 Commits (6)

  • a6c6c1d remove resource from groups if resource is deleted
  • ac54a31 handle error
  • eca02ad remove router if peer is deleted
  • 91201b5 delete router and resources on network delete
  • cfd546a extract routerId collection and counter
  • 4bebeb6 run delete network in one transaction

📊 Changes

4 files changed (+107 additions, -14 deletions)

View changed files

📝 management/server/http/handlers/networks/handler.go (+21 -12)
📝 management/server/networks/manager.go (+31 -1)
📝 management/server/networks/resources/manager.go (+36 -1)
📝 management/server/types/account.go (+19 -0)

📄 Description

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/3059 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/17/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `feature/new-networks-concept` ← **Head:** `feature/new-networks-concept-resource-delete` --- ### 📝 Commits (6) - [`a6c6c1d`](https://github.com/netbirdio/netbird/commit/a6c6c1dee313cebdbf55ff45d12004acb110b9d8) remove resource from groups if resource is deleted - [`ac54a31`](https://github.com/netbirdio/netbird/commit/ac54a31eb8c9dc34ceb918f68a31600dc979e6e3) handle error - [`eca02ad`](https://github.com/netbirdio/netbird/commit/eca02addf3068b1a6a64851e4feca97ce8704d73) remove router if peer is deleted - [`91201b5`](https://github.com/netbirdio/netbird/commit/91201b5544a342de4a791ca30d589cedc04f663d) delete router and resources on network delete - [`cfd546a`](https://github.com/netbirdio/netbird/commit/cfd546a1f75dff429d9500202bd7822a5910837c) extract routerId collection and counter - [`4bebeb6`](https://github.com/netbirdio/netbird/commit/4bebeb67a39a66b05757da42fa9efb2e38755679) run delete network in one transaction ### 📊 Changes **4 files changed** (+107 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/handlers/networks/handler.go` (+21 -12) 📝 `management/server/networks/manager.go` (+31 -1) 📝 `management/server/networks/resources/manager.go` (+36 -1) 📝 `management/server/types/account.go` (+19 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 05:08:23 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#21338