dify/api/controllers/console/workspace
Harry 80f2c1be67 fix(trigger): enhance error handling and refactor end user creation in trigger workflows
- Improved error handling in `TriggerSubscriptionListApi` to return a 404 response for ValueErrors.
- Refactored end user creation logic in `service_api/wraps.py` to use `get_or_create_end_user` for better clarity and consistency.
- Introduced a new method `create_end_user_batch` for batch creation of end users, optimizing database interactions.
- Updated various trigger-related services to utilize the new end user handling, ensuring proper user context during trigger dispatching.
2025-10-17 21:00:57 +08:00
..
__init__.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
account.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
agent_providers.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
endpoint.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
error.py fix: drop dead code phase2 unused class (#22042) 2025-07-17 09:33:07 +08:00
load_balancing_config.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
members.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
model_providers.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
models.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
plugin.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-15 09:53:03 +08:00
tool_providers.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-15 09:53:03 +08:00
trigger_providers.py fix(trigger): enhance error handling and refactor end user creation in trigger workflows 2025-10-17 21:00:57 +08:00
workspace.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00