Commit Graph

425 Commits (59d2a8a2087186b6a1af76cc76c824523303911a)

Author SHA1 Message Date
k-brahma-claude f25af8430e style: convert unittest assertions to pytest style
Convert unittest-style assertions (assertEqual, assertTrue, etc.) to
pytest-style assertions to comply with project linting standards.

Applied via ruff --unsafe-fixes to ensure consistency.

 All 28 tests pass with pytest conversion
11 months ago
k-brahma-claude 1bdbbb7140 fix: resolve backend CI errors for MyPy and Ruff
- Fix PyPNGImage save() method call (remove format parameter)
- Fix return type annotation in is_mfa_required()
- Remove unused imports and reorder imports
- Update timezone imports from timezone to UTC
- Fix test assertions formatting

Frontend CI fixes to follow in subsequent commit

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
k-brahma-claude 34ce28cb3d feat: implement multi-factor authentication (MFA) support
This PR adds comprehensive MFA support to Dify, including:
- Two-factor authentication using TOTP
- Backup codes for account recovery
- MFA management in user settings
- Enhanced security for user accounts

Continuation of PR #22206 with improved implementation and tests.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
-LAN- df89629e04
fix: conversatino statistic including data from debugger (#22412)
Signed-off-by: -LAN- <laipz8200@outlook.com>
11 months ago
-LAN- 6eb155ae69
feat(api/repo): Allow to config repository implementation (#21458)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
11 months ago
NeatGuyCoding 6c233e05a9
minor fix: wrong and (#22242) 11 months ago
NeatGuyCoding f929bfb94c
minor fix: remove duplicates, fix typo, and add restriction for get mcp server (#22170)
Signed-off-by: neatguycoding <15627489+NeatGuyCoding@users.noreply.github.com>
11 months ago
Novice 535fff62f3
feat: add MCP support (#20716)
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
11 months ago
jiangbo721 31eb8548ef
fix: Before publish the app, preview the voice of tts, it raise an er… (#21821)
Co-authored-by: 刘江波 <jiangbo721@163.com>
11 months ago
baonudesifeizhai 8516d15a4e
fix: handle configure button for notion internal integration (#21412) 11 months ago
Bowen Liang 1a7ad195f0
refactor: define the Dify project version in pyproject.toml (#20910) 11 months ago
Yeuoly cea6522122
feat: add DYNAMIC_SELECT parameter type for dynamic options in parameter entities (#21425) 12 months ago
Xiyuan Chen d454f09e13
feat: add a magic field in the cancel invite api response (#21505) 12 months ago
Jyong d60287621a
add dataset info in response (#21413) 12 months ago
Jyong 973b3854b4
add dataset info in response (#21406) 12 months ago
QuantumGhost 10b738a296
feat: Persist Variables for Enhanced Debugging Workflow (#20699)
This pull request introduces a feature aimed at improving the debugging experience during workflow editing. With the addition of variable persistence, the system will automatically retain the output variables from previously executed nodes. These persisted variables can then be reused when debugging subsequent nodes, eliminating the need for repetitive manual input.

By streamlining this aspect of the workflow, the feature minimizes user errors and significantly reduces debugging effort, offering a smoother and more efficient experience.

Key highlights of this change:

- Automatic persistence of output variables for executed nodes.
- Reuse of persisted variables to simplify input steps for nodes requiring them (e.g., `code`, `template`, `variable_assigner`).
- Enhanced debugging experience with reduced friction.

Closes #19735.
12 months ago
GuanMu 870e73c03b
Knowledge base API supports status updates #18147 (#18235) 12 months ago
椰子汁 77be115f09
critical! insert_explore_app_list_api (#21277) 12 months ago
Xiyuan Chen 8f64327d57
feat: use default access mode when importing dsl (#21231) 12 months ago
Good Wood 0cfdb8c043
fix: fix load_balancing_config save error (#21213) 12 months ago
LiuBo 17fe62cf91
feat: add support for Matrixone database (#20714) 12 months ago
Ganondorf e99861d4fe
Add Filter of Get Workflow Logs (#21172)
Co-authored-by: lizb <lizb@sugon.com>
12 months ago
NeatGuyCoding 2eae7503e1
Minor Improvements for File Validation and Configuration Handling #21179 (#21171)
Co-authored-by: tech <cto@sb>
12 months ago
Bowen Liang 0f3d4d0b6e
chore: bump mypy to 1.16 (#20608) 1 year ago
Xiyuan Chen 0720bc7408
Feat/webapp verified sso main (#20494) 1 year ago
-LAN- 482e50aae9
Refactor/remove db from cycle manager (#20455)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
Good Wood 756f35f480
feat: add pagination for plugin page (#20151) 1 year ago
-LAN- 3196dc2d61
refactor: Use typed SQLAlchemy base model and fix type errors (#19980)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
crazywoola d35d854259
Revert "fix: fix duplicate app lose custom image" (#19995) 1 year ago
CorrectRoad 618981f1ae
fix: fix duplicate app lose custom image (#19775) 1 year ago
NFish d186daa131
E-300 (#19726)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Hash Brown <hi@xzd.me>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: GareArc <chen4851@purdue.edu>
Co-authored-by: Byron.wang <byron@dify.ai>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
Co-authored-by: KVOJJJin <jzongcode@gmail.com>
Co-authored-by: Alexi.F <654973939@qq.com>
Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com>
Co-authored-by: kautsar_masuara <61046989+izon-masuara@users.noreply.github.com>
Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id>
Co-authored-by: Xin Zhang <sjhpzx@gmail.com>
Co-authored-by: kelvintsim <83445753+kelvintsim@users.noreply.github.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Zixuan Cheng <61724187+Theysua@users.noreply.github.com>
1 year ago
-LAN- e0e8cd6ca3
feat(DraftWorkflowApi): Requires environment_variables in DraftWorkflowApi (#19849)
Signed-off-by: -LAN- <laipz8200@outlook.com>
1 year ago
-LAN- 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>
1 year ago
Xiyuan Chen 934f724130
fix: invitations get suspended when an existing member appears (#19584) 1 year ago
非法操作 085bd1aa93
chore: model.query change to db.session.query (#19551)
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
1 year ago
非法操作 14cd71ed0a
chore: all model.query replace to db.session.query (#19521) 1 year ago
非法操作 b00f94df64
fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 1 year ago
Will bfa652f2d0
fix: metadata filtering condition variable unassigned; fix External K… (#19208) 1 year ago
Bowen Liang 8537abfff8
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions (#19224) 1 year ago
Yeuoly abafa68647
refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 1 year ago
devxing 136995d2a1
fix: change delete app status code from 204 to 200 (#18398)
Co-authored-by: devxing <devxing@gmail.com>
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
gsmini ec82534a1e
optimize account status field hard coded (#18771)
Co-authored-by: crazywoola <427733928@qq.com>
1 year ago
王晓阳 0babdffe3e
feat: support vastbase vector database (#16308) 1 year ago
Will 205535c8e9
chore: fix reimported (#18610) 1 year ago
Yeuoly ba9357da96
fix: handle PluginPermissionDeniedError in EndpointCreateApi (#18597) 1 year ago
lauding eb1ce3dd6b
feat: support huawei cloud vector database (#16141) 1 year ago
Xiyuan Chen 4247a6b807
fix: reset_password security issue (#18363) 1 year ago
Novice da9269ca97
feat: structured output (#17877) 1 year ago
Yeuoly 8f547e6340
fix(typing): validate OAuth code before processing access token (#18288) 1 year ago
Yeuoly 358fd28c28
feat: fetch app info in plugins (#18202) 1 year ago