← Back to Pull requests

Add `program_application.created` webhook and deprecate `partner.application_submitted` #4616

Closed
unknown closed this pull request without merging on Oct 06, 2026 18:02 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 04:47 UTC
Author

1. Added program_application.created, which fires when a partner applies to a program. It covers both direct applications and applications completed after signup. partner.application_submitted is now deprecated but still fires. The new event's payload matches GET /api/program-applications.

2. In the webhook picker, new webhooks only see program_application.created. Webhooks already subscribed to the legacy event see both, with the legacy one marked "Deprecated", so they can switch in one edit.

3. Webhook pickers. The webhook form, the integration settings and the "send test webhook" modal now share one list of available events.

4. The partner network activity card now shows separate empty, error and loading states. When the route returns null, the card shows "No network activity" instead of loading forever. SWR doesn't retry on 404.

5. The network-activity route now accepts a partner who has a program application or a program enrollment. Before, it required an enrollment. For a partner with neither, it returns 200 with null instead of a 404.

6. The dev seed scripts now create program applications and link them to enrollments, so local data matches the new application-based check.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Added the program_application.created webhook event, with support for Slack and Zapier, sample payloads, and webhook configuration.
Webhook trigger pickers show events available for the selected program and integration, and identify the legacy application event as deprecated with its replacement.
Network activity summaries are available for partners who have applied to a program, with distinct empty, loading, and error states.
Bug Fixes
Application social details no longer override a partner’s saved social platforms; missing platforms can be filled from application details.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 251 lines (+188 / -63) across 3 files Reviewer: Joker666 Review duration: 2234m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.44) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 251 lines diff across 3 files
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.331
Shallow Review Depth shallow_review_depth
0.289
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4616"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44% (MEDIUM) · Higher = larger blast radius
44%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19% · Safe to merge
19%
Repository