[PR #3569] [MERGED] fix: fix delete method #5443

Closed
opened 2026-10-31 20:47:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3569
Author: @konstpic
Created: 9/29/2025
Status: ✅ Merged
Merged: 9/29/2025
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (1)

📊 Changes

1 file changed (+44 additions, -16 deletions)

View changed files

📝 web/job/ldap_sync_job.go (+44 -16)

📄 Description

What is the pull request?

This PR improves the LDAP sync job by fixing the deletion method for clients not present in LDAP. The main changes include:

  • Batch deletion of clients to avoid multiple Xray restarts.
  • Deletion now happens in chunks (50 clients per batch) to reduce load on the panel.
  • Ensures Xray restart happens only once after all deletions.
  • Minor cleanups in client JSON serialization for batch operations.

These changes improve stability when handling large numbers of clients.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

N/A – backend logic only.


🔄 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/MHSanaei/3x-ui/pull/3569 **Author:** [@konstpic](https://github.com/konstpic) **Created:** 9/29/2025 **Status:** ✅ Merged **Merged:** 9/29/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`cbb396e`](https://github.com/MHSanaei/3x-ui/commit/cbb396ee1abc205790d65c142843baaab99d71eb) fix: fix delete method ### 📊 Changes **1 file changed** (+44 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `web/job/ldap_sync_job.go` (+44 -16) </details> ### 📄 Description ## What is the pull request? This PR improves the LDAP sync job by fixing the deletion method for clients not present in LDAP. The main changes include: - Batch deletion of clients to avoid multiple Xray restarts. - Deletion now happens in chunks (50 clients per batch) to reduce load on the panel. - Ensures Xray restart happens only once after all deletions. - Minor cleanups in client JSON serialization for batch operations. These changes improve stability when handling large numbers of clients. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots N/A – backend logic only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:02 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5443
No description provided.