Harry
2fa6684c4d
Merge remote-tracking branch 'origin/main' into feat/trigger
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2025-11-13 10:59:57 +08:00
-LAN-
fe6538b08d
chore: disable workflow logs auto-cleanup by default ( #28136 )
...
autofix.ci / autofix (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
Main CI Pipeline / Check Changed Files (push) Waiting to run
Main CI Pipeline / API Tests (push) Blocked by required conditions
Main CI Pipeline / Web Tests (push) Blocked by required conditions
Main CI Pipeline / Style Check (push) Waiting to run
Main CI Pipeline / VDB Tests (push) Blocked by required conditions
Main CI Pipeline / DB Migration Test (push) Blocked by required conditions
This PR changes the default value of `WORKFLOW_LOG_CLEANUP_ENABLED` from `true` to `false` across all configuration files.
## Motivation
Setting the default to `false` provides safer default behavior by:
- Preventing unintended data loss for new installations
- Giving users explicit control over when to enable log cleanup
- Following the opt-in principle for data deletion features
Users who need automatic cleanup can enable it by setting `WORKFLOW_LOG_CLEANUP_ENABLED=true` in their configuration.
2025-11-12 22:55:02 +08:00
Asuka Minato
1bbb9d6644
convert to TypeBase ( #27935 )
...
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>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 21:50:13 +08:00
Gritty_dev
5c06e285ec
test: create some hooks and utils test script, modified clipboard test script ( #27928 )
2025-11-12 21:47:06 +08:00
Gen Sato
19c92fd670
Add file type validation to paste upload ( #28017 )
autofix.ci / autofix (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
Main CI Pipeline / Check Changed Files (push) Waiting to run
Main CI Pipeline / API Tests (push) Blocked by required conditions
Main CI Pipeline / Web Tests (push) Blocked by required conditions
Main CI Pipeline / Style Check (push) Waiting to run
Main CI Pipeline / VDB Tests (push) Blocked by required conditions
Main CI Pipeline / DB Migration Test (push) Blocked by required conditions
Check i18n Files and Create PR / check-and-update (push) Waiting to run
2025-11-12 19:27:56 +08:00
非法操作
6026bd873b
fix: variable assigner can't assign float number ( #28068 )
2025-11-12 19:27:36 +08:00
Bowen Liang
1369119a0c
fix: determine cpu cores determination in baseedpyright-check script on macos ( #28058 )
2025-11-12 19:27:27 +08:00
Yeuoly
b76e17b25d
feat: introduce trigger functionality ( #27644 )
...
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: Stream <Stream_2@qq.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zhsama <torvalds@linux.do>
Co-authored-by: Harry <xh001x@hotmail.com>
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: yessenia <yessenia.contact@gmail.com>
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WTW0313 <twwu@dify.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 17:59:37 +08:00
Yeuoly
87439b8fec
Merge main
2025-11-12 17:49:17 +08:00
Yeuoly
08034532f6
Update trigger.py
2025-11-12 17:42:55 +08:00
Maries
c5f47ebccd
Merge branch 'main' into feat/trigger
2025-11-12 17:14:35 +08:00
Jyong
ca7794305b
add transform-datasource-credentials command online check ( #28124 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
2025-11-12 17:13:44 +08:00
Yeuoly
6744306818
Merge branch 'main' into feat/trigger
2025-11-12 17:04:31 +08:00
QuantumGhost
fd255e81e1
feat(api): Introduce WorkflowResumptionContext for pause state management ( #28122 )
...
Certain metadata (including but not limited to `InvokeFrom`, `call_depth`, and `streaming`) is required when resuming a paused workflow. However, these fields are not part of `GraphRuntimeState` and were not saved in the previous
implementation of `PauseStatePersistenceLayer`.
This commit addresses this limitation by introducing a `WorkflowResumptionContext` model that wraps both the `*GenerateEntity` and `GraphRuntimeState`. This approach provides:
- A structured container for all necessary resumption data
- Better separation of concerns between execution state and persistence
- Enhanced extensibility for future metadata additions
- Clearer naming that distinguishes from `GraphRuntimeState`
The `WorkflowResumptionContext` model makes extending the pause state easier while maintaining backward compatibility and proper version management for the entire execution state ecosystem.
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:00:02 +08:00
lyzno1
3ff14ccc89
Merge branch 'main' into feat/trigger
2025-11-12 16:49:08 +08:00
Joel
09d31d1263
chore: improve the user experience of not login into apps ( #28120 )
2025-11-12 16:47:45 +08:00
Yeuoly
9c30f16e4b
Update api/tasks/trigger_processing_tasks.py
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 16:42:12 +08:00
Harry
c31933c163
chore: downgrade dify-api version to 1.9.2 in uv.lock
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2025-11-12 16:20:22 +08:00
Harry
574eb1a10a
chore: downgrade version to 1.9.2 in pyproject.toml(ready for merge)
2025-11-12 16:18:19 +08:00
Harry
e6ac783fc3
Merge remote-tracking branch 'origin/main' into feat/trigger
2025-11-12 16:01:19 +08:00
Jyong
47dc26f011
fix document index test ( #28113 )
2025-11-12 16:00:10 +08:00
Harry
689a75f44a
Merge remote-tracking branch 'origin/main' into feat/trigger
2025-11-12 15:07:05 +08:00
湛露先生
123bb3ec08
When graph_engine worker run exception, keep the node_id for deep res… ( #26205 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-11-12 15:03:45 +08:00
Joel
90f77282e3
chore: not SaaS version can query long log time range ( #28109 )
2025-11-12 14:45:56 +08:00
hjlarry
a25f469bde
fix(trigger): Prevent marketplace tool downloads from retriggering on tab change
2025-11-12 13:40:56 +08:00
lyzno1
044ee7ef54
feat(workflow): always render featured tools section
2025-11-12 10:37:39 +08:00
hjlarry
2725f28fa8
fix(trigger): incorrect behavior when node uninstalled on the canvas
2025-11-12 10:12:49 +08:00
zhsama
36ad784251
feat(workflow-header): add conditional logic to disable publish and refresh actions based on workflow node presence
2025-11-11 20:08:09 +08:00
lyzno1
0a39e5c092
Fix modal query sync for settings & pricing
2025-11-11 19:32:48 +08:00
lyzno1
9169a5e35b
Merge branch 'main' into feat/trigger
2025-11-11 18:05:23 +08:00
Jyong
5208867ccc
fix document enable ( #28081 )
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
Main CI Pipeline / Check Changed Files (push) Waiting to run
Main CI Pipeline / API Tests (push) Blocked by required conditions
Main CI Pipeline / Web Tests (push) Blocked by required conditions
Main CI Pipeline / Style Check (push) Waiting to run
Main CI Pipeline / VDB Tests (push) Blocked by required conditions
Main CI Pipeline / DB Migration Test (push) Blocked by required conditions
2025-11-11 17:50:45 +08:00
zhsama
bfdcb79e19
feat(card-view): enhance CardView to conditionally render AppCards based on trigger node presence in workflow
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
2025-11-11 16:54:06 +08:00
zhsama
c37cce000f
refactor: replace TRIGGER_NODE_TYPES with isTriggerNode utility for improved node type checks across workflow components
2025-11-11 16:54:06 +08:00
autofix-ci[bot]
6d3fb9b769
[autofix.ci] apply automated fixes
2025-11-11 08:37:13 +00:00
Harry
c04913ecf8
refactor(tests): remove redundant graph validation tests from WorkflowService unit tests
...
- Deleted tests for graph initialization and error propagation that were deemed unnecessary.
- Cleaned up the test suite to improve maintainability and focus on essential validation scenarios.
2025-11-11 16:35:19 +08:00
lyzno1
3a84a64c32
refactor: unify account setting tab constants and tighten modal types
2025-11-11 16:16:41 +08:00
lyzno1
b344d4add1
Merge remote-tracking branch 'origin/main' into feat/trigger
2025-11-11 16:16:22 +08:00
lyzno1
405a4ec9f8
feat: add URL parameter support for settings modal using action=showSettings
2025-11-11 16:16:06 +08:00
lyzno1
edc7ccc795
chore: add type-check to pre-commit ( #28005 )
2025-11-11 16:14:39 +08:00
Harry
8bb11a588c
fix(tests): fix end node missing ouputs
2025-11-11 16:14:00 +08:00
Harry
44f451bd7d
refactor(api): improve graph validation logic in WorkflowService
...
- Updated the validate_graph_structure method to handle empty graph cases gracefully.
- Introduced a variable for workflow_id to ensure consistent handling of unknown workflow IDs.
- Enhanced code readability and maintainability by refining the method's structure.
2025-11-11 16:14:00 +08:00
zhsama
35d914e755
Merge remote-tracking branch 'origin/feat/trigger' into feat/trigger
2025-11-11 15:22:39 +08:00
zhsama
9c37f8c1cb
feat(trigger): add support for trigger nodes and user input node management in workflow components
2025-11-11 15:21:04 +08:00
lyzno1
9de0e3c3a7
fix: add missing TimePicker type definitions for notClearable, triggerFullWidth, showTimezone and placement
2025-11-11 15:18:14 +08:00
lyzno1
707c94f86e
feat: add URL parameter support for pricing modal using action=showPricing
2025-11-11 15:15:40 +08:00
lyzno1
81afd087f6
feat: add trigger events, workflow execution, and start nodes to billing plan features
...
- Add three new feature items to cloud plan list:
- Trigger Events (varies by plan: 3K for sandbox, 20K/month for pro, unlimited for team)
- Workflow Execution (standard/faster/priority based on plan)
- Start Nodes (limited to 2 for sandbox, unlimited for pro/team)
- Add i18n translations for en-US and zh-Hans
- Position new items below document processing priority and above divider
2025-11-11 15:00:25 +08:00
lyzno1
0f952f328f
feat: add api rate limit and trigger events billing card
2025-11-11 15:00:25 +08:00
autofix-ci[bot]
50619fba0a
[autofix.ci] apply automated fixes
2025-11-11 06:54:03 +00:00
Harry
aad31bb703
feat(api): enhance workflow validation and structure checks
...
- Added a new validation class to ensure that trigger nodes do not coexist with UserInput (start) nodes in the workflow graph.
- Implemented a method in WorkflowService to validate the graph structure before persisting workflows, leveraging the new validation logic.
- Updated unit tests to cover the new validation scenarios and ensure proper error propagation.
2025-11-11 14:52:13 +08:00
hjlarry
7484a020e1
fix(trigger): subscription schema use bool field cause pydantic error
2025-11-11 14:05:11 +08:00