igor_nadein
518fb6e790
refactor(employees): remove _perform_user_update, simplify me() PATCH
Removed 180+ lines of complex update logic:
Deleted:
- _perform_user_update(): 180 lines of manual LDAP/DB coordination
- Complex validation and error handling
- Manual transaction management
- Direct DirectoryService.update_user() calls
Simplified me() PATCH:
- Now uses standard perform_update() mechanism
- 4 lines instead of 15
- Consistent with partial_update()
- Миксин управляет всем автоматически
Total code reduction in employees.py: ~400 lines removed
(create: -150, partial_update: -200, _perform_user_update: -180)
File now: ~800 lines (was 1200+)
Benefits:
- Single source of truth for update logic
- No code duplication
- Automatic transaction management
- Cleaner, easier to maintain
manage.py check: no issues
2026-02-16 17:10:03 +03:00
..
2026-02-16 16:32:12 +03:00
2025-07-30 08:15:53 +03:00
2025-12-01 14:19:58 +03:00
2026-02-16 17:10:03 +03:00
2025-07-30 08:15:53 +03:00
2025-07-30 08:15:53 +03:00
2025-08-25 17:01:58 +03:00
2025-12-05 10:28:23 +03:00
2025-08-25 17:01:58 +03:00
2025-11-20 18:52:29 +03:00
2025-12-29 15:48:19 +03:00
2026-01-09 15:13:36 +03:00