Harry
70d0d46678
fix(api): remove tool provider list cache to fix cache inconsistency
...
This commit removes the Redis caching mechanism for tool provider list
API that was introduced in #29101 .
## Problems with the current caching approach
1. **Cache inconsistency**: After CRUD operations on tool providers,
cached data may not be properly invalidated, causing stale data.
2. **Race conditions**: Cache invalidation timing issues - invalidating
inside Redis locks caused timeouts (#30150 ), moving outside causes
race conditions.
3. **Hard to maintain**: Manual cache invalidation scattered across
multiple service files is error-prone and difficult to maintain.
4. **User-facing symptoms**:
- Newly created tools not appearing in the list
- Deleted tools still showing up
- Updated tool configurations not reflecting immediately
- MCP provider auth state not updating correctly
## Changes
- Remove `ToolProviderListCache` class and its usage
- Remove cache invalidation calls from all service files
- Remove related test mocks
- Keep the code optimizations from #29101 (session management, batch processing)
Fixes #30322
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 16:32:42 +08:00
Asuka Minato
f0d02b4b91
refactor: split changes for api/controllers/console/explore/message.py ( #29890 )
2025-12-26 11:02:12 +08:00
Asuka Minato
d100354851
refactor: split changes for api/controllers/console/explore/saved_mes… ( #29889 )
2025-12-26 11:00:31 +08:00
Asuka Minato
93d1b2fc32
refactor: split changes for api/controllers/console/workspace/load_ba… ( #29887 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-26 11:00:03 +08:00
wangxiaolei
bdd8a35b9d
feat: add mcp tool display directly ( #30019 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 10:41:10 +08:00
Asuka Minato
7e06225ce2
refactor: part of remove all reqparser ( #29847 )
2025-12-25 19:57:07 +08:00
Maries
02e0fadef7
feat: add editing support for trigger subscriptions ( #29957 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-24 19:15:54 +08:00
Rhys
a5309bee25
fix: handle missing `credential_id` ( #30051 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-24 11:21:51 +08:00
Asuka Minato
0a448a13c8
refactor: split changes for api/controllers/console/extension.py ( #29888 )
2025-12-24 09:41:42 +08:00
非法操作
d005689d0a
chore: remove unused login call from activation flow ( #30017 )
2025-12-23 12:26:52 +08:00
Novice
0ab80fe5c0
fix: invalidate tool provider cache after MCP authentication ( #29972 )
2025-12-22 12:38:42 +08:00
Asuka Minato
ba73964dfd
refactor: split changes for api/controllers/console/explore/conversat… ( #29893 )
2025-12-22 09:40:41 +08:00
Asuka Minato
4cf65f0137
refactor: split changes for api/controllers/console/explore/installed… ( #29891 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-22 09:40:32 +08:00
Novice
7501360663
fix: add RFC 9728 compliant well-known URL discovery with path insertion fallback ( #29960 )
2025-12-21 09:19:11 +08:00
Asuka Minato
4320503209
refactor: split changes for api/controllers/console/explore/completio… ( #29894 )
2025-12-19 17:51:13 +08:00
quicksand
b0bef1a120
fix(api): resolve errors when setting visibility to partial members ( #29830 )
2025-12-18 16:56:24 +08:00
Asuka Minato
a954bd0616
refactor: part of remove all reqparser ( #29848 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-18 16:52:51 +08:00
FFXN
a93eecaeee
feat: Add "type" field to PipelineRecommendedPlugin model; Add query param "type" to recommended-plugins api. ( #29736 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
2025-12-17 11:26:08 +08:00
Ryusei Hashimoto
86131d4bd8
feat: add datasource_parameters handling for API requests ( #29757 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-17 10:37:55 +08:00
zyssyz123
b7649f61f8
fix: Login secret text transmission ( #29659 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-12-16 16:55:51 +08:00
Jyong
ae4a9040df
Feat/update notion preview ( #29345 )
...
Co-authored-by: twwu <twwu@dify.ai>
2025-12-16 16:43:45 +08:00
longbingljw
4cc6652424
feat: VECTOR_STORE supports seekdb ( #29658 )
2025-12-16 12:35:04 +09:00
zyssyz123
bd7b1fc6fb
fix: csv injection in annotations export ( #29462 )
...
Co-authored-by: hj24 <huangjian@dify.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-15 17:14:05 +08:00
zyssyz123
724cd57dbf
fix: dos in annotation import ( #29470 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-15 15:22:04 +08:00
wangxiaolei
094f417b32
refactor: admin api using session factory ( #29628 )
2025-12-15 12:01:41 +08:00
TomoOkuyama
569c593240
feat: Add InterSystems IRIS vector database support ( #29480 )
...
Co-authored-by: Tomo Okuyama <tomo.okuyama@intersystems.com>
2025-12-15 10:20:43 +08:00
Aplulu
3653f54bea
fix: validate page_size limit in plugin list and tasks endpoints ( #29611 )
2025-12-13 22:52:51 +09:00
Maries
d48300d08c
fix: remove validate=True to fix flask-restx AttributeError ( #29552 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 12:01:20 +08:00
wangxiaolei
193c8e2362
fix: fix available_credentials is empty ( #29521 )
2025-12-12 09:51:55 +08:00
-LAN-
063b39ada5
fix: conversation rename payload validation ( #29510 )
2025-12-11 18:05:41 +09:00
-LAN-
281e9d4f51
fix: chat api in explore page reject blank conversation id ( #29500 )
2025-12-11 16:26:42 +08:00
crazywoola
1847609926
fix: failed to delete model ( #29456 )
2025-12-11 12:05:44 +08:00
Jyong
88b20bc6d0
fix dataset multimodal field not update ( #29403 )
2025-12-10 15:18:38 +08:00
非法操作
8f7173b69b
fix: admin dislike feedback lose content ( #29327 )
2025-12-09 16:07:59 +08:00
Jyong
9affc546c6
Feat/support multimodal embedding ( #29115 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-09 14:41:46 +08:00
wangxiaolei
97d671d9aa
feat: Allow Editor role to use Trigger Plugin subscriptions ( #29292 )
2025-12-09 10:24:56 +08:00
Asuka Minato
05fe92a541
refactor: port reqparse to BaseModel ( #28993 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-08 15:31:19 +09:00
yodhcn
4b8bd4b891
Fix( #29181 ): convert uuid route param to str in DatasetDocumentListApi.get ( #29207 )
2025-12-08 10:40:35 +08:00
Asuka Minato
7396eba1af
refactor: port reqparse to Pydantic model ( #28949 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-05 13:05:53 +09:00
heyszt
d672774c18
Fix ops_trace delete err ( #29134 )
2025-12-05 10:32:34 +08:00
zyssyz123
031cba81b4
Fix/app list compatible ( #29123 )
2025-12-04 14:44:24 +08:00
hj24
5bb715ee2f
fix: remove chat conversation api dead arg message_count_gte ( #29097 )
2025-12-04 10:12:47 +08:00
Asuka Minato
247069c7e9
refactor: port reqparse to Pydantic model ( #28913 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-11-30 16:09:42 +09:00
Charles Yao
a8491c26ea
fix: add explicit default to httpx.timeout ( #28836 )
2025-11-28 04:02:07 -06:00
Will
b786e101e5
fix: querying and setting the system default model ( #28743 )
2025-11-27 11:58:35 +09:00
Will
09a8046b10
fix: querying webhook trigger issue ( #28753 )
2025-11-27 10:56:21 +08:00
Asuka Minato
2731b04ff9
Pydantic models ( #28697 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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>
2025-11-26 22:44:14 +08:00
wangxiaolei
490b7ac43c
fix: fix feedback like or dislike not display in logs ( #28652 )
2025-11-26 13:59:47 +08:00
Kevin9703
a486c47b1e
fix: ensure advanced-chat workflows stop correctly ( #27803 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-11-25 20:09:03 +08:00
Asuka Minato
b5650b579d
fix [Chore/Refactor] Generate complete API documentation using Flask-RESTX #24421 ( #28649 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-25 20:04:27 +08:00