mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6454] [MERGED] fix(clients): use EffectiveFlow in BulkAttach #6276
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#6276
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/6454
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei
Base:
main← Head:fix/bulkattach-effective-flow📝 Commits (3)
8375f37fix(clients): use EffectiveFlow in BulkAttach5abff0atest(clients): cover BulkAttach Vision flow when clients.flow is zeroed9a7c74efix(clients): only apply EffectiveFlow when present in BulkAttach📊 Changes
2 files changed (+90 additions, -0 deletions)
View changed files
📝
internal/web/service/client_bulk.go(+14 -0)📝
internal/web/service/client_flow_isolation_test.go(+76 -0)📄 Description
Summary
Fixes #6432.
Attachalready seeds the wire client fromEffectiveFlowso a zeroedclients.flowcolumn (after a non-flow inbound sync) does not drop Vision.BulkAttachstill usedrec.ToClient()as-is, and the inbound "attach existing" modal always posts to the bulk endpoint — so Vision was lost on that path.Resolve flows with
EffectiveFlowsByEmailsonce per bulk attach and setclient.FlowbeforeclientWithInboundFlow. Adds a regression test next to the existing Attach coverage.Test plan
clients.flowzeroed: bulk-attach to another Reality inbound keepsxtls-rprx-visiongo test ./internal/web/service/ -run 'TestBulkAttach_PreservesVisionFlowWhenCanonicalColumnZeroed|TestAttach_PreservesVisionFlowWhenCanonicalColumnZeroed'🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.