[PR #1555] [MERGED] Simplify checks definition serialisation #15554

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1555
Author: @surik
Created: 2/9/2024
Status: Merged
Merged: 2/12/2024
Merged by: @surik

Base: feature/posture-checksHead: yury/fix-checks-store-serialisation


📝 Commits (4)

📊 Changes

8 files changed (+116 additions, -134 deletions)

View changed files

📝 management/server/account_test.go (+1 -2)
📝 management/server/http/posture_checks_handler.go (+23 -25)
📝 management/server/http/posture_checks_handler_test.go (+12 -12)
📝 management/server/policy.go (+1 -1)
📝 management/server/policy_test.go (+3 -3)
📝 management/server/posture/checks.go (+61 -75)
📝 management/server/posture/checks_test.go (+14 -16)
📝 management/server/sqlite_store.go (+1 -0)

📄 Description

Describe your changes

As the possible set of check definitions is known, we can be less abstract about the serialization.

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/1555 **Author:** [@surik](https://github.com/surik) **Created:** 2/9/2024 **Status:** ✅ Merged **Merged:** 2/12/2024 **Merged by:** [@surik](https://github.com/surik) **Base:** `feature/posture-checks` ← **Head:** `yury/fix-checks-store-serialisation` --- ### 📝 Commits (4) - [`be2ad10`](https://github.com/netbirdio/netbird/commit/be2ad1089ea35d3dd08cf3b71c23a6e0d61bf687) Simplify checks definition serialisation - [`a16cebf`](https://github.com/netbirdio/netbird/commit/a16cebfc960478f57c0fe6f4710872c539c0cf59) Improve error - [`1f2fd87`](https://github.com/netbirdio/netbird/commit/1f2fd87afdfec729aec46acdb4df656f1ea2bcfd) Implement ChecksDefinition Copy() - [`36571ca`](https://github.com/netbirdio/netbird/commit/36571ca06671ed6e1e87f51e5218d7ccdd707bad) Fix test ### 📊 Changes **8 files changed** (+116 additions, -134 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account_test.go` (+1 -2) 📝 `management/server/http/posture_checks_handler.go` (+23 -25) 📝 `management/server/http/posture_checks_handler_test.go` (+12 -12) 📝 `management/server/policy.go` (+1 -1) 📝 `management/server/policy_test.go` (+3 -3) 📝 `management/server/posture/checks.go` (+61 -75) 📝 `management/server/posture/checks_test.go` (+14 -16) 📝 `management/server/sqlite_store.go` (+1 -0) </details> ### 📄 Description ## Describe your changes As the possible set of check definitions is known, we can be less abstract about the serialization. ## 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 03:07:56 -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#15554