hjlarry
9fc2a0a3a1
Merge branch 'feat/collaboration' into deploy/dev
2025-10-13 10:16:39 +08:00
Stream
1a4600ce77
Merge remote-tracking branch 'origin/deploy/dev' into feat/memory-orchestration-be-dev-env
...
# Conflicts:
# api/models/__init__.py
# api/uv.lock
2025-10-11 15:01:26 +08:00
lyzno1
f19630bcf5
Merge remote-tracking branch 'origin/main' into feat/collaboration
2025-10-11 14:43:20 +08:00
1bd621f819
remove .value ( #26633 )
...
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-11 09:08:29 +08:00
Stream
f6038a4557
Merge branch 'main' into feat/memory-orchestration-be
2025-10-10 18:43:59 +08:00
诗浓 and GitHub
94a07706ec
fix: restore None guards for _environment_variables/_conversation_variables getters ( #25633 )
2025-10-10 16:32:09 +08:00
Stream
e9313b9c1b
Merge branch 'main' into feat/memory-orchestration-be
...
# Conflicts:
# api/core/app/apps/advanced_chat/app_runner.py
# api/core/workflow/constants.py
# api/core/workflow/entities/variable_pool.py
# api/core/workflow/nodes/llm/node.py
# api/models/workflow.py
2025-09-22 14:46:30 +08:00
hjlarry
81c6e52401
Merge remote-tracking branch 'origin/p254' into p284
2025-09-18 15:14:55 +08:00
+10
85cda47c70
feat: knowledge pipeline ( #25360 )
...
Signed-off-by: -LAN- <[email protected] >
Co-authored-by: twwu <[email protected] >
Co-authored-by: crazywoola <[email protected] >
Co-authored-by: jyong <[email protected] >
Co-authored-by: Wu Tianwei <[email protected] >
Co-authored-by: QuantumGhost <[email protected] >
Co-authored-by: lyzno1 <[email protected] >
Co-authored-by: quicksand <[email protected] >
Co-authored-by: Jyong <[email protected] >
Co-authored-by: lyzno1 <[email protected] >
Co-authored-by: zxhlyh <[email protected] >
Co-authored-by: Yongtao Huang <[email protected] >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <[email protected] >
Co-authored-by: Copilot <[email protected] >
Co-authored-by: nite-knite <[email protected] >
Co-authored-by: Hanqing Zhao <[email protected] >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <[email protected] >
2025-09-18 12:49:10 +08:00
Stream
516b6b0fa8
refactor: use VersionedMemoryVariable in creation of WorkflowDraftVariable instead of StringVariable
2025-09-15 15:39:38 +08:00
Stream
d6d9554954
fix: fix basedpyright errors
2025-09-15 14:20:30 +08:00
Stream
2a532ab729
Merge branch 'main' into feat/memory-orchestration-be
...
# Conflicts:
# api/core/app/apps/advanced_chat/app_runner.py
# api/core/prompt/entities/advanced_prompt_entities.py
# api/core/variables/segments.py
2025-09-15 14:14:56 +08:00
bab4975809
chore: add ast-grep rule to convert Optional[T] to T | None ( #25560 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-15 13:06:33 +08:00
a13d7987e0
chore: adopt StrEnum and auto() for some string-typed enums ( #25129 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <[email protected] >
2025-09-12 21:14:26 +08:00
hjlarry
21fee59b22
use new features update api
2025-09-10 14:24:38 +08:00
9b8a03b53b
[Chore/Refactor] Improve type annotations in models module ( #25281 )
...
Signed-off-by: -LAN- <[email protected] >
Co-authored-by: crazywoola <[email protected] >
2025-09-08 09:42:27 +08:00
a78339a040
remove bare list, dict, Sequence, None, Any ( #25058 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <[email protected] >
2025-09-06 03:32:23 +08:00
Novice and GitHub
ca96350707
chore: optimize SQL queries that perform partial full table scans ( #24786 )
2025-09-02 11:46:11 +08:00
2a29c61041
Refactor: replace count() > 0 check with exists() ( #24583 )
...
Co-authored-by: Yongtao Huang <[email protected] >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 17:46:52 +08:00
fa753239ad
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <[email protected] >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <[email protected] >
2025-08-26 18:10:31 +08:00
Stream
6af168cb31
Merge branch 'main' into feat/memory-orchestration-be
2025-08-25 14:54:14 +08:00
455f842785
Flask 3.1.2 upgrade fix by Avoids using current_user in background thread ( #24290 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-22 14:47:13 +08:00
Stream
0c97bbf137
chore: run ruff
2025-08-20 19:12:34 +08:00
Stream
d535818505
feat: add new_memory_block_variable for WorkflowDraftVariable
2025-08-20 17:41:45 +08:00
Stream
38130c8502
feat: add memory_blocks property to workflow's graph for memory block configuration
2025-08-20 17:19:48 +08:00
-LAN- and GitHub
e340fccafb
feat: integrate flask-orjson for improved JSON serialization performance ( #23935 )
2025-08-14 19:50:59 +08:00
rouxiaomin and GitHub
40a11b6942
feat(api):Enhance the scope of expired data cleanup table in the Dify… ( #23414 )
2025-08-05 19:57:43 +08:00
Asuka Minato and GitHub
58608f51da
replace db with sa to get typing support ( #23240 )
2025-08-02 23:54:23 +08:00
Asuka Minato and GitHub
79ea94483e
refine some orm types ( #22885 )
2025-07-31 18:43:04 +08:00
Yongtao Huang and GitHub
1c05491f1c
Chore: remove duplicate TYPE_CHECKING import ( #23013 )
...
Signed-off-by: Yongtao Huang <[email protected] >
2025-07-28 10:04:45 +08:00
ef51678c73
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <[email protected] >
Co-authored-by: -LAN- <[email protected] >
Co-authored-by: Claude <[email protected] >
2025-07-24 00:57:45 +08:00
Aryan Raj and GitHub
ce794335e9
Fix/replace datetime patterns with naive utc now ( #22654 )
2025-07-20 11:05:53 +08:00
QuantumGhost and GitHub
2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization ( #22025 )
...
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025 )
This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.
Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types
Closes #22024 .
2025-07-16 12:31:37 +08:00
-LAN- and GitHub
4cb50f1809
feat(libs): Introduce extract_tenant_id ( #22086 )
...
Signed-off-by: -LAN- <[email protected] >
2025-07-09 17:45:56 +08:00
QuantumGhost and GitHub
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 .
2025-06-24 09:05:29 +08:00
-LAN- and GitHub
6b1ad634f1
fix(workflow_run): sequence_number race. ( #21228 )
...
Signed-off-by: -LAN- <[email protected] >
2025-06-19 17:53:49 +08:00
QuantumGhost and GitHub
930c4cb609
feat(api): Adjust WorkflowDraftVariable and WorkflowNodeExecutionModel ( #20746 )
...
- Add `node_execution_id` column to `WorkflowDraftVariable`, allowing efficient implementation of
the "Reset to last run value" feature.
- Add additional index for `WorkflowNodeExecutionModel` to improve the performance of last run lookup.
Closes #20745 .
2025-06-06 21:03:59 +08:00
-LAN- and GitHub
2ebf4e767b
fix(models): WorkflowRun's total_steps and exceptions_count mismatch with database ( #20452 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-30 07:53:13 +08:00
-LAN- and GitHub
f7fb10635f
refactor(workflow): Rename workflow node execution models ( #20458 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-30 04:56:37 +08:00
-LAN- and GitHub
482e50aae9
Refactor/remove db from cycle manager ( #20455 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-30 04:34:13 +08:00
-LAN- and GitHub
b357eca307
fix: Copy request context and current user in app generators. ( #20240 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-27 10:56:23 +08:00
非法操作 and GitHub
9b1dc1de7a
fix: system file upload can't export custom file types ( #20122 )
2025-05-22 22:29:27 +08:00
-LAN- and GitHub
d31235ca13
feat: Introduce WorkflowExecution Domain Entity and Repository, Replace WorkflowRun Direct Usage, and Unify Stream Response Logic ( #20067 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-21 22:01:53 +08:00
QuantumGhost and GitHub
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.
2025-05-21 18:38:16 +08:00
-LAN- and GitHub
3196dc2d61
refactor: Use typed SQLAlchemy base model and fix type errors ( #19980 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-21 15:38:03 +08:00
湛露先生 and GitHub
911f9eadd0
fix model workflow_draft_variables duplicate app_id set. ( #19949 )
...
Signed-off-by: zhanluxianshen <[email protected] >
2025-05-20 10:26:34 +08:00
QuantumGhost and GitHub
6a9e0b1005
feat(api): Introduce WorkflowDraftVariable Model ( #19737 )
...
- Introduce `WorkflowDraftVariable` model and the corresponding migration.
- Implement `EnumText`, a custom column type for SQLAlchemy designed
to work seamlessly with enumeration classes based on `StrEnum`.
2025-05-19 22:59:56 +08:00
4977bb21ec
feat(workflow): domain model for workflow node execution ( #19430 )
...
Signed-off-by: -LAN- <[email protected] >
Co-authored-by: Copilot <[email protected] >
2025-05-17 00:56:16 +08:00
-LAN- and GitHub
5360180a2a
feat: add index for workflow_conversation_variables.conversation_id ( #19657 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-14 14:16:15 +08:00
-LAN- and GitHub
792b321a81
refactor(models): Use the SQLAlchemy base model. ( #19435 )
...
Signed-off-by: -LAN- <[email protected] >
2025-05-09 13:52:05 +08:00