[PR #1664] [CLOSED] Include users' own activity in active users calculation #17725

Open
opened 2026-08-05 04:07:40 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1664
Author: @lixmal
Created: 3/4/2024
Status: Closed

Base: mainHead: fix/include-active-dashboard-users


📝 Commits (1)

  • 7649b96 Include users' own activity in active users calculation

📊 Changes

5 files changed (+63 additions, -32 deletions)

View changed files

📝 management/server/file_store.go (+17 -12)
📝 management/server/file_store_test.go (+4 -4)
📝 management/server/sqlite_store.go (+7 -4)
📝 management/server/sqlite_store_test.go (+4 -4)
📝 management/server/testdata/store_stats.json (+31 -8)

📄 Description

Describe your changes

Updated the active users calculation to include both users' own login activity and their peers' activity. Ensured service users are excluded accurately across SQL and FileStore implementations.

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/1664 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 3/4/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/include-active-dashboard-users` --- ### 📝 Commits (1) - [`7649b96`](https://github.com/netbirdio/netbird/commit/7649b962c17cc9d3f6e298405e95f3f7518da3ba) Include users' own activity in active users calculation ### 📊 Changes **5 files changed** (+63 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `management/server/file_store.go` (+17 -12) 📝 `management/server/file_store_test.go` (+4 -4) 📝 `management/server/sqlite_store.go` (+7 -4) 📝 `management/server/sqlite_store_test.go` (+4 -4) 📝 `management/server/testdata/store_stats.json` (+31 -8) </details> ### 📄 Description ## Describe your changes Updated the active users calculation to include both users' own login activity and their peers' activity. Ensured service users are excluded accurately across SQL and FileStore implementations. ## Issue ticket number and link ### Checklist - [] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [x] 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:07:40 -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#17725