[PR #3080] [MERGED] [management] Extract resource routing peers into a map #21430

Open
opened 2026-08-05 05:08:29 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3080
Author: @pascal-fischer
Created: 12/18/2024
Status: Merged
Merged: 12/19/2024
Merged by: @pascal-fischer

Base: pass-resrouces-policiesHead: pass-resrouces-policies-routers


📝 Commits (10+)

  • d5709f9 extract routers map
  • dbd587f extract routing peers
  • b786b56 extract routers map
  • 5db8d6f extract routing peers
  • 8a6b675 Merge remote-tracking branch 'origin/pass-resrouces-policies-routers' into pass-resrouces-policies-routers
  • de237f3 add additional benchmark test + fix on routing peer generation
  • 01f0d2b fix router peer lookup
  • f415241 missing arg in method
  • 071ee2b remove unnecessary loop
  • 5c972a5 [management] Simplyfy routes generation code (#3081)

📊 Changes

6 files changed (+61 additions, -99 deletions)

View changed files

📝 management/server/account_test.go (+1 -1)
📝 management/server/http/handlers/peers/peers_handler.go (+1 -1)
📝 management/server/peer.go (+7 -5)
📝 management/server/peer_test.go (+1 -0)
📝 management/server/route_test.go (+11 -9)
📝 management/server/types/account.go (+40 -83)

📄 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/3080 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 12/18/2024 **Status:** ✅ Merged **Merged:** 12/19/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `pass-resrouces-policies` ← **Head:** `pass-resrouces-policies-routers` --- ### 📝 Commits (10+) - [`d5709f9`](https://github.com/netbirdio/netbird/commit/d5709f91e97f15de52f6d2e73bdad5e61091a883) extract routers map - [`dbd587f`](https://github.com/netbirdio/netbird/commit/dbd587f57cc81d868c2823f5f0e27476cb5455cd) extract routing peers - [`b786b56`](https://github.com/netbirdio/netbird/commit/b786b561b1053989b79efd2ec2b868dd6f217332) extract routers map - [`5db8d6f`](https://github.com/netbirdio/netbird/commit/5db8d6f30aabca7e0d9c7a8b4e619386e583bf7f) extract routing peers - [`8a6b675`](https://github.com/netbirdio/netbird/commit/8a6b675e7bdb857b92a7412b6685e4f2ae75ceec) Merge remote-tracking branch 'origin/pass-resrouces-policies-routers' into pass-resrouces-policies-routers - [`de237f3`](https://github.com/netbirdio/netbird/commit/de237f3edc154100bcdaa853c1aee24f6e8dfdbf) add additional benchmark test + fix on routing peer generation - [`01f0d2b`](https://github.com/netbirdio/netbird/commit/01f0d2b17623cdddc7cc33b9882672fa76cfe73b) fix router peer lookup - [`f415241`](https://github.com/netbirdio/netbird/commit/f4152417c4f962a001da86700c6aa38cba3026a7) missing arg in method - [`071ee2b`](https://github.com/netbirdio/netbird/commit/071ee2b274e0428a799ba2fb3304cb001d2d7036) remove unnecessary loop - [`5c972a5`](https://github.com/netbirdio/netbird/commit/5c972a52e1c2cf1c19afe03031971ac57bd25672) [management] Simplyfy routes generation code (#3081) ### 📊 Changes **6 files changed** (+61 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account_test.go` (+1 -1) 📝 `management/server/http/handlers/peers/peers_handler.go` (+1 -1) 📝 `management/server/peer.go` (+7 -5) 📝 `management/server/peer_test.go` (+1 -0) 📝 `management/server/route_test.go` (+11 -9) 📝 `management/server/types/account.go` (+40 -83) </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:30 -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#21430