[PR #5844] [MERGED] [management] use sql null vars #28634

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5844
Author: @pascal-fischer
Created: 4/9/2026
Status: Merged
Merged: 4/9/2026
Merged by: @pascal-fischer

Base: mainHead: fix/l4-listen-port


📝 Commits (3)

📊 Changes

1 file changed (+10 additions, -3 deletions)

View changed files

📝 management/server/store/sql_store.go (+10 -3)

📄 Description

Describe your changes

Stack

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)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Refactor
    • Improved internal handling of service configuration data, yielding more reliable loading and validation of service port settings and fewer runtime inconsistencies.
    • Adjusted database value processing to ensure safer and more robust interpretation of optional port-related fields; no user-facing API changes.

🔄 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/5844 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `fix/l4-listen-port` --- ### 📝 Commits (3) - [`ca7495b`](https://github.com/netbirdio/netbird/commit/ca7495b323093ca79c3315a22523e3bb0e7fdfd5) use sql null handlers - [`059f8aa`](https://github.com/netbirdio/netbird/commit/059f8aa612a4af3399cb5b5316a6ec665bf926fd) use int64 - [`274b477`](https://github.com/netbirdio/netbird/commit/274b4777201f37bec9d3510da525176e5789e786) use int64 ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `management/server/store/sql_store.go` (+10 -3) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### 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) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved internal handling of service configuration data, yielding more reliable loading and validation of service port settings and fewer runtime inconsistencies. * Adjusted database value processing to ensure safer and more robust interpretation of optional port-related fields; no user-facing API changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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 08:06:40 -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#28634