[PR #1697] [MERGED] Feature/peer validator mergestruct #17805

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1697
Author: @pappz
Created: 3/13/2024
Status: Merged
Merged: 3/18/2024
Merged by: @pappz

Base: feature/peer-validatorHead: feature/peer-validator-mergestruct


📝 Commits (10+)

  • d0ba9f9 Merge peer approval and integrated peer approval into the same logic
  • 2c9af60 Fix peer response
  • 79a7a55 Fix error handling in update account setting
  • 8038806 Fix tests
  • 31effe0 Set to mandatory the approval_required in api responses
  • 8084121 Remove additions from go.mod
  • efa5dd7 Fix account test
  • c1ac660 Fix get network map
  • 9597b6e Fix arguments
  • 0893506 Fix test

📊 Changes

27 files changed (+387 additions, -236 deletions)

View changed files

📝 client/cmd/testutil.go (+1 -1)
📝 client/internal/engine_test.go (+1 -1)
📝 go.mod (+1 -2)
📝 go.sum (+2 -4)
📝 management/client/client_test.go (+8 -1)
📝 management/cmd/management.go (+5 -4)
📝 management/server/account.go (+9 -10)
📝 management/server/account/account.go (+4 -4)
📝 management/server/account_test.go (+27 -7)
📝 management/server/dns_test.go (+1 -1)
📝 management/server/group.go (+4 -4)
📝 management/server/http/api/openapi.yml (+1 -0)
📝 management/server/http/api/types.gen.go (+3 -3)
📝 management/server/http/peers_handler.go (+83 -38)
📝 management/server/http/util/util.go (+2 -0)
management/server/integrated_approval/interface.go (+0 -13)
📝 management/server/integrated_validator.go (+11 -6)
management/server/integrated_validator/interface.go (+16 -0)
📝 management/server/management_proto_test.go (+1 -1)
📝 management/server/management_test.go (+23 -9)

...and 7 more files

📄 Description

Describe your changes

  • Follow up management-integration changes.
  • Set mandatory the approval_required flag in API response

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/1697 **Author:** [@pappz](https://github.com/pappz) **Created:** 3/13/2024 **Status:** ✅ Merged **Merged:** 3/18/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `feature/peer-validator` ← **Head:** `feature/peer-validator-mergestruct` --- ### 📝 Commits (10+) - [`d0ba9f9`](https://github.com/netbirdio/netbird/commit/d0ba9f99fb5b0e7292ad58b548e05b899f7389db) Merge peer approval and integrated peer approval into the same logic - [`2c9af60`](https://github.com/netbirdio/netbird/commit/2c9af60d07d6eb4dfc85fe69f3d070609b3f0ec2) Fix peer response - [`79a7a55`](https://github.com/netbirdio/netbird/commit/79a7a55e9fed47e6201f0e869332b8ed44e34c4a) Fix error handling in update account setting - [`8038806`](https://github.com/netbirdio/netbird/commit/8038806694441ef38bdaa94a15aac655ea280ac3) Fix tests - [`31effe0`](https://github.com/netbirdio/netbird/commit/31effe01bd434ae495fcd57b6270f92b1426c198) Set to mandatory the approval_required in api responses - [`8084121`](https://github.com/netbirdio/netbird/commit/80841212d5f10b9e0da0843fa37e5b80a87d414f) Remove additions from go.mod - [`efa5dd7`](https://github.com/netbirdio/netbird/commit/efa5dd7c85ac859b947a62a84a6d92d4cab0670a) Fix account test - [`c1ac660`](https://github.com/netbirdio/netbird/commit/c1ac66075e6c50626d124d86ced648737fa6c750) Fix get network map - [`9597b6e`](https://github.com/netbirdio/netbird/commit/9597b6ef5ff401e368a7e11b26fd670235a4ae46) Fix arguments - [`0893506`](https://github.com/netbirdio/netbird/commit/0893506cd659ad104194957a3c3e2cea48abe0a6) Fix test ### 📊 Changes **27 files changed** (+387 additions, -236 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/testutil.go` (+1 -1) 📝 `client/internal/engine_test.go` (+1 -1) 📝 `go.mod` (+1 -2) 📝 `go.sum` (+2 -4) 📝 `management/client/client_test.go` (+8 -1) 📝 `management/cmd/management.go` (+5 -4) 📝 `management/server/account.go` (+9 -10) 📝 `management/server/account/account.go` (+4 -4) 📝 `management/server/account_test.go` (+27 -7) 📝 `management/server/dns_test.go` (+1 -1) 📝 `management/server/group.go` (+4 -4) 📝 `management/server/http/api/openapi.yml` (+1 -0) 📝 `management/server/http/api/types.gen.go` (+3 -3) 📝 `management/server/http/peers_handler.go` (+83 -38) 📝 `management/server/http/util/util.go` (+2 -0) ➖ `management/server/integrated_approval/interface.go` (+0 -13) 📝 `management/server/integrated_validator.go` (+11 -6) ➕ `management/server/integrated_validator/interface.go` (+16 -0) 📝 `management/server/management_proto_test.go` (+1 -1) 📝 `management/server/management_test.go` (+23 -9) _...and 7 more files_ </details> ### 📄 Description ## Describe your changes - Follow up management-integration changes. - Set mandatory the approval_required flag in API response ## 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 04:07:45 -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#17805