[PR #5304] [CLOSED] [client] fix profiles #27642

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5304
Author: @sopex
Created: 2/12/2026
Status: Closed

Base: mainHead: main


📝 Commits (3)

📊 Changes

5 files changed (+299 additions, -76 deletions)

View changed files

client/cmd/flag_guard_test.go (+74 -0)
📝 client/cmd/up.go (+86 -71)
client/server/profile_isolation_test.go (+106 -0)
📝 client/server/server.go (+1 -1)
📝 client/ui/client_ui.go (+32 -4)

📄 Description

Try to fix the completely broken Profiles on atleast windows GUI with self hosted servers.

https://github.com/netbirdio/netbird/issues/5207

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

  • Bug Fixes

    • Respect explicit flag changes to avoid applying defaults unintentionally.
    • Ensure config updates affect only the intended profile (profile isolation).
    • Improve profile-switch detection and refresh cached management URL after switches.
  • New Features

    • Update and up requests now include active profile name and username when available.
  • Tests

    • Added unit tests for flag-change behavior and profile isolation.

🔄 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/5304 **Author:** [@sopex](https://github.com/sopex) **Created:** 2/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`e197a62`](https://github.com/netbirdio/netbird/commit/e197a62b409076be0b4f1591d38d7b76b3467144) test - [`d9e08e7`](https://github.com/netbirdio/netbird/commit/d9e08e77d6640574a0344c8a011144dfd62da7da) coderabit - [`364e745`](https://github.com/netbirdio/netbird/commit/364e745537e06c2fbf614b7712d1c4877738f09f) Update client_ui.go ### 📊 Changes **5 files changed** (+299 additions, -76 deletions) <details> <summary>View changed files</summary> ➕ `client/cmd/flag_guard_test.go` (+74 -0) 📝 `client/cmd/up.go` (+86 -71) ➕ `client/server/profile_isolation_test.go` (+106 -0) 📝 `client/server/server.go` (+1 -1) 📝 `client/ui/client_ui.go` (+32 -4) </details> ### 📄 Description ## Try to fix the completely broken Profiles on atleast windows GUI with self hosted servers. ## https://github.com/netbirdio/netbird/issues/5207 ## 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 * **Bug Fixes** * Respect explicit flag changes to avoid applying defaults unintentionally. * Ensure config updates affect only the intended profile (profile isolation). * Improve profile-switch detection and refresh cached management URL after switches. * **New Features** * Update and up requests now include active profile name and username when available. * **Tests** * Added unit tests for flag-change behavior and profile isolation. <!-- 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 07:09:00 -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#27642