Tim Ren
391007d02e
refactor: migrate service_api and inner_api to sessionmaker pattern ( #34379 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 14:53:41 +00:00
Renzo
31f7752ba9
refactor: select in 10 service files ( #34373 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-04-01 08:03:49 +00:00
jimmyzhuu
b23ea0397a
fix: apply Baidu Vector DB connection timeout when initializing Mochow client ( #34328 )
2026-04-01 06:16:09 +00:00
Dream
c51cd42cb4
refactor(api): replace json.loads with Pydantic validation in controllers and infra layers ( #34277 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 05:41:44 +00:00
Full Stack Engineer
09ee8ea1f5
fix: support qa_preview shape in IndexProcessor preview formatting ( #34151 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Crazywoola <100913391+crazywoola@users.noreply.github.com>
2026-04-01 04:22:23 +00:00
Renzo
beda78e911
refactor: select in 13 small service files ( #34371 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 04:00:05 +00:00
Renzo
4bd388669a
refactor: core/app pipeline, core/datasource, and core/indexing_runner ( #34359 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 02:20:56 +00:00
wangxiaolei
57f358a96b
perf: use global httpx client instead of per request create new one ( #34311 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 01:19:32 +00:00
Desel72
b818cc0766
test: migrate apikey controller tests to testcontainers ( #34286 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-31 13:06:42 +00:00
99
f27d669f87
chore: normalize frozenset literals and myscale typing ( #34327 )
2026-03-31 08:21:22 +00:00
YBoy
1063e021f2
test: migrate explore conversation controller tests to testcontainers ( #34312 )
2026-03-31 05:00:22 +00:00
YBoy
303f548408
test: migrate rag pipeline datasets controller tests to testcontainers ( #34304 )
2026-03-31 04:59:13 +00:00
YBoy
cc68f0e640
test: migrate rag pipeline workflow controller tests to testcontainers ( #34306 )
2026-03-31 04:58:14 +00:00
YBoy
9b7b432e08
test: migrate rag pipeline import controller tests to testcontainers ( #34305 )
2026-03-31 04:57:53 +00:00
YBoy
88863609e9
test: migrate rag pipeline controller tests to testcontainers ( #34303 )
2026-03-31 04:56:53 +00:00
Dev Sharma
2de818530b
test: add tests for api/services retention, enterprise, plugin ( #32648 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
2026-03-31 03:16:42 +00:00
tmimmanuel
1344c3b280
refactor: use EnumText for model_type in provider models ( #34300 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-31 00:31:33 +00:00
tmimmanuel
5897b28355
refactor: use EnumText for Provider.quota_type and consolidate ProviderQuotaType ( #34299 )
2026-03-31 00:29:57 +00:00
YBoy
15aa8071f8
test: migrate mcp controller tests to testcontainers ( #34297 )
2026-03-31 00:28:44 +00:00
YBoy
097095a69b
test: migrate tool provider controller tests to testcontainers ( #34293 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-31 00:28:04 +00:00
YBoy
c58170f5b8
test: migrate app import api controller tests to testcontainers ( #34290 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-31 00:26:50 +00:00
YBoy
3a7885819d
test: migrate web conversation controller tests to testcontainers ( #34287 )
2026-03-31 00:25:46 +00:00
YBoy
5fc4dfaf7b
test: migrate web wraps controller tests to testcontainers ( #34289 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-30 16:19:15 +00:00
YBoy
953bcc33b1
test: migrate workspace wraps controller tests to testcontainers ( #34296 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-30 16:18:21 +00:00
lif
bc14ad6a8f
fix: map checkbox and json_object types in MCP schema publishing ( #34226 )
...
Signed-off-by: majiayu000 <1835304752@qq.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-30 15:05:57 +00:00
YBoy
cc89b57c1f
test: migrate web forgot password controller tests to testcontainers ( #34288 )
2026-03-30 15:01:50 +00:00
YBoy
623c8ae803
test: migrate app apis controller tests to testcontainers ( #34291 )
2026-03-30 14:58:04 +00:00
YBoy
dede190be2
test: migrate data source controller tests to testcontainers ( #34292 )
2026-03-30 14:57:28 +00:00
YBoy
3c7180bfd5
test: migrate trigger providers controller tests to testcontainers ( #34295 )
2026-03-30 14:56:30 +00:00
lif
ae9a16a397
fix: upgrade langfuse SDK to v3+ for LLM-as-judge support ( #34265 )
...
Signed-off-by: majiayu000 <1835304752@qq.com>
2026-03-30 13:06:55 +00:00
jigangz
1aaba80211
fix: enrich Service API segment responses with summary content ( #34221 )
...
Co-authored-by: jigangz <jigangz@github.com>
Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com>
2026-03-30 10:09:50 +00:00
Dream
944db46d4f
refactor(api): replace json.loads with Pydantic validation in services layer ( #33704 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-30 08:22:29 +00:00
Renzo
456684dfc3
refactor: core/rag docstore, datasource, embedding, rerank, retrieval ( #34203 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-30 08:09:49 +00:00
GuanMu
8a277da278
feat(api): add delete workflow functionality with error handling ( #33657 )
2026-03-30 06:56:04 +00:00
YBoy
b36b077d42
test: migrate workflow service tests to testcontainers ( #34206 )
2026-03-29 21:50:21 +00:00
Renzo
364d7ebc40
refactor: core/tools, agent, callback_handler, encrypter, llm_generator, plugin, inner_api ( #34205 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-28 10:14:43 +00:00
YBoy
7cc81e9a43
test: migrate workspace service tests to testcontainers ( #34218 )
2026-03-28 07:50:26 +00:00
YBoy
3409c519e2
test: migrate tag service tests to testcontainers ( #34219 )
2026-03-28 07:49:27 +00:00
YBoy
5851b42af3
test: migrate metadata service tests to testcontainers ( #34220 )
2026-03-28 07:48:48 +00:00
YBoy
865ee473ce
test: migrate messages clean service retention tests to testcontainers ( #34207 )
2026-03-27 22:55:11 +00:00
99
40591a7c50
refactor(api): use standalone graphon package ( #34209 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 21:05:32 +00:00
Renzo
32d394d65b
refactor: select in core/ops trace manager and trace providers ( #34197 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 14:00:26 +00:00
Xiyuan Chen
5a8a68cab8
feat: enterprise otel exporter ( #33138 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 07:56:31 +00:00
wangxiaolei
689761bfcb
feat: return correct dify-plugin-daemon error message ( #34171 )
2026-03-27 06:02:29 +00:00
YBoy
408f650b0c
test: migrate auth integration tests to testcontainers ( #34089 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-26 23:25:36 +00:00
YBoy
1da66b9a8c
test: migrate api token service tests to testcontainers ( #34148 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 21:02:09 +00:00
YBoy
97764c4a57
test: migrate plugin service tests to testcontainers ( #34098 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
2026-03-26 20:36:12 +00:00
YBoy
f317db525f
test: migrate api key auth service tests to testcontainers ( #34147 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 20:31:18 +00:00
YBoy
3fa0538f72
test: migrate human input delivery test service tests to testcontainers ( #34092 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 20:29:20 +00:00
99
fcfc96ca05
chore: remove stale mypy suppressions and align dataset service tests ( #34130 )
2026-03-26 12:34:44 +00:00
-LAN-
496baa9335
chore(api): remove backend utcnow usage ( #34131 )
2026-03-26 08:51:49 +00:00
QuantumGhost
e08c06cbc3
fix: import path ( #34124 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com>
2026-03-26 16:13:53 +08:00
Achieve3318
5341cd015b
fix: dataset query created_by empty UUID in iteration subgraph ( #34004 ) ( #34044 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 14:57:19 +08:00
Renzo
a69b8c1e96
refactor: select in service API dataset document and segment controllers ( #34101 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 13:24:54 +09:00
Krishna Chaitanya
7c0d2e1d98
fix: handle null email in GitHub OAuth sign-in ( #34043 )
...
When a GitHub user's profile email is null (hidden/private), the OAuth callback fails with HTTP 400 because `GitHubRawUserInfo` validates `email` as a required non-null string. Even after the type was relaxed to `NotRequired[str | None]` in #33882 , the flow still raises a `ValueError` when no email can be resolved, blocking sign-in entirely.
This PR improves the email resolution strategy so that users with private GitHub emails can still sign in.
2026-03-26 00:41:18 +08:00
Rajat Agarwal
a9336b74fd
test: Unit test case for services.dataset_services.py ( #33212 )
2026-03-26 00:28:48 +08:00
YBoy
518937b87f
test: migrate plugin parameter service tests to testcontainers ( #34090 )
2026-03-25 23:11:14 +09:00
YBoy
e6ab9abf19
test: migrate metadata partial update tests to testcontainers ( #34088 )
2026-03-25 23:10:48 +09:00
YBoy
87a25e326c
test: migrate account deletion sync tests to testcontainers ( #34091 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 23:09:10 +09:00
YBoy
baf7d2c7c0
test: migrate database retrieval tests to testcontainers ( #34087 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 23:06:46 +09:00
Renzo
22dd0aa20c
refactor: select in service API wraps, file_preview, and site controllers ( #34086 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 23:01:05 +09:00
99
52e7492cbc
refactor(api): rename dify_graph to graphon ( #34095 )
2026-03-25 21:58:56 +08:00
Desel72
7e9d00a5a6
test: migrate workflow converter tests to testcontainers ( #34038 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 22:28:25 +09:00
Faiz Khairi
ff9cf6c7a4
refactor: replace dict with BedrockRetrievalSetting BaseModel in knowledge_service ( #34080 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 21:33:24 +09:00
-LAN-
56593f20b0
refactor(api): continue decoupling dify_graph from API concerns ( #33580 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-03-25 20:32:24 +08:00
YBoy
b7b9b003c9
test: migrate restore archived workflow run tests to testcontainers ( #34083 )
2026-03-25 21:31:53 +09:00
Xin Zhang
66b8c42a25
feat: add inner API endpoints for admin DSL import/export ( #34059 )
2026-03-25 19:48:53 +08:00
QuantumGhost
1789988be7
fix(api): fix concurrency issues in StreamsBroadcastChannel ( #34061 )
2026-03-25 15:47:31 +08:00
Desel72
5f82ccc750
test: migrate workflow app service tests to testcontainers ( #34036 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 13:43:06 +09:00
Desel72
a9f2fb86a3
test: migrate tools transform service tests to testcontainers ( #34035 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 13:41:38 +09:00
Desel72
81a2eba2a0
test: migrate app service tests to testcontainers ( #34025 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 12:50:30 +09:00
Renzo
4c32acf857
refactor: select in console datasets segments and API key controllers ( #34027 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 12:46:22 +09:00
Desel72
b4e541e11a
test: migrate advanced prompt template service tests to testcontainers ( #34034 )
2026-03-25 12:45:13 +09:00
Desel72
a3855eca8b
test: migrate webapp auth service tests to testcontainers ( #34037 )
2026-03-25 12:42:41 +09:00
tmimmanuel
a946015ebf
test: replace indexing_technique string literals with IndexTechnique ( #34042 )
2026-03-25 12:39:58 +09:00
QuantumGhost
eef13853b2
fix(api): StreamsBroadcastChannel start reading messages from the end ( #34030 )
...
The current frontend implementation closes the connection once `workflow_paused` SSE event is received and establish a new connection to subscribe new events. The implementation of `StreamsBroadcastChannel` sets initial `_last_id` to `0-0`, consumes streams from start and send `workflow_paused` event created before pauses to frontend, causing excessive connections being established.
This PR fixes the issue by setting initial id to `$`, which means only new messages are received by the subscription.
2026-03-25 10:21:57 +08:00
Rajat Agarwal
6f137fdb00
test: unit test cases for rag.cleaner, rag.data_post_processor and rag.datasource ( #32521 )
2026-03-25 02:19:15 +08:00
Rajat Agarwal
36cc1bf025
test: unit test cases for sub modules in core.app (except core.app.apps) ( #32476 )
2026-03-25 02:13:28 +08:00
Desel72
ca703fdda1
test: migrate mcp tools manage service tests to testcontainers ( #34024 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 00:06:28 +09:00
Desel72
b15d312f68
test: migrate dataset service document indexing tests to testcontainers ( #34022 )
2026-03-24 23:42:34 +09:00
Desel72
cc0dadb5e3
test: migrate forgot password tests to testcontainers ( #33972 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 23:34:13 +09:00
Desel72
b78ca4e8e8
test: migrate email register tests to testcontainers ( #33971 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 23:33:47 +09:00
Desel72
defb982c3e
test: remove agent service tests superseded by testcontainers ( #34023 )
2026-03-24 22:55:06 +09:00
Desel72
4f87625df5
test: migrate retention delete archived workflow run tests to testcon… ( #34020 )
2026-03-24 22:52:10 +09:00
Desel72
2a35f8a625
test: remove feedback service tests superseded by testcontainers ( #34026 )
2026-03-24 22:50:51 +09:00
Renzo
e3c1112b15
refactor: select in console datasets document controller ( #34019 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 21:57:38 +09:00
Desel72
542c1a14e0
test: migrate oauth tests to testcontainers ( #33973 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 21:56:40 +09:00
scdeng
67d5c9d148
feat: configurable model parameters with variable reference support in LLM, Question Classifier and Variable Extractor nodes ( #33082 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 17:41:51 +08:00
QuantumGhost
1674f8c2fb
fix: fix omitted app icon_type updates ( #33988 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 15:10:05 +08:00
Zhanyuan Guo
7fe25f1365
fix(rate_limit): flush redis cache when __init__ is triggered by changing max_active_requests ( #33830 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 15:08:55 +08:00
tmimmanuel
8b634a9bee
refactor: use EnumText for ApiToolProvider.schema_type_str and Docume… ( #33983 )
2026-03-24 13:27:50 +09:00
BitToby
ecd3a964c1
refactor(api): type auth service credentials with TypedDict ( #33867 )
2026-03-24 13:22:17 +09:00
Desel72
49a1fae555
test: migrate password reset tests to testcontainers ( #33974 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 06:04:34 +09:00
tmimmanuel
cc17c8e883
refactor: use EnumText for TidbAuthBinding.status and MessageFile.type ( #33975 )
2026-03-24 05:38:29 +09:00
tmimmanuel
5d2cb3cd80
refactor: use EnumText for DocumentSegment.type ( #33979 )
2026-03-24 05:37:51 +09:00
Desel72
f2c71f3668
test: migrate oauth server service tests to testcontainers ( #33958 )
2026-03-24 03:15:22 +09:00
Desel72
0492ed7034
test: migrate api tools manage service tests to testcontainers ( #33956 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 02:54:33 +09:00
Renzo
dd4f504b39
refactor: select in remaining console app controllers ( #33969 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 02:53:05 +09:00
Desel72
8ca1ebb96d
test: migrate workflow tools manage service tests to testcontainers ( #33955 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 02:50:10 +09:00
Desel72
3f086b97b6
test: remove mock tests superseded by testcontainers ( #33957 )
2026-03-24 02:46:54 +09:00