b4c0fb9463
refactor(workflow-file): phase2 replace remaining imports and remove core.file
...
Complete phase 2 of the file module migration by replacing the remaining repository-wide legacy imports and deleting the temporary core.file compatibility package introduced in phase 1.
What this commit changes
- Replace legacy core.file.* imports with core.workflow.file.* across:
- controllers
- core app/agent/datasource/prompt/rag/tools/variables
- factories, fields, libs, models, services
- otel parser integration points
- unit and integration tests that referenced legacy paths
- Migrate residual runtime usages in app/task pipeline paths that still referenced core.file symbols.
- Update tests and model serialization helpers that relied on old module paths.
- Remove the compatibility bridge package entirely:
- delete core/file/__init__.py
- delete core/file/constants.py
- delete core/file/enums.py
- delete core/file/file_manager.py
- delete core/file/helpers.py
- delete core/file/models.py
- delete core/file/tool_file_parser.py
Verification
- No Python references to core.file remain ( -> empty).
- Targeted regression tests for migrated file primitives and factory/type flows passed:
- tests/unit_tests/core/test_file.py
- tests/unit_tests/factories/test_variable_factory.py
- tests/unit_tests/services/test_variable_truncator.py
Result
- The repository now uses core.workflow.file as the single canonical file namespace.
- The migration is fully split into two commits: phase 1 compatibility + phase 2 full cutover.
2026-02-12 15:34:20 +08:00
62ac02a568
feat: Download the uploaded files ( #31068 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-19 16:48:13 +08:00
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
665d49d375
Fixes session scope bug in FileService.delete_file ( #27911 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
2025-11-26 16:21:33 +08:00
ef1db35f80
feat: implement file extension blacklist for upload security ( #27540 )
2025-11-04 15:45:22 +08:00
cced33d068
use deco to avoid current_user ( #26077 )
...
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-10-16 15:45:51 +09:00
85cda47c70
feat: knowledge pipeline ( #25360 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: twwu <twwu@dify.ai >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: jyong <718720800@qq.com >
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com >
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: quicksand <quicksandzn@gmail.com >
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com >
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: nite-knite <nkCoding@gmail.com >
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com >
2025-09-18 12:49:10 +08:00
08dd3f7b50
Fix basedpyright type errors ( #25435 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-10 01:54:26 +08:00
16a3e21410
more assert ( #24996 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-09-08 09:59:43 +08:00
da9af7b547
[Chore/Refactor] Use centralized naive_utc_now for UTC datetime operations ( #24352 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-08-22 23:53:05 +08:00
ef51678c73
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-24 00:57:45 +08:00
4cb50f1809
feat(libs): Introduce extract_tenant_id ( #22086 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-07-09 17:45:56 +08:00
4977bb21ec
feat(workflow): domain model for workflow node execution ( #19430 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-17 00:56:16 +08:00
8537abfff8
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions ( #19224 )
2025-05-06 11:58:49 +08:00
0e0220bdbf
fix: return null url when upload local file ( #17752 )
...
Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id >
2025-04-10 18:05:18 +08:00
d65da600e5
fix: enhance filename validation and extraction in FileService #16867 ( #16869 )
2025-03-27 16:46:10 +08:00
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
6c8e208ef3
chore: bump minimum supported Python version to 3.11 ( #10386 )
2024-11-24 13:28:46 +08:00
9ac2bb30f4
Feat/add-remote-file-upload-api ( #9906 )
2024-11-01 15:51:22 +08:00
e36f5cb366
chore: save uploaded file extension as lower case ( #10111 )
2024-10-31 15:16:25 +08:00
67016feb96
feat(api): enhance file preview handling ( #9674 )
2024-10-23 13:12:34 +08:00
5f12c17355
fix(core): use CreatedByRole enum for role consistency ( #9607 )
2024-10-22 13:03:50 +08:00
8d8a8fe295
feat(file-upload): add support for optional file source parameter ( #9554 )
2024-10-21 17:46:24 +08:00
e61752bd3a
feat/enhance the multi-modal support ( #8818 )
2024-10-21 10:43:49 +08:00
0f14873255
chore: cleanup ruff flake8-simplify linter rules ( #8286 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com >
2024-09-12 12:55:45 +08:00
17fd773a30
chore(api/services): apply ruff reformatting ( #7599 )
...
Co-authored-by: -LAN- <laipz8200@outlook.com >
2024-08-26 13:43:57 +08:00
dd676866aa
chore: exclude .txt extenstion in create_by_text API ( #6956 )
2024-08-05 15:52:07 +08:00
7b225a5ab0
refactor(services/tasks): Swtich to dify_config witch Pydantic ( #6203 )
2024-07-12 12:25:38 +08:00
c5d64baba4
fix: correct typos ( #5510 )
2024-06-22 23:01:02 +08:00
07387e9586
add the filename length limit ( #5326 )
2024-06-17 20:36:54 +08:00
c227f3d985
feat: Deprecate datetime.utcnow() in favor of datetime.now(timezone.utc).replace(tzinfo=None) for better timezone handling ( #3408 ) ( #3416 )
2024-04-12 16:22:24 +08:00
ad65c891e7
add xls file suport ( #3321 )
2024-04-12 14:53:44 +08:00
b00466f025
feat:api Add support for extracting EPUB files in ExtractProcessor ( #3254 )
...
Co-authored-by: crazywoola <427733928@qq.com >
2024-04-12 11:25:02 +08:00
6c4e6bf1d6
Feat/dify rag ( #2528 )
...
Co-authored-by: jyong <jyong@dify.ai >
2024-02-22 23:31:57 +08:00
97fe817186
Fix/upload limit ( #2521 )
...
Co-authored-by: jyong <jyong@dify.ai >
Co-authored-by: StyleZhang <jasonapring2015@outlook.com >
2024-02-22 17:16:22 +08:00
20b932da97
del doc support ( #2494 )
...
Co-authored-by: jyong <jyong@dify.ai >
2024-02-20 16:05:09 +08:00
063191889d
chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version ( #2419 )
2024-02-09 15:21:33 +08:00
843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check ( #2366 )
2024-02-06 13:21:13 +08:00
8438d820ad
Feat/2070 glm 4 and glm 3 turbo ( #2114 )
2024-01-21 16:58:06 +08:00
1f48e3d44a
feat: support legacy doc ( #2100 )
2024-01-20 22:21:51 +08:00
cc9e74123c
improve: introduce isort for linting Python imports ( #1983 )
2024-01-12 12:34:01 +08:00
08494058e9
fix file type not support when preview ( #1841 )
...
Co-authored-by: jyong <jyong@dify.ai >
2023-12-26 15:06:44 +08:00
022450768f
fix gpt 4v upload image issue ( #1799 )
...
Co-authored-by: jyong <jyong@dify.ai >
2023-12-20 13:03:08 +08:00
5e34f938c1
Feat/add unstructured support ( #1780 )
...
Co-authored-by: jyong <jyong@dify.ai >
2023-12-18 23:24:06 +08:00
5bb841935e
feat: custom webapp logo ( #1766 )
2023-12-18 16:25:37 +08:00
41d0a8b295
feat: [backend] vision support ( #1510 )
...
Co-authored-by: Garfield Dai <dai.hai@foxmail.com >
2023-11-13 22:05:46 +08:00
46154c6705
Feat/dataset service api ( #1245 )
...
Co-authored-by: jyong <jyong@dify.ai >
Co-authored-by: StyleZhang <jasonapring2015@outlook.com >
2023-09-27 16:06:32 +08:00