feat(houseofrc): preview and send results to the event's entries, heats or final placings (1.83.0)

This commit is contained in:
larssand committed 2026-11-08 20:44:23 +01:00
1 parent f4a62b92d2
commit ebdc6104e6
17 files changed
+295 -15

No files matched your search

+2 -2
View File
@@ -1010,8 +1010,8 @@ Status 2026-11-08 (1.78.0-1.80.0):
- [x] 1.81.0: House of RC added a timing API (2026-11-08). The club's organization key (from `/v1/me`, e.g. Jämtlands MK = 233) lists its events (`/v1/events?parent_id=`), and `GET /v1/timing/events/{id}/entries` gives the classes, entries (status, driver number, transponders, club, car) and drivers. The old `/results` is gone. Contact details are dropped on the server.
Next:
- [ ] **Results back:** `POST /v1/timing/events/{id}/entries` with `{ entries: [{ id, ranking, qualification, points, tq, laps_time, data }] }`, all or nothing, up to 2000 entries. `data.result` is shown on House of RC (`main`, `main_position`, `bumped_from`, `race`, `best_lap`, `average_lap`, `points`, `heats[]`). The race already keeps each driver's entry id (`event.houseOfRc.entryIds`).
- [ ] **Semi-live (Conny's idea):** post after every heat, with that heat's results in `data`; House of RC would add a view showing only the latest heat.
- [x] 1.83.0 **Results back:** `POST /v1/timing/events/{id}/entries` with `{ entries: [{ id, ranking, qualification, points, tq, laps_time, data }] }`, all or nothing, up to 2000 entries. `data.result` is shown on House of RC (`main`, `main_position`, `bumped_from`, `race`, `best_lap`, `average_lap`, `points`, `heats[]`). The race already keeps each driver's entry id (`event.houseOfRc.entryIds`).
- [ ] **Semi-live (Conny's idea):** by hand since 1.83.0 (send "Heats and qualifying" after each heat); still to do: send automatically when a heat finishes.
- [x] 1.82.0: re-fetch in Manage (late entries, withdrawals), remembered class mapping, brand differences offered.
- [ ] One click for all classes: create one race per House of RC class.
- [ ] The URL and JSON body for posting results, with an example of a qualifying-plus-finals result (TQ, A/B/C finals). Can a result be posted again, overwriting the previous one, after a correction?