dify/api/controllers/console/app
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 FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
advanced_prompt_template.py refactor: update API routes and documentation for console endpoints (#25554) 2025-09-12 11:51:24 +08:00
agent.py refactor: update API routes and documentation for console endpoints (#25554) 2025-09-12 11:51:24 +08:00
annotation.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
app.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
app_import.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
audio.py refactor: update API routes and documentation for console endpoints (#25554) 2025-09-12 11:51:24 +08:00
completion.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
conversation.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
conversation_variables.py refactor: update API routes and documentation for console endpoints (#25554) 2025-09-12 11:51:24 +08:00
error.py Restructure the File errors in controller (#23801) 2025-08-13 17:06:07 +08:00
generator.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-15 09:53:03 +08:00
mcp_server.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
message.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
model_config.py Use hook to get userid (#26839) 2025-10-14 09:20:37 +08:00
ops_trace.py refactor: update API routes and documentation for console endpoints (#25554) 2025-09-12 11:51:24 +08:00
site.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
statistic.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
workflow.py fix(trigger): enhance error handling and refactor end user creation in trigger workflows 2025-10-17 21:00:57 +08:00
workflow_app_log.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
workflow_draft_variable.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
workflow_run.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
workflow_statistic.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
workflow_trigger.py refactor(api): fix pyright check 2025-09-25 18:32:22 +08:00
wraps.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00