[PR #3912] [MERGED] [management] Propagate user groups when group propagation setting is re-enabled #21900

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3912
Author: @bcmmbaga
Created: 6/2/2025
Status: Merged
Merged: 6/11/2025
Merged by: @bcmmbaga

Base: mainHead: propagate-groups-on-enable


📝 Commits (8)

  • f11b7b0 propagate user groups on re-enabling group propagation settings
  • f9056bb refactor
  • 734c505 remove loading whole account on settings update
  • 3b6e163 fix tests
  • 1d9418d add tests
  • 51170fb return only modified groups from updateUserPeersInGroups
  • 67dd85c add more tests
  • c52ca4a Merge branch 'main' into propagate-groups-on-enable

📊 Changes

9 files changed (+343 additions, -102 deletions)

View changed files

📝 management/server/account.go (+156 -75)
📝 management/server/account/manager.go (+1 -1)
📝 management/server/account_test.go (+131 -7)
📝 management/server/http/handlers/accounts/accounts_handler.go (+2 -2)
📝 management/server/http/handlers/accounts/accounts_handler_test.go (+2 -4)
📝 management/server/mock_server/account_mock.go (+2 -2)
📝 management/server/store/sql_store.go (+16 -0)
📝 management/server/store/store.go (+1 -0)
📝 management/server/user.go (+32 -11)

📄 Description

Describe your changes

Stack

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 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/3912 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 6/2/2025 **Status:** ✅ Merged **Merged:** 6/11/2025 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `propagate-groups-on-enable` --- ### 📝 Commits (8) - [`f11b7b0`](https://github.com/netbirdio/netbird/commit/f11b7b02879c54b32617fd2f48cf577d70308ae3) propagate user groups on re-enabling group propagation settings - [`f9056bb`](https://github.com/netbirdio/netbird/commit/f9056bbd6024f3a9181477ae74482bc13a5b9a23) refactor - [`734c505`](https://github.com/netbirdio/netbird/commit/734c505bd182094d5ff6a75d0a227da14d465572) remove loading whole account on settings update - [`3b6e163`](https://github.com/netbirdio/netbird/commit/3b6e1634c5b6b1df6b4b8945344fc3e627c8a962) fix tests - [`1d9418d`](https://github.com/netbirdio/netbird/commit/1d9418d27dd376502080ce5b4998bfeb7ea996a4) add tests - [`51170fb`](https://github.com/netbirdio/netbird/commit/51170fbe086d6facc42e78de52cfd89207c58d53) return only modified groups from updateUserPeersInGroups - [`67dd85c`](https://github.com/netbirdio/netbird/commit/67dd85c01292001c9f5caed7f57974b71b68da17) add more tests - [`c52ca4a`](https://github.com/netbirdio/netbird/commit/c52ca4a172dafd3c4d1e3543c5d016901f65fec4) Merge branch 'main' into propagate-groups-on-enable ### 📊 Changes **9 files changed** (+343 additions, -102 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+156 -75) 📝 `management/server/account/manager.go` (+1 -1) 📝 `management/server/account_test.go` (+131 -7) 📝 `management/server/http/handlers/accounts/accounts_handler.go` (+2 -2) 📝 `management/server/http/handlers/accounts/accounts_handler_test.go` (+2 -4) 📝 `management/server/mock_server/account_mock.go` (+2 -2) 📝 `management/server/store/sql_store.go` (+16 -0) 📝 `management/server/store/store.go` (+1 -0) 📝 `management/server/user.go` (+32 -11) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <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:09:05 -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#21900