[PR #2775] [MERGED] mapper: send change instead of full update #2854

Closed
opened 2025-12-29 04:19:22 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2775
Author: @kradalby
Created: 9/12/2025
Status: Merged
Merged: 9/17/2025
Merged by: @kradalby

Base: mainHead: kradalby/batcher-granular-events


📝 Commits (7)

  • cbe2e5c mapper: send change instead of full for nodes
  • 57cfc62 mapper: only send minimal selfnode outside of full update
  • f534d42 mapper: send expiry as patch
  • 7f46971 mapper: send selfupdate on NewOrUpdate change
  • 44273e5 mapper: simplify online status
  • 911f0e9 policy: only rebuild ssh policy when needed
  • 11e5cb4 policy: only rebuild ssh policy when needed

📊 Changes

8 files changed (+96 additions, -69 deletions)

View changed files

📝 hscontrol/db/node.go (+0 -37)
📝 hscontrol/mapper/batcher.go (+26 -11)
📝 hscontrol/mapper/batcher_test.go (+9 -3)
📝 hscontrol/mapper/builder.go (+4 -10)
📝 hscontrol/mapper/mapper.go (+20 -1)
📝 hscontrol/policy/v2/policy.go (+17 -1)
📝 hscontrol/state/state.go (+7 -3)
📝 hscontrol/types/change/change.go (+13 -3)

📄 Description

No description provided


🔄 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/juanfont/headscale/pull/2775 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 9/12/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `kradalby/batcher-granular-events` --- ### 📝 Commits (7) - [`cbe2e5c`](https://github.com/juanfont/headscale/commit/cbe2e5cdce2c1c924c828cb07a87162b65b4d0a0) mapper: send change instead of full for nodes - [`57cfc62`](https://github.com/juanfont/headscale/commit/57cfc624184bef01c7ad3e6cf8bee85eb2b94f77) mapper: only send minimal selfnode outside of full update - [`f534d42`](https://github.com/juanfont/headscale/commit/f534d429db90ab790212cf2095fb3cc37971e6b4) mapper: send expiry as patch - [`7f46971`](https://github.com/juanfont/headscale/commit/7f469714ed68210342e7dfd0f764ff5af6b73790) mapper: send selfupdate on NewOrUpdate change - [`44273e5`](https://github.com/juanfont/headscale/commit/44273e531f6bb24d847e3cc6944f4a48210c906a) mapper: simplify online status - [`911f0e9`](https://github.com/juanfont/headscale/commit/911f0e926b7fa016234da724afc7ec44bff021bc) policy: only rebuild ssh policy when needed - [`11e5cb4`](https://github.com/juanfont/headscale/commit/11e5cb4f7bc0b8d911b42cb6101b823ccba0a93a) policy: only rebuild ssh policy when needed ### 📊 Changes **8 files changed** (+96 additions, -69 deletions) <details> <summary>View changed files</summary> 📝 `hscontrol/db/node.go` (+0 -37) 📝 `hscontrol/mapper/batcher.go` (+26 -11) 📝 `hscontrol/mapper/batcher_test.go` (+9 -3) 📝 `hscontrol/mapper/builder.go` (+4 -10) 📝 `hscontrol/mapper/mapper.go` (+20 -1) 📝 `hscontrol/policy/v2/policy.go` (+17 -1) 📝 `hscontrol/state/state.go` (+7 -3) 📝 `hscontrol/types/change/change.go` (+13 -3) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:19:22 +01:00
adam closed this issue 2025-12-29 04:19:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2854