You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/tests/unit_tests
QuantumGhost 13dc1c8795
Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062)
Currently, `WorkflowNodeExecution.execution_metadata_dict` returns `None` when metadata is absent in the database. This requires all callers to perform `None` checks when processing metadata, leading to more complex caller-side logic.

This pull request updates the `execution_metadata_dict` method to return an empty dictionary instead of `None` when metadata is absent. This change would simplify the caller logic, as it removes the need for explicit `None` checks and provides a more consistent data structure to work with.
11 months ago
..
configs fix(config): Allow DB_EXTRAS to set search_path via options (#19560) 11 months ago
controllers refactor(version): simplify version comparison logic (#10109) 1 year ago
core refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 11 months ago
extensions feat: add debug log for request and response (#19781) (#19783) 11 months ago
factories fix: implement robust file type checks to align with existing logic (#17557) 1 year ago
libs fix: return absolute path as the icon url if CONSOLE_API_URL is empty (#15279) 1 year ago
models Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062) 11 months ago
oss chore(lint): correct allowed-unused-imports settings for cleanup unused imports in tests (#11922) 1 year ago
repositories fix: ensure Decimal values in metadata are JSON serializable (fixes #19936) (#19955) 11 months ago
services fix: cannot delete workflow version if other version is published as a tool (#18486) 1 year ago
utils feat: add interfaces of OAuth handler methods for authorization (#18889) 12 months ago
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 12 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
conftest.py refactor: assembling the app features in modular way (#9129) 1 year ago