CanbiZ (MickLesk) 88a540e457 Support PATCH updates for telemetry status
Send only changing fields for status updates and add server-side update flow.

- Trimmed telemetry JSON payload in misc/api.func to include only status, error, and exit_code (removed static fields and pve_version) so updates are minimal.
- Added TelemetryStatusUpdate type and new PBClient methods: FindRecordByRandomID, UpdateTelemetryStatus, and UpsertTelemetry in misc/data/service.go. UpsertTelemetry creates a record for status="installing", otherwise finds the record by random_id and PATCHes only status/error/exit_code (fallbacks to create if not found).
- Relaxed validation logic in validate(): detect updates (status != "installing") and skip certain strict numeric checks for update requests while keeping required fields and other validations.
- Main handler now calls UpsertTelemetry instead of CreateTelemetry and logs generic errors.

These changes allow idempotent, minimal updates to existing telemetry records and avoid repeatedly sending/storing unchanged metadata.
2026-02-09 17:07:30 +01:00
..
2026-01-06 12:43:41 +01:00
2025-03-03 10:10:57 +01:00
2026-01-06 12:43:41 +01:00
2026-01-30 10:21:55 +01:00
2025-12-10 07:42:09 +01:00
2026-02-03 14:27:09 +01:00