Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: use correct plugin_id for WaterCrawl datasource (#33182)

Bruno Gondell3835cfe87ee7
diff --git a/api/services/datasource_provider_service.py b/api/services/datasource_provider_service.py
index 95a50f05126..f3b2adb965d 100644
--- a/api/services/datasource_provider_service.py
+++ b/api/services/datasource_provider_service.py
@@ -824,6 +824,7 @@ class DatasourceProviderService:
"langgenius/firecrawl_datasource",
"langgenius/notion_datasource",
"langgenius/jina_datasource",
+ "watercrawl/watercrawl_datasource",
]:
datasource_provider_id = DatasourceProviderID(f"{datasource.plugin_id}/{datasource.provider}")
credentials = self.list_datasource_credentials(
diff --git a/api/services/website_service.py b/api/services/website_service.py
index fe48c3b08ee..15ec4657d94 100644
--- a/api/services/website_service.py
+++ b/api/services/website_service.py
@@ -124,7 +124,7 @@ class WebsiteService:
if provider == "firecrawl":
plugin_id = "langgenius/firecrawl_datasource"
elif provider == "watercrawl":
- plugin_id = "langgenius/watercrawl_datasource"
+ plugin_id = "watercrawl/watercrawl_datasource"
elif provider == "jinareader":
plugin_id = "langgenius/jina_datasource"
else:
diff --git a/api/tests/unit_tests/core/trigger/debug/test_debug_event_selectors.py b/api/tests/unit_tests/core/trigger/debug/test_debug_event_selectors.py
index b4d54baac71..331bcd6c25f 100644
--- a/api/tests/unit_tests/core/trigger/debug/test_debug_event_selectors.py
+++ b/api/tests/unit_tests/core/trigger/debug/test_debug_event_selectors.py
@@ -21,7 +21,7 @@ from core.trigger.debug.event_selectors import (
select_trigger_debug_events,
)
from core.trigger.debug.events import PluginTriggerDebugEvent, WebhookDebugEvent
-from core.workflow.enums import NodeType
+from dify_graph.enums import NodeType
from tests.unit_tests.core.trigger.conftest import VALID_PROVIDER_ID