[PR #799] [MERGED] Feat upgrade management api policy #13011

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/799
Author: @gigovich
Created: 4/9/2023
Status: Merged
Merged: 4/17/2023
Merged by: @gigovich

Base: feat-linux-firewall-supportHead: feat-upgrade-management-api-policy


📝 Commits (10+)

  • d95d106 Modify policy rule to handle changes in UI
  • 0d230da Fix get policies handler
  • a68cdf9 Fix API definition to create policy object
  • 0765427 Follow changes in the Policy dashboard
  • c643177 Handle direct ACL rules
  • 5638f54 Rename policies handler
  • d632f6b Add test for the policy handler.
  • 3695109 Fix tests for policies handler
  • 3b4fafe After rebase test fix
  • 11087ed After review fixes

📊 Changes

11 files changed (+800 additions, -197 deletions)

View changed files

📝 management/server/account_test.go (+5 -4)
📝 management/server/http/api/openapi.yml (+80 -31)
📝 management/server/http/api/types.gen.go (+155 -14)
📝 management/server/http/policies_handler.go (+110 -101)
management/server/http/policies_handler_test.go (+315 -0)
📝 management/server/peer_test.go (+5 -4)
📝 management/server/policy.go (+75 -14)
📝 management/server/policy_test.go (+32 -16)
📝 management/server/rego/default_policy.rego (+9 -2)
📝 management/server/rego/default_policy_module.rego (+5 -4)
📝 management/server/rule.go (+9 -7)

📄 Description

Describe your changes

Fixes for management policies API to handle UI 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/799 **Author:** [@gigovich](https://github.com/gigovich) **Created:** 4/9/2023 **Status:** ✅ Merged **Merged:** 4/17/2023 **Merged by:** [@gigovich](https://github.com/gigovich) **Base:** `feat-linux-firewall-support` ← **Head:** `feat-upgrade-management-api-policy` --- ### 📝 Commits (10+) - [`d95d106`](https://github.com/netbirdio/netbird/commit/d95d10601567ac3e9f2c8a58d92448b886cb111b) Modify policy rule to handle changes in UI - [`0d230da`](https://github.com/netbirdio/netbird/commit/0d230dae2ea735adb227c42e390ef7443eb602d1) Fix get policies handler - [`a68cdf9`](https://github.com/netbirdio/netbird/commit/a68cdf99a5d855e128ef5f0947cd86ad5669e499) Fix API definition to create policy object - [`0765427`](https://github.com/netbirdio/netbird/commit/07654273fb7c8acfc6c5a4aa6c39c76c83a7c0e6) Follow changes in the Policy dashboard - [`c643177`](https://github.com/netbirdio/netbird/commit/c64317739673a0bec70ec27cd2d8d3ec013dfed7) Handle direct ACL rules - [`5638f54`](https://github.com/netbirdio/netbird/commit/5638f5433f3f46436e675c4533f999e5bdb4e8df) Rename policies handler - [`d632f6b`](https://github.com/netbirdio/netbird/commit/d632f6b7c19f07d859085b29573ecd83eaff141b) Add test for the policy handler. - [`3695109`](https://github.com/netbirdio/netbird/commit/3695109be12b3c1be11c8b024e28165e1f123a2d) Fix tests for policies handler - [`3b4fafe`](https://github.com/netbirdio/netbird/commit/3b4fafeca75628ee297f31433192570b4e006a2a) After rebase test fix - [`11087ed`](https://github.com/netbirdio/netbird/commit/11087edf7e404a70a0c8c7f3864cc2f6260e700d) After review fixes ### 📊 Changes **11 files changed** (+800 additions, -197 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account_test.go` (+5 -4) 📝 `management/server/http/api/openapi.yml` (+80 -31) 📝 `management/server/http/api/types.gen.go` (+155 -14) 📝 `management/server/http/policies_handler.go` (+110 -101) ➕ `management/server/http/policies_handler_test.go` (+315 -0) 📝 `management/server/peer_test.go` (+5 -4) 📝 `management/server/policy.go` (+75 -14) 📝 `management/server/policy_test.go` (+32 -16) 📝 `management/server/rego/default_policy.rego` (+9 -2) 📝 `management/server/rego/default_policy_module.rego` (+5 -4) 📝 `management/server/rule.go` (+9 -7) </details> ### 📄 Description ## Describe your changes Fixes for management policies API to handle UI changes ## Issue ticket number and link ### Checklist - [x] 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 02:07:14 -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#13011