Skip to content

feat: add admin endpoints for webhook replay and PR/issue refetch#114

Closed
Kelvinchen03 wants to merge 1 commit into
entrius:testfrom
Kelvinchen03:feat/webhook-replay-and-refetch-endpoints
Closed

feat: add admin endpoints for webhook replay and PR/issue refetch#114
Kelvinchen03 wants to merge 1 commit into
entrius:testfrom
Kelvinchen03:feat/webhook-replay-and-refetch-endpoints

Conversation

@Kelvinchen03
Copy link
Copy Markdown

Summary

Adds admin endpoints for webhook replay and manual data refetch to recover from handler failures and data drift. Extends webhook_deliveries table to store payloads and track errors, enabling 30-day replay capability.

Related Issues

Closes #99

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  1. Applied database migration: 11_webhook_deliveries_extended.sql
  2. Tested webhook failure tracking - verified failed_at and last_error populated
  3. Tested replay endpoint - successfully reprocessed failed webhook delivery
  4. Tested PR refetch endpoint - verified jobs enqueued and scoring_data_stored reset
  5. Verified payload retention logic (7 days without payload, 30 days with payload)

Checklist

  • I have read the Contributing Guide
  • Code builds without errors
  • New and existing tests pass (if applicable)
  • Documentation updated (if applicable)
  • No unnecessary dependencies added

@anderdc anderdc closed this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhook replay and manual re-ingest endpoints

2 participants