BUG: Mismatched keys in Ombi Webhook Status Endpoint #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Ombi Webhook status handler attempts to read metrics.eventCount and metrics.lastEventTimestamp. However, the cache utility writes metrics.eventsReceived and metrics.lastWebhookTimestamp. This mismatch leaves statistics showing 0/null in the admin UI. Integration tests mocked wrong keys, masking this issue.
Resolution: Corrected server/routes/ombi.js to read eventsReceived (from metrics.eventsReceived) and lastWebhookTimestamp (from metrics.lastWebhookTimestamp) to match the properties stored by the cache. Aligned the mock cache response OMBI_WEBHOOK_METRICS in tests/integration/ombi.test.js to match the correct keys.