Bug: estimated_charging_time showed 5,576,143 min (elapsed + remaining, station clock in 2015).
Fix verified:
With the old bug, elapsed+remaining would have increased over time. The fix correctly returns only remaining time.
| # | Module | Block | Status | Details |
|---|---|---|---|---|
| 0 | DB | Station Check | PASS | DimaTest online/Available, broker at ocpp-test.zarady.ru |
| 1 | Client | Login + Order | PASS | PZ-0551 created: Демьяна Бедного 17к3, BYD ATTO 3 |
| 2 | Dispatcher | Route + DimaTest | PASS | Route 758a30ff, Tech: Чижов, Vehicle: А099 Сова, Station: DimaTest |
| 3 | Technician | Accept Route | PASS | Route accepted → IN_PROGRESS |
| 4 | Technician | Start Charging | PASS | "Старт станции" → "Зарядная сессия начата". Session active. |
| 5 | DB | Meter Values | PASS | 5 meter values, estimated=2284s (38 min) |
| 6 | Client | UI Time | PASS | "Зарядка завершится через 38 мин", 20%, 0.476 kWh |
| 7 | DB+Client | Time Decrease | PASS | DB: 2284→2260s. UI: 38→37 мин. TIME DECREASED! |
| 8 | OCPP | Dashboard | PASS | ocpp-test.zarady.ru: 1 station connected, 2 sessions, 0.78 kWh |
| 9 | Technician | Stop + Cleanup | PASS | "Стоп станции" → "Зарядная сессия остановлена". "Завершить зарядку" → order AWAITING_PAYMENT, 3.134 kWh. |
| # | Check | Status | Value |
|---|---|---|---|
| V1 | Client authorization | PASS | Phone 9990001111, OTP 654321 |
| V2 | Order created (status=NEW) | PASS | PZ-0551, estimated=NULL |
| V3 | Route with DimaTest station | PASS | PLANNED, tech=Чижов |
| V4 | Route accepted (IN_PROGRESS) | PASS | IN_PROGRESS |
| V5 | "Начать зарядку" button visible | PASS | "Старт станции" shown |
| V6 | Session start_time ≈ NOW | PASS | 16:29:43 (23s ago, NOT 2015) |
| V7 | Meter values arriving | PASS | 5 meter values in 30s |
| V8 | estimated_time reasonable | PASS | 2284s (38 min) — not millions |
| V9 | UI "завершится через N мин" | PASS | "Зарядка завершится через 38 мин" |
| V10 | estimated_time DECREASED (DB) | PASS | 2284 → 2260 sec |
| V11 | UI minutes decreased | PASS | 38 → 37 мин |
| V12 | OCPP Dashboard shows charging | PASS | Connected, 2 active sessions |
| CP | Query | Result | Status |
|---|---|---|---|
| 0 | ChargingStations WHERE DimaTest | online, Available, heartbeat 24min ago | OK |
| 1 | orders WHERE PZ-0551 | NEW, estimated=NULL | OK |
| 2 | routes WHERE 758a30ff | PLANNED, Виталий Чижов | OK |
| 3 | routes status | IN_PROGRESS | OK |
| 4 | charging_sessions | active, start=16:29:43 (≈NOW) | OK |
| 5a | meter_values count | 5 | OK |
| 5b | estimated_charging_time (BEFORE) | 2284 sec (38 min) | OK |
| 7 | estimated_charging_time (AFTER) | 2260 sec (37 min) — DECREASED | OK |