Commit 8465098
committed
fix: correct webhook log status field and close a logging gap
logWebhookAction hardcoded status: 'SUCCESS' on every WebhookLog row,
including calls made with action: 'FAILED' and failed test deliveries -
every failure in the audit trail was mislabeled as successful, which
would silently break any dashboard or filter built on status.
- Add an explicit status param to logWebhookAction (default SUCCESS);
pass FAILURE at the three call sites that log a failure
- Add a RETRY_SCHEDULED/FAILURE log for a failed attempt that still has
retries remaining - previously only the terminal outcomes (delivered
or exhausted) were logged, so the audit trail skipped every attempt
in between
- Add a RETRY_INITIATED log to retryWebhookEvent - a manual retry
previously left no record of itself
- Extend 5 existing tests with assertions on the actual status/action
values written, not just that logWebhookAction was called
71/71 tests passing; tsc error count unchanged (760, all pre-existing)1 parent d57c47f commit 8465098
2 files changed
Lines changed: 43 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
365 | 371 | | |
366 | 372 | | |
367 | 373 | | |
| |||
374 | 380 | | |
375 | 381 | | |
376 | 382 | | |
377 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
378 | 389 | | |
379 | 390 | | |
380 | 391 | | |
| |||
456 | 467 | | |
457 | 468 | | |
458 | 469 | | |
459 | | - | |
| 470 | + | |
| 471 | + | |
460 | 472 | | |
461 | 473 | | |
462 | 474 | | |
| |||
541 | 553 | | |
542 | 554 | | |
543 | 555 | | |
544 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
545 | 562 | | |
546 | 563 | | |
547 | 564 | | |
548 | 565 | | |
549 | 566 | | |
550 | 567 | | |
551 | | - | |
| 568 | + | |
552 | 569 | | |
553 | 570 | | |
554 | 571 | | |
| |||
631 | 648 | | |
632 | 649 | | |
633 | 650 | | |
634 | | - | |
| 651 | + | |
635 | 652 | | |
636 | 653 | | |
637 | 654 | | |
| |||
713 | 730 | | |
714 | 731 | | |
715 | 732 | | |
| 733 | + | |
716 | 734 | | |
717 | 735 | | |
718 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
344 | 351 | | |
345 | 352 | | |
346 | 353 | | |
| |||
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
515 | 528 | | |
516 | 529 | | |
517 | 530 | | |
| |||
672 | 685 | | |
673 | 686 | | |
674 | 687 | | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
675 | 691 | | |
676 | 692 | | |
677 | 693 | | |
| |||
759 | 775 | | |
760 | 776 | | |
761 | 777 | | |
762 | | - | |
| 778 | + | |
763 | 779 | | |
764 | 780 | | |
765 | 781 | | |
| |||
770 | 786 | | |
771 | 787 | | |
772 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
773 | 792 | | |
774 | 793 | | |
775 | 794 | | |
| |||
0 commit comments