dify/api/tests/unit_tests
Harry a8074f4f4a feat: add DB inline content cache for app asset draft files
Introduce app_asset_contents table as a read-through cache over S3 for
text-like asset files (e.g. .md skill documents). This eliminates N
individual S3 fetches during SkillBuilder builds — bulk_load pulls all
content in a single SQL query with S3 fallback on miss.

Key components:
- CachedContentAccessor: DB-first read / dual-write / S3 fallback
- AssetContentService: static DB operations (get, get_many, upsert, delete)
- should_mirror(): single source of truth for extension-based policy
- Alembic migration for app_asset_contents table

Modified callers:
- SkillBuilder uses accessor.bulk_load() instead of per-node S3 reads
- AppAssetService.get/update_file_content route through accessor
- delete_node cleans both DB cache and S3
- draft_app_assets_initializer uses should_mirror() instead of hardcoded .md
2026-03-10 17:12:14 +08:00
..
configs feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
controllers fix: fix use fastopenapi lead user is anonymouse (#32236) 2026-02-11 15:53:51 +08:00
core feat: add DB inline content cache for app asset draft files 2026-03-10 17:12:14 +08:00
extensions Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-09 17:00:56 +08:00
factories refactor: document_indexing_sync_task split db session (#32129) 2026-02-09 17:12:16 +08:00
fields refactor: port api/fields/file_fields.py (#30638) 2026-01-06 22:55:58 +08:00
libs Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-11 12:44:05 +08:00
models feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
oss feat: support tencent cos custom domain (#30193) 2025-12-29 15:41:02 +08:00
repositories Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-09 17:00:56 +08:00
services Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-13 15:17:52 +08:00
tasks refactor: document_indexing_sync_task split db session (#32129) 2026-02-09 17:12:16 +08:00
tools feat: extract mcp tool usage (#31802) 2026-02-09 09:52:14 +08:00
utils feat: implement file structured output 2026-02-05 00:11:39 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
.gitignore Enhance Code Consistency Across Repository with .editorconfig (#19023) 2025-04-29 18:04:33 +08:00
conftest.py fix(api): excessive high CPU usage caused by RedisClientWrapper (#32212) 2026-02-11 09:49:29 +08:00