mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6462] [CLOSED] fix(node): skip selected-inbound delete when import is pending #6284
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#6284
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/6462
Author: @mrchatam
Created: 9/11/2026
Status: ❌ Closed
Base:
main← Head:fix/node-selected-inbound-import📝 Commits (3)
c8818e9fix(node): skip selected-inbound delete when import is pendingbbdc01ffix(node): harden selected-inbound import vs delete sweepbcb49f7test(node): marshal inbound_tags as JSON in DelInbound selected-mode test📊 Changes
6 files changed (+183 additions, -12 deletions)
View changed files
📝
internal/web/service/inbound.go(+11 -0)📝
internal/web/service/inbound_node.go(+91 -6)📝
internal/web/service/inbound_node_reconcile_test.go(+30 -5)📝
internal/web/service/node.go(+44 -0)📝
internal/web/service/node_bulk_dispatch_test.go(+6 -1)📝
internal/web/service/port_conflict_test.go(+1 -0)📄 Description
Summary
Fixes #6329 — selecting an existing node inbound in Selected inbounds mode no longer deletes it from the node.
In
ReconcileNode, the selected-mode delete sweep treated a tag present inNode.InboundTagsbut missing a centralinboundsrow as a master-side deletion. That state is also how a pending import looks right after the operator selects a node-created inbound (reconcile runs before the snapshot merge that would adopt it).Change
DelInboundrecords a short-lived per-node tag tombstone when a node-attached inbound is removed centrally.TestReconcileNode_SelectedModeSkipsPendingImport; existing selected-mode delete tests now set a tombstone.Test plan
go test ./internal/web/service/ -run TestReconcileNode_🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.