dify/api/controllers/service_api
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
..
app chore: make AccountService.load_user use passed session (#37764) 2026-06-24 07:29:12 +00:00
dataset refactor: for db.session feedback service.export feedbacks (#37763) 2026-06-23 14:01:40 +00:00
end_user fix: add service api openapi descriptions (#37595) 2026-06-17 16:02:43 +00:00
workspace docs: enrich generated service API descriptions (#37615) 2026-06-18 08:43:39 +00:00
__init__.py feat: add service api of HITL (#32826) 2026-04-24 06:37:10 +00:00
index.py fix(ci): bad pyinfra type coverage report comments (#36482) 2026-05-21 12:08:24 +00:00
schema.py docs: enrich generated service API descriptions (#37615) 2026-06-18 08:43:39 +00:00
wraps.py fix: remove premature db.session operations and validate code language 2026-06-25 14:16:24 +08:00