mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #7094] fix(groups): preserve group traffic totals on global client reset #6646
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6646
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/7094
Author: @BenjaminMitchell-D0FB
Created: 11/7/2026
Status: 🔄 Open
Base:
main← Head:BenjaminMitchell-D0FB/fix-global-client-reset-group-traffic📝 Commits (1)
88389f1fix(groups): preserve group traffic totals on global client reset📊 Changes
3 files changed (+49 additions, -0 deletions)
View changed files
📝
internal/web/service/client_group_reset_test.go(+34 -0)📝
internal/web/service/client_groups.go(+12 -0)📝
internal/web/service/client_traffic.go(+3 -0)📄 Description
Summary
Preserve group traffic totals when an administrator selects Reset all client traffic on the Clients page.
Why
The global reset clears client counters while leaving group baselines unchanged. This can erase accumulated group usage or hide new traffic after a group reset. Adjust group baselines in the same transaction before zeroing client counters.
Fixes #7093
Type of change
Areas affected
How was this tested?
git diff --checkpassed.Breaking changes
None.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.