[PR #1268] [MERGED] Extends management user and group structure #13454

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1268
Author: @bcmmbaga
Created: 10/30/2023
Status: Merged
Merged: 11/1/2023
Merged by: @bcmmbaga

Base: mainHead: extends-user-group-structure


📝 Commits (10+)

  • 3217947 extends user and group structure by introducing fields for issued and integration references
  • 4688a34 Add integration checks to group management to prevent groups added by integration.
  • fdbb393 Add integration checks to user management to prevent deleting user added by integration.
  • 9a41b43 Fix broken user update tests
  • 738d445 Merge branch 'main' into extends-user-group-structure
  • ab27edd Initialize all user fields for testing
  • 1ed49e7 Change a serializer option to embedded for IntegrationReference in user and group models
  • cdc9930 Add issued field to user api response
  • 36a21d4 Add IntegrationReference to Group in update groups handler
  • 1a0acaa Set the default issued field for users in file store

📊 Changes

11 files changed (+188 additions, -61 deletions)

View changed files

📝 management/server/account.go (+12 -9)
📝 management/server/file_store.go (+5 -0)
📝 management/server/group.go (+7 -0)
📝 management/server/group_test.go (+39 -25)
📝 management/server/http/api/openapi.yml (+4 -0)
📝 management/server/http/api/types.gen.go (+3 -0)
📝 management/server/http/groups_handler.go (+5 -4)
📝 management/server/http/users_handler.go (+14 -4)
📝 management/server/http/users_handler_test.go (+5 -0)
📝 management/server/user.go (+46 -16)
📝 management/server/user_test.go (+48 -3)

📄 Description

Describe your changes

Extends the user and group structure in management to include additional fields Issued and IntegrationReference.

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/1268 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 10/30/2023 **Status:** ✅ Merged **Merged:** 11/1/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `extends-user-group-structure` --- ### 📝 Commits (10+) - [`3217947`](https://github.com/netbirdio/netbird/commit/3217947f67bf7bd572c49d862b478e79aa461d47) extends user and group structure by introducing fields for issued and integration references - [`4688a34`](https://github.com/netbirdio/netbird/commit/4688a3447c550c0170c39f45d10a967c1e53687d) Add integration checks to group management to prevent groups added by integration. - [`fdbb393`](https://github.com/netbirdio/netbird/commit/fdbb3939f8f933291738d3d9547f69c3206e5647) Add integration checks to user management to prevent deleting user added by integration. - [`9a41b43`](https://github.com/netbirdio/netbird/commit/9a41b4306f8e057e324e3c6bfc6ef758841e0521) Fix broken user update tests - [`738d445`](https://github.com/netbirdio/netbird/commit/738d44512b7668aa335898e5ba92f048b14bcffd) Merge branch 'main' into extends-user-group-structure - [`ab27edd`](https://github.com/netbirdio/netbird/commit/ab27edd3d6021dbe85c6e47a90305c7d39d1f5c8) Initialize all user fields for testing - [`1ed49e7`](https://github.com/netbirdio/netbird/commit/1ed49e793cc492448a33f2f68e3389f68a9ecad9) Change a serializer option to embedded for IntegrationReference in user and group models - [`cdc9930`](https://github.com/netbirdio/netbird/commit/cdc99306c06faa7693a3dc7497a32c49cd99b1f6) Add issued field to user api response - [`36a21d4`](https://github.com/netbirdio/netbird/commit/36a21d412bb32af8e1d9fa9586245d58f1ee5697) Add IntegrationReference to Group in update groups handler - [`1a0acaa`](https://github.com/netbirdio/netbird/commit/1a0acaa8503369ef9290988d1ffabeddbf2c3a8d) Set the default issued field for users in file store ### 📊 Changes **11 files changed** (+188 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+12 -9) 📝 `management/server/file_store.go` (+5 -0) 📝 `management/server/group.go` (+7 -0) 📝 `management/server/group_test.go` (+39 -25) 📝 `management/server/http/api/openapi.yml` (+4 -0) 📝 `management/server/http/api/types.gen.go` (+3 -0) 📝 `management/server/http/groups_handler.go` (+5 -4) 📝 `management/server/http/users_handler.go` (+14 -4) 📝 `management/server/http/users_handler_test.go` (+5 -0) 📝 `management/server/user.go` (+46 -16) 📝 `management/server/user_test.go` (+48 -3) </details> ### 📄 Description ## Describe your changes Extends the user and group structure in management to include additional fields `Issued` and `IntegrationReference`. ## Issue ticket number and link ### 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 --- <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 02:08:28 -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#13454