dify/api/controllers
EvanYao826 fe29a6585e fix: remove premature db.session operations and validate code language
Remove premature db.session.commit() and db.session.close() calls that
break transaction isolation and cause DetachedInstanceError:

- DatasetRetrieval._on_query: remove commit(), stage audit rows on the
  scoped session for the caller to commit (#37886)
- cloud_edition_billing_rate_limit_check: remove commit() after adding
  rate limit log, upstream session state is no longer flushed (#37885)
- ToolEngine._create_message_files: replace commit()+close() with
  flush() to obtain IDs without ending the transaction (#37884)

Add defensive validation for unsupported code languages in
CodeExecutor.execute_code to prevent sending null language to the
sandbox service (#37874)
2026-06-25 14:16:24 +08:00
..
common feat: guard openapi with rbac (#37752) 2026-06-22 09:35:33 +00:00
console feat: filter dataset operator and add miss permission key (#37867) 2026-06-24 09:56:28 +00:00
files feat(dify-agent): sync shell and back proxy updates (#37159) 2026-06-10 03:04:32 +00:00
inner_api chore: make AccountService.load_user use passed session (#37764) 2026-06-24 07:29:12 +00:00
mcp refactor(api): type end user records with enum (#36945) 2026-06-19 01:02:01 +00:00
openapi chore: make AccountService.load_user use passed session (#37764) 2026-06-24 07:29:12 +00:00
service_api fix: remove premature db.session operations and validate code language 2026-06-25 14:16:24 +08:00
trigger refactor(api): type webhook data extraction with RawWebhookDataDict TypedDict (#34486) 2026-04-03 02:24:17 +00:00
web fix: eagerly validate conversation before generator to prevent hanging (#37224) 2026-06-25 02:57:33 +00:00
__init__.py chore(api/controllers): Apply Ruff Formatter. (#7645) 2024-08-26 15:29:10 +08:00
API_SCHEMA_GUIDE.md refactor(api): migrate console.app.workflow to BaseModel (#36216) 2026-05-18 07:31:37 +00:00
fastopenapi.py chore(api): Fix several typing errors (#37119) 2026-06-06 01:44:32 +00:00