npc0-hue
17832f2424
fix: Dify 1.8.1问题修复
...
本次提交整合了多个功能改进和问题修复:
主要功能:
- 批量工作流处理功能完善,支持 Excel 上传和进度跟踪
- 管理中心反向代理和转发配置优化
- 用户同步添加互斥锁,防止并发问题
- 计费系统和额度显示优化
- AI 绘图功能扩展
前端改进:
- 文本生成应用显示修复
- 批量任务进度展示优化
- 按钮样式和 CSS 优化,禁止换行
- 多语言支持完善(新增印尼语等)
- 构建镜像逻辑优化
- 批量处理进度管理器实现
后端改进:
- Docker Compose 配置升级
- 队列任务和 Worker Pool 优化
- Admin API 初始化和验证逻辑改进
- 数据库迁移和初始化完善
- 静态变量处理优化
- URL 签名助手实现
- Celery 扩展优化
- 代码和导入包问题修复(idea 自动调整代码位置)
技术改进:
- 兼容性修复 (flask-restx, jschardet)
- 钉钉 Web API 版本更新
- 代码格式化和导入包问题修复
- 日志处理优化
- 工作流循环管理优化
Docker 相关:
- Nginx 配置更新
- 容器启动脚本优化
- 镜像构建流程改进
- docker-compose.dify-plus.yaml 大幅更新
管理后台:
- 工作流批量处理 API 实现
- 工作池初始化
- 批量工作流服务实现
- 转发扩展配置
- 用户服务扩展
2025-10-17 23:04:25 +08:00
npc0-hue
f26fe2f4d2
Merge tag '1.8.1' into merge-tag-1.8.1
...
# Conflicts:
# .gitignore
# README.md
# api/.env.example
# api/Dockerfile
# api/commands.py
# api/configs/app_config.py
# api/controllers/console/__init__.py
# api/controllers/console/apikey.py
# api/controllers/console/app/statistic.py
# api/controllers/service_api/app/app.py
# api/controllers/service_api/app/audio.py
# api/controllers/service_api/app/completion.py
# api/controllers/service_api/app/conversation.py
# api/controllers/service_api/app/file.py
# api/controllers/service_api/app/message.py
# api/controllers/service_api/app/workflow.py
# api/controllers/service_api/wraps.py
# api/controllers/web/completion.py
# api/core/app/apps/advanced_chat/app_generator.py
# api/core/app/apps/advanced_chat/generate_task_pipeline.py
# api/core/app/apps/agent_chat/app_generator.py
# api/core/app/apps/workflow/app_generator.py
# api/core/app/apps/workflow/generate_task_pipeline.py
# api/core/app/task_pipeline/workflow_cycle_manage.py
# api/core/helper/code_executor/code_executor.py
# api/core/tools/builtin_tool/providers/code/tools/simple_code.py
# api/core/workflow/nodes/code/code_node.py
# api/docker/entrypoint.sh
# api/events/event_handlers/__init__.py
# api/extensions/ext_celery.py
# api/extensions/ext_commands.py
# api/models/model.py
# api/models/workflow.py
# api/poetry.lock
# api/pyproject.toml
# api/services/app_service.py
# api/services/feature_service.py
# api/services/workspace_service.py
# web/.env.example
# web/Dockerfile
# web/app/(commonLayout)/apps/Apps.tsx
# web/app/components/apps/app-card.tsx
# web/app/components/base/chat/embedded-chatbot/index.tsx
# web/app/components/base/mermaid/index.tsx
# web/app/components/develop/index.tsx
# web/app/components/develop/secret-key/secret-key-modal.tsx
# web/app/components/develop/secret-key/style.module.css
# web/app/components/develop/template/template.zh.mdx
# web/app/components/explore/app-list/index.tsx
# web/app/components/explore/category.tsx
# web/app/components/explore/sidebar/index.tsx
# web/app/components/header/account-dropdown/index.tsx
# web/app/components/header/index.tsx
# web/app/components/share/utils.ts
# web/app/layout.tsx
# web/app/signin/components/mail-and-password-auth.tsx
# web/app/signin/normal-form.tsx
# web/app/signin/page.module.css
# web/context/app-context.tsx
# web/i18n/i18next-config.ts
# web/i18n/ja-JP/login.ts
# web/i18n/ko-KR/login.ts
#
if dify_config.WORKFLOW_LOG_CLEANUP_ENABLED:
# 2:00 AM every day
imports.append("schedule.clean_workflow_runlogs_precise")
beat_schedule["clean_workflow_runlogs_precise"] = {
"task": "schedule.clean_workflow_runlogs_precise.clean_workflow_runlogs_precise",
"schedule": crontab(minute="0", hour="2"),
} web/package.json
# web/pnpm-lock.yaml
# web/types/feature.ts
2025-09-25 15:55:13 +08:00
-LAN-
20370b79e9
Fix advanced chat workflow event handler signature mismatch ( #25078 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-03 16:22:13 +08:00
-LAN-
b17527c32a
[Chore/Refactor] Switch from MyPy to Basedpyright for type checking ( #25047 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-09-03 11:52:26 +08:00
-LAN-
9b258f915d
chore: translate Chinese comments to English in ClickZetta Volume storage module ( #25037 )
2025-09-03 10:57:58 +08:00
Bowen Liang
eafe26f2a5
chore: apply ty checks on api code with script and ci action ( #24653 )
2025-09-02 16:05:13 +08:00
Bowen Liang
e91a9f8935
chore: cleanup unnecessary mypy suppressions on imports ( #24712 )
2025-08-28 23:17:25 +08:00
Yongtao Huang
2cbe8d9b25
Fix token expiry miscalculation ( #24639 )
2025-08-27 18:19:58 +08:00
Yongtao Huang
87650fe3fc
Chore : rm dead code detected by pylance ( #24588 )
2025-08-27 13:19:40 +08:00
Amy
ec20166296
fix(api):safe reset in db pool, avoid rollback in gevent callback ( #24556 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-26 18:14:06 +08:00
Yongtao Huang
76ce0afec0
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
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-08-26 18:10:31 +08:00
Bowen Liang
23740c131f
api: support to config disabling Swagger UI in api service ( #24440 )
2025-08-26 15:48:04 +08:00
-LAN-
ccd7605223
refactor: better error handler ( #24422 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-08-25 09:28:42 +08:00
Bowen Liang
5d16d27962
chore: apply static type checks on celery async task dispatches and imports ( #24418 )
2025-08-24 23:07:22 +08:00
willzhao
cbc2e67ddb
[CHORE]: x: T = None to x: Optional[T] = None ( #24217 )
2025-08-21 21:58:39 +08:00
Guangdong Liu
6fae74d8e6
refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling ( #24284 )
2025-08-21 18:18:49 +08:00
9527MrLi
acc8287573
feat: Implements periodic deletion of workflow run logs that exceed t… ( #23881 )
...
Co-authored-by: shiyun.li973792 <shiyun.li@seres.cn >
Co-authored-by: 1wangshu <suewangswu@gmail.com >
Co-authored-by: Blackoutta <hyytez@gmail.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-08-19 09:47:34 +08:00
Junyan Qin (Chin)
e933e25668
feat: no longer enable auto upgrade when marketplace is disabled (#24… ( #24101 )
2025-08-18 15:57:33 +08:00
-LAN-
b1b7ff5988
feat: add Redis SSL/TLS certificate authentication support ( #23624 )
2025-08-18 10:59:07 +08:00
-LAN-
87eb95c077
feat: integrate flask-orjson for improved JSON serialization performance ( #23935 )
2025-08-14 19:50:59 +08:00
QuantumGhost
5d5a50a701
feat(api): auto-delete WorkflowDraftVariable when app is deleted ( #23737 )
...
This commit introduces a background task that automatically deletes `WorkflowDraftVariable` records when
their associated workflow apps are deleted.
Additionally, it adds a new cleanup script
`cleanup-orphaned-draft-variables` to remove existing orphaned draft variables from the database.
2025-08-13 11:13:08 +08:00
-LAN-
90b5b98dfe
refactor: improve Redis wrapper type hints and fix None value handling ( #23845 )
2025-08-13 09:46:02 +08:00
yunqiqiliang
6e050da786
feat: Add Clickzetta Lakehouse vector database integration ( #22551 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-08-07 14:21:46 +08:00
heyszt
afd436b8db
add otel instrument for redis and http request ( #23371 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-05 11:14:51 +08:00
GuanMu
d8c98001d8
fix: Update the scheduling method for timed tasks, ( #22779 )
2025-07-25 16:27:35 +08:00
Asuka Minato
9bc8bb6e91
make logging not use f-str, change others to f-str ( #22882 )
2025-07-25 10:32:48 +08:00
Asuka Minato
8b2d7fc78e
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
Junyan Qin (Chin)
e5644e940d
feat: plugin auto upgrade strategy ( #19758 )
...
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: crazywoola <427733928@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Novice <novice12185727@gmail.com >
2025-07-23 15:33:39 +08:00
Aryan Raj
849f75d2c6
Fix/replace datetime patterns with naive utc now ( #22654 )
2025-07-20 11:05:53 +08:00
Maries
ed2a4c40e2
Support OAuth Integration for Plugin Tools ( #22550 )
...
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yeuoly <admin@srmxy.cn >
2025-07-17 17:18:44 +08:00
NeatGuyCoding
7015fdacc2
minor bug fix: wrong default metrics endpoint ( #22535 )
2025-07-17 13:49:41 +08:00
heyszt
8c61b0ff6b
feat: add otel endpoint config ( #22492 )
2025-07-16 18:24:17 +08:00
Novice
c346bd7389
feat: add MCP support ( #20716 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
2025-07-10 14:01:34 +08:00
NeatGuyCoding
c90c5eea27
feat: add redis fallback mechanism #21043 ( #21044 )
...
Co-authored-by: tech <cto@sb>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-10 10:19:58 +08:00
-LAN-
195bda90bb
feat(libs): Introduce extract_tenant_id ( #22086 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-07-09 17:45:56 +08:00
Bowen Liang
83b64f98ad
refactor: define the Dify project version in pyproject.toml ( #20910 )
2025-07-01 12:07:24 +08:00
湛露先生
9596ffac7a
Add Env 'CELERY_SENTINEL_PASSWORD' for celery connect redis sentinel. ( #21198 )
2025-06-27 17:37:11 +08:00
André de Matteo
080a14968c
Feat/support sendgrid ( #21011 )
...
Co-authored-by: André de Matteo <andre.matteo@accenture.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-06-19 10:27:38 +08:00
Xiyuan Chen
a23afc5846
Feat/webapp verified sso main ( #20494 )
2025-06-09 17:19:53 +09:00
Dongyu Li
5b42e0aebb
Feat/queue monitor ( #20647 )
2025-06-04 19:56:34 +08:00
AichiB7A
5971aba4de
[Observability] Add type check and try-except in otel ( #20319 )
2025-05-27 21:17:45 +08:00
-LAN-
ac4959b1a9
fix: Enhances tenant ID handling in telemetry ( #20304 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-05-27 17:44:40 +08:00
-LAN-
526441d63f
fix: Copy request context and current user in app generators. ( #20240 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-05-27 10:56:23 +08:00
-LAN-
a958c14ed5
refactor: Consolidate Flask-Login Authentication Logic ( #20235 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-05-26 18:22:01 +08:00
-LAN-
8e48c5245a
refactor: Use typed SQLAlchemy base model and fix type errors ( #19980 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-05-21 15:38:03 +08:00
Hashcon
5a0359336f
feat: add debug log for request and response ( #19781 ) ( #19783 )
...
Co-authored-by: hashjang <hash@geek.com >
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
2025-05-17 17:31:09 +08:00
XlKsyt
4887ac9e1b
feat(extension): support otel grpc exporter ( #19686 )
2025-05-14 22:37:27 +08:00
rouxiaomin
0e64a7b905
fix:fix log formatting field not found in record: 'req_id' ( #19575 )
...
Co-authored-by: 刘敏 <min.liu@tongdun.net >
2025-05-14 12:17:35 +08:00
-LAN-
c0bd083956
chore(pyproject.toml): Upgrade transformers and resend ( #19562 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-05-13 09:12:59 +08:00
Bowen Liang
0ac889ee63
feat: enable Redis client-side caching ( #19493 )
2025-05-12 09:34:25 +08:00