mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The legacy ?secret=... route stays alive through v1.4.27 so existing Withings subscriptions keep delivering while users re-subscribe. The release-gate cannot tell when "legacy form usage has trended to zero" because the route only emits a fire-and-forget Wide Event warning and the warning text omits the destination URL anyone watching the access log would need. This pass adds: - An in-memory `withings.webhook.legacy_form_total` counter scoped to the process (the right granularity for "since cold-start" usage). - A `getLegacyFormTotal()` accessor + a test-only reset helper so the counter is observable without a backchannel. - A `counters.withingsWebhookLegacyFormTotal` field on the existing `/api/admin/status` payload — the natural surface for ops counters alongside the user / measurement / worker blocks. - The warning text now spells out `/api/withings/webhook/[token]` and the "re-subscribe with the path-segment token form" instruction. - Two new assertions on the webhook test (counter increments on the query path, stays at zero on the header path, warning contains the migration URL) and one new assertion on the admin-status test.