[PR #358] [MERGED] Create account in 1 place #12533

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/358
Author: @braginini
Created: 6/7/2022
Status: Merged
Merged: 6/9/2022
Merged by: @braginini

Base: mainHead: refactor-account-creation


📝 Commits (8)

  • 90ddb10 Create account in 1 place
  • ad3db8f Remove unnecessary account creation methods
  • b720b99 Fix lint issues
  • 28a698b Fix codacy
  • 6ba4e31 Merge remote-tracking branch 'origin/main' into refactor-account-creation
  • 15fb0a0 Add newAccount test
  • 8705ef5 Fix golint
  • 899adde Add test to verify if peer can be added after a new account creation

📊 Changes

6 files changed (+131 additions, -87 deletions)

View changed files

📝 management/server/account.go (+7 -28)
📝 management/server/account_test.go (+122 -43)
📝 management/server/file_store_test.go (+0 -2)
📝 management/server/mock_server/account_mock.go (+0 -10)
📝 management/server/peer_test.go (+2 -2)
📝 management/server/user.go (+0 -2)

📄 Description

There are a few places where account is created.
When we create a new account, there should be
some defaults set. E.g. created by and group ALL.
It makes sense to add it in one place to avoid inconsistencies.


🔄 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/358 **Author:** [@braginini](https://github.com/braginini) **Created:** 6/7/2022 **Status:** ✅ Merged **Merged:** 6/9/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `refactor-account-creation` --- ### 📝 Commits (8) - [`90ddb10`](https://github.com/netbirdio/netbird/commit/90ddb10f10ead4fae50d69de4d4521f20314833d) Create account in 1 place - [`ad3db8f`](https://github.com/netbirdio/netbird/commit/ad3db8f45c21fa80bd1ff1fa72b8637ada01683d) Remove unnecessary account creation methods - [`b720b99`](https://github.com/netbirdio/netbird/commit/b720b99d69e2e2a38b41bd621f336f0b647b246c) Fix lint issues - [`28a698b`](https://github.com/netbirdio/netbird/commit/28a698b9c2d5d5dac43ecbf8da346a5d122db02b) Fix codacy - [`6ba4e31`](https://github.com/netbirdio/netbird/commit/6ba4e31c50840ade7c030a1f2705db96b39c5195) Merge remote-tracking branch 'origin/main' into refactor-account-creation - [`15fb0a0`](https://github.com/netbirdio/netbird/commit/15fb0a00265bf0d83dcc2c7cc961d4a30d442c5e) Add newAccount test - [`8705ef5`](https://github.com/netbirdio/netbird/commit/8705ef52d801e74178298c46586476f951566f35) Fix golint - [`899adde`](https://github.com/netbirdio/netbird/commit/899addef31ba63e10570a705400abccfbdaeb6d8) Add test to verify if peer can be added after a new account creation ### 📊 Changes **6 files changed** (+131 additions, -87 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+7 -28) 📝 `management/server/account_test.go` (+122 -43) 📝 `management/server/file_store_test.go` (+0 -2) 📝 `management/server/mock_server/account_mock.go` (+0 -10) 📝 `management/server/peer_test.go` (+2 -2) 📝 `management/server/user.go` (+0 -2) </details> ### 📄 Description There are a few places where account is created. When we create a new account, there should be some defaults set. E.g. created by and group ALL. It makes sense to add it in one place to avoid inconsistencies. --- <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:06:07 -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#12533