[PR #2075] [MERGED] Add FindExistingPostureCheck #16373

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2075
Author: @pascal-fischer
Created: 5/29/2024
Status: Merged
Merged: 5/30/2024
Merged by: @pascal-fischer

Base: mainHead: feature/find-existing-posture-check


📝 Commits (6)

  • ea8c047 refactor posture check conversion + add find posture check method
  • 1cde166 extract posture check creation
  • 613530c fix accountmanager mock
  • caace24 simplify
  • 7170e41 fix account manager mock
  • 72f3663 refactor constructor

📊 Changes

7 files changed (+205 additions, -141 deletions)

View changed files

📝 management/server/account.go (+5 -0)
📝 management/server/file_store.go (+5 -0)
📝 management/server/http/posture_checks_handler.go (+8 -141)
📝 management/server/mock_server/account_mock.go (+9 -0)
📝 management/server/posture/checks.go (+160 -0)
📝 management/server/sql_store.go (+16 -0)
📝 management/server/store.go (+2 -0)

📄 Description

Describe your changes

This PR refactors the conversion of posture checks from API objects to system objects and backward.
It adds a method to find an existing posture check definition based on the check definition.

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/2075 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 5/29/2024 **Status:** ✅ Merged **Merged:** 5/30/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `feature/find-existing-posture-check` --- ### 📝 Commits (6) - [`ea8c047`](https://github.com/netbirdio/netbird/commit/ea8c0474b1cd0e048ff0d07f281ccb047ae59d2e) refactor posture check conversion + add find posture check method - [`1cde166`](https://github.com/netbirdio/netbird/commit/1cde1665f52f71ce4513c849ed4d95197ec8bcf8) extract posture check creation - [`613530c`](https://github.com/netbirdio/netbird/commit/613530c7ae623e3f4c5d063028f6fa8075732654) fix accountmanager mock - [`caace24`](https://github.com/netbirdio/netbird/commit/caace24821f6bba9d1122f6840bfa24a56730889) simplify - [`7170e41`](https://github.com/netbirdio/netbird/commit/7170e41d45d06693356370cb0d351d974ec427f4) fix account manager mock - [`72f3663`](https://github.com/netbirdio/netbird/commit/72f3663a69fa9a5ab2f4c30b86263685af72bf50) refactor constructor ### 📊 Changes **7 files changed** (+205 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+5 -0) 📝 `management/server/file_store.go` (+5 -0) 📝 `management/server/http/posture_checks_handler.go` (+8 -141) 📝 `management/server/mock_server/account_mock.go` (+9 -0) 📝 `management/server/posture/checks.go` (+160 -0) 📝 `management/server/sql_store.go` (+16 -0) 📝 `management/server/store.go` (+2 -0) </details> ### 📄 Description ## Describe your changes This PR refactors the conversion of posture checks from API objects to system objects and backward. It adds a method to find an existing posture check definition based on the check definition. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] 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:06:02 -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#16373