Commit Graph

9 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 9202c05d4c fix: MFA test failures and cleanup duplicate test files
- Fix password validation in all MFA tests (use TestPassword123 format)
- Fix database cleanup order to handle foreign key constraints
- Clean up duplicate unit test files (moved to integration tests)
- Fix frontend MFA page tests (modal mock and async handling)
- Update translation keys for consistency
- Minor dependency version updates

All tests now pass: API 730/730, Frontend MFA 9/9

🤖 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
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
yihong 831459b895
fix: ruff with statements (#12578)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
1 year ago
yihong 56e15d09a9
feat: mypy for all type check (#10921) 1 year ago
Bowen Liang 4d9160ca9f
refactor: use dify_config to replace legacy usage of flask app's config (#9089) 2 years ago
Sergio Sacristán 28de676956
controller test (#9469) 2 years ago