Commit Graph

5 Commits

Author SHA1 Message Date
949a12cea7 perf(core): implement efficient bulk user deletion
Revamps the entire user deletion process to resolve critical performance bottlenecks that caused the web panel and database to freeze when removing multiple users.

- **Backend:** Core scripts (`kickuser.py`, `remove_user.py`) and the database layer are re-engineered to handle multiple users in a single, efficient batch operation using MongoDB's `delete_many`.
- **API:** A new `POST /api/v1/users/bulk-delete` endpoint is introduced for batch removals. The existing single-user `DELETE` endpoint is fixed to align with the new bulk logic.
- **Frontend:** The Users page now intelligently calls the bulk API when multiple users are selected, drastically improving UI responsiveness and reducing server load.
2025-09-13 16:15:41 +00:00
b99198b41d chore: Improve script import mechanism and remove boilerplate 2025-09-10 15:51:17 +03:30
80c21ccd07 feat: migrate user management from json to mongodb 2025-09-06 22:38:32 +03:30
2008156e20 Fix: Remove misuse of asyncio.to_thread with async context manager in remove_user.py 2025-05-02 13:26:57 +03:30
7e71b1c33b Refactor: Implement user removal in Python 2025-05-02 11:40:57 +03:30