[PR #24825] feat: add AppTrigger status validation for webhook execution #30810

Closed
opened 2026-02-21 20:48:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/24825

State: closed
Merged: No


Summary

  • Add AppTrigger status validation before webhook execution
  • Check if trigger is enabled/disabled in AppTrigger model
  • Prevent disabled triggers from executing workflows

Changes

  • Updated WebhookService.get_webhook_trigger_and_workflow() to query AppTrigger model
  • Added status validation to ensure only enabled triggers can execute
  • Import AppTrigger, AppTriggerStatus, AppTriggerType from models.workflow

Test plan

  • Verify webhook execution fails when AppTrigger status is disabled
  • Verify webhook execution succeeds when AppTrigger status is enabled
  • Verify appropriate error messages are returned for disabled triggers

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/langgenius/dify/pull/24825 **State:** closed **Merged:** No --- ## Summary - Add AppTrigger status validation before webhook execution - Check if trigger is enabled/disabled in AppTrigger model - Prevent disabled triggers from executing workflows ## Changes - Updated `WebhookService.get_webhook_trigger_and_workflow()` to query AppTrigger model - Added status validation to ensure only enabled triggers can execute - Import AppTrigger, AppTriggerStatus, AppTriggerType from models.workflow ## Test plan - [x] Verify webhook execution fails when AppTrigger status is disabled - [x] Verify webhook execution succeeds when AppTrigger status is enabled - [x] Verify appropriate error messages are returned for disabled triggers 🤖 Generated with [Claude Code](https://claude.ai/code)
yindo added the pull-request label 2026-02-21 20:48:16 -05:00
yindo closed this issue 2026-02-21 20:48:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30810