[PR #179] [MERGED] Management - add serial to Network reflecting network updates #2591

Closed
opened 2025-11-20 07:11:47 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/179
Author: @braginini
Created: 1/1/2022
Status: Merged
Merged: 1/14/2022
Merged by: @braginini

Base: mainHead: add-modification-id


📝 Commits (10+)

  • 9619e66 chore: [management] - add account modification ID
  • 65f32c7 Merge remote-tracking branch 'origin/main' into add-modification-id
  • a5b23d9 Fix concurrency on the client (#183)
  • e8e4038 chore: move ModificationId to Network from Account
  • 3a07eaf feature: increment Network modification ID when adding/removing peers
  • 2281d5b chore: extract network struct init to network.go
  • effbe7a chore: add modificationId test when adding peer to the account
  • fdc0e20 test: add ModificationID test on AddPeer and DeletePeer
  • e25b813 refactor: rename modificationId to lastChangeId
  • a7ab823 refactor: rename lastChangeId to serial - a better fitting name

📊 Changes

31 files changed (+1346 additions, -919 deletions)

View changed files

.github/workflows/golang-test-build.yml (+44 -0)
📝 .github/workflows/golang-test.yml (+14 -40)
📝 client/cmd/up.go (+1 -0)
📝 client/cmd/up_test.go (+1 -1)
client/internal/cond.go (+0 -32)
client/internal/connection.go (+0 -425)
📝 client/internal/engine.go (+154 -166)
client/internal/engine_test.go (+208 -0)
client/internal/peer/conn.go (+421 -0)
client/internal/peer/error.go (+56 -0)
client/internal/peer/status.go (+25 -0)
client/internal/proxy/dummy.go (+68 -0)
client/internal/proxy/proxy.go (+24 -0)
client/internal/proxy/wireguard.go (+121 -0)
client/internal/wgproxy.go (+0 -131)
📝 client/testdata/management.json (+34 -34)
📝 client/testdata/store.json (+12 -1)
📝 iface/iface.go (+3 -6)
📝 iface/iface_darwin.go (+1 -1)
📝 iface/iface_linux.go (+3 -25)

...and 11 more files

📄 Description

Just adds ModificationId property to the Network struct.
it is incremented on:

  • AddPeer
  • DeletePeer

🔄 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/179 **Author:** [@braginini](https://github.com/braginini) **Created:** 1/1/2022 **Status:** ✅ Merged **Merged:** 1/14/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `add-modification-id` --- ### 📝 Commits (10+) - [`9619e66`](https://github.com/netbirdio/netbird/commit/9619e66df558c124715ba2a9bed95f287d7a5628) chore: [management] - add account modification ID - [`65f32c7`](https://github.com/netbirdio/netbird/commit/65f32c7b970637e7dd1a08b044df7a2614ab88a5) Merge remote-tracking branch 'origin/main' into add-modification-id - [`a5b23d9`](https://github.com/netbirdio/netbird/commit/a5b23d9b953eb045279294c286ade4273ca6c8bf) Fix concurrency on the client (#183) - [`e8e4038`](https://github.com/netbirdio/netbird/commit/e8e4038d580b516390aba4047915db9f17396498) chore: move ModificationId to Network from Account - [`3a07eaf`](https://github.com/netbirdio/netbird/commit/3a07eaff793d35351ca627ad7abb081530063f49) feature: increment Network modification ID when adding/removing peers - [`2281d5b`](https://github.com/netbirdio/netbird/commit/2281d5beedbe32e823299a6da20af5e4fcb64e41) chore: extract network struct init to network.go - [`effbe7a`](https://github.com/netbirdio/netbird/commit/effbe7a06cacc43b5fb87f2e3cd142184fc5c2e6) chore: add modificationId test when adding peer to the account - [`fdc0e20`](https://github.com/netbirdio/netbird/commit/fdc0e202f471513dbdc71a6d94461fc4489424b3) test: add ModificationID test on AddPeer and DeletePeer - [`e25b813`](https://github.com/netbirdio/netbird/commit/e25b8136b8f6be5ba919ccdea0e554b2e214a1ef) refactor: rename modificationId to lastChangeId - [`a7ab823`](https://github.com/netbirdio/netbird/commit/a7ab8239ee261a52b520469fe2710b9ef04f9073) refactor: rename lastChangeId to serial - a better fitting name ### 📊 Changes **31 files changed** (+1346 additions, -919 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/golang-test-build.yml` (+44 -0) 📝 `.github/workflows/golang-test.yml` (+14 -40) 📝 `client/cmd/up.go` (+1 -0) 📝 `client/cmd/up_test.go` (+1 -1) ➖ `client/internal/cond.go` (+0 -32) ➖ `client/internal/connection.go` (+0 -425) 📝 `client/internal/engine.go` (+154 -166) ➕ `client/internal/engine_test.go` (+208 -0) ➕ `client/internal/peer/conn.go` (+421 -0) ➕ `client/internal/peer/error.go` (+56 -0) ➕ `client/internal/peer/status.go` (+25 -0) ➕ `client/internal/proxy/dummy.go` (+68 -0) ➕ `client/internal/proxy/proxy.go` (+24 -0) ➕ `client/internal/proxy/wireguard.go` (+121 -0) ➖ `client/internal/wgproxy.go` (+0 -131) 📝 `client/testdata/management.json` (+34 -34) 📝 `client/testdata/store.json` (+12 -1) 📝 `iface/iface.go` (+3 -6) 📝 `iface/iface_darwin.go` (+1 -1) 📝 `iface/iface_linux.go` (+3 -25) _...and 11 more files_ </details> ### 📄 Description Just adds ModificationId property to the Network struct. it is incremented on: - AddPeer - DeletePeer --- <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 2025-11-20 07:11:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2591