dify/api/events/event_handlers
Yeuoly 9898730cc5 feat: add webhook node limit validation (max 5 per workflow)
- Add MAX_WEBHOOK_NODES_PER_WORKFLOW constant set to 5
- Validate webhook node count in sync_webhook_relationships method
- Raise ValueError when workflow exceeds webhook node limit
- Block workflow save when limit is exceeded to ensure data integrity
- Provide clear error message indicating current count and maximum allowed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 17:22:09 +08:00
..
__init__.py feat: add workflow schedule trigger support (#24428) 2025-09-10 13:24:23 +08:00
clean_when_dataset_deleted.py chore(api): Introduce Ruff Formatter. (#7291) 2024-08-15 12:54:05 +08:00
clean_when_document_deleted.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
create_document_index.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
create_installed_app_when_app_created.py chore(api): Introduce Ruff Formatter. (#7291) 2024-08-15 12:54:05 +08:00
create_site_record_when_app_created.py feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
delete_tool_parameters_cache_when_sync_draft_workflow.py Support OAuth Integration for Plugin Tools (#22550) 2025-07-17 17:18:44 +08:00
sync_webhook_when_app_created.py feat: add webhook node limit validation (max 5 per workflow) 2025-09-10 17:22:09 +08:00
sync_workflow_schedule_when_app_published.py feat: add workflow schedule trigger support (#24428) 2025-09-10 13:24:23 +08:00
update_app_dataset_join_when_app_model_config_updated.py orm filter -> where (#22801) 2025-07-24 00:57:45 +08:00
update_app_dataset_join_when_app_published_workflow_updated.py orm filter -> where (#22801) 2025-07-24 00:57:45 +08:00
update_app_triggers_when_app_published_workflow_updated.py feat: implement trigger-plugin support with real-time status sync (#25326) 2025-09-07 21:29:53 +08:00
update_provider_when_message_created.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00