[PR #875] [MERGED] Avoid storing account if no peer meta or expiration change #13101

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/875
Author: @mlsmaycon
Created: 5/18/2023
Status: Merged
Merged: 5/18/2023
Merged by: @mlsmaycon

Base: mainHead: fix/avoid-storing-account-if-no-peer-change


📝 Commits (4)

  • 677a043 Avoid storing account if no peer meta or expiration change
  • a8bbc32 remove extra log
  • 4c214bc Update management/server/peer.go
  • 342cd4b Clarify why we need to skip account update

📊 Changes

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

View changed files

📝 management/server/peer.go (+38 -10)

📄 Description

Describe your changes

We were saving the account even when there was no update to a peer's meta or expiration information

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/875 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 5/18/2023 **Status:** ✅ Merged **Merged:** 5/18/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/avoid-storing-account-if-no-peer-change` --- ### 📝 Commits (4) - [`677a043`](https://github.com/netbirdio/netbird/commit/677a043db72434d8a80d628e9f0654a2141dd701) Avoid storing account if no peer meta or expiration change - [`a8bbc32`](https://github.com/netbirdio/netbird/commit/a8bbc324dc9eacd7062980f2d4f87badf4866755) remove extra log - [`4c214bc`](https://github.com/netbirdio/netbird/commit/4c214bc103cb8ec4cf8c53e9b624d50660afd02a) Update management/server/peer.go - [`342cd4b`](https://github.com/netbirdio/netbird/commit/342cd4b866484282c37067f688006908afa101c5) Clarify why we need to skip account update ### 📊 Changes **1 file changed** (+38 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `management/server/peer.go` (+38 -10) </details> ### 📄 Description ## Describe your changes We were saving the account even when there was no update to a peer's meta or expiration information ## 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 02:07:27 -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#13101