[PR #2228] [MERGED] Add stack trace when saving empty domains #16742

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2228
Author: @mlsmaycon
Created: 7/2/2024
Status: Merged
Merged: 7/2/2024
Merged by: @mlsmaycon

Base: mainHead: add-stack-trace-for-empty-domain


📝 Commits (3)

  • f8388fd Add stack trace when saving empty domains
  • f0ba419 add id query condition const
  • c8049f7 fix log positional args

📊 Changes

1 file changed (+65 additions, -39 deletions)

View changed files

📝 management/server/sql_store.go (+65 -39)

📄 Description

Describe your changes

added temporary domain check for existing accounts to trace where the issue originated

Refactor save account due to complexity score

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/2228 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 7/2/2024 **Status:** ✅ Merged **Merged:** 7/2/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `add-stack-trace-for-empty-domain` --- ### 📝 Commits (3) - [`f8388fd`](https://github.com/netbirdio/netbird/commit/f8388fdf2618e90d02f7d78cb447e20a9afe7662) Add stack trace when saving empty domains - [`f0ba419`](https://github.com/netbirdio/netbird/commit/f0ba419cba95a13847756dcb399cffe16f087b1c) add id query condition const - [`c8049f7`](https://github.com/netbirdio/netbird/commit/c8049f7afc0ee57648130611559684f4c467a256) fix log positional args ### 📊 Changes **1 file changed** (+65 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `management/server/sql_store.go` (+65 -39) </details> ### 📄 Description ## Describe your changes added temporary domain check for existing accounts to trace where the issue originated Refactor save account due to complexity score ## 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:06:30 -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#16742