Files
haproxy-openmanager/backend
taylanbakircioglu 7d18341319 Fix: Backend Server config status not updating on Reject/Undo operations
🐛 Critical Bug Fix - Server Config Status:
- Server edit → Reject → Config Status stayed PENDING (should be REJECTED)
- Server edit → Reject → Undo → Config Status stayed REJECTED (should be PENDING)

 Fixed Operations:

1. Reject All Pending Changes (Line 4088-4099):
   - Extract server IDs from version names: 'server-{id}-update-{timestamp}'
   - Mark servers as REJECTED: UPDATE backend_servers SET last_config_status = 'REJECTED'
   - Added to existing logic (frontends, backends, WAF already working)

2. Undo Reject (Line 3552-3578):
   - Extract server IDs from version names
   - Mark servers as PENDING: UPDATE backend_servers SET last_config_status = 'PENDING'
   - Added to existing undo logic

🎯 Version Name Patterns:
  - Frontend: frontend-{id}-{action}-{timestamp}
  - Backend: backend-{id}-{action}-{timestamp}
  - WAF: waf-{id}-{action}-{timestamp}
  - Server: server-{id}-{action}-{timestamp} ← Now supported!

 Complete Workflow Now:
  User edits server → PENDING ✓
  User rejects → REJECTED ✓ (FIXED)
  User undos reject → PENDING ✓ (FIXED)
  User applies → APPLIED ✓ (Already working)

🔍 Regex Pattern:
  r'^server-(\d+)-' matches:
  - server-220-update-1762457460 ✓
  - server-15-create-1762457500 ✓

Impact: All entity types (Frontend, Backend, WAF, Server) now have consistent config status behavior
2025-11-07 11:51:15 +03:00
..
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00
2025-10-27 12:14:03 +03:00