mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-20 17:43:29 +00:00
7d18341319
🐛 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