cd07eef639
Merge remote-tracking branch 'origin/main' into feat/trigger
2025-09-25 17:14:24 +08:00
ef9a741781
feat(trigger): enhance trigger management with new error handling and response structure
...
- Added `TriggerInvokeError` and `TriggerIgnoreEventError` for better error categorization during trigger invocation.
- Updated `TriggerInvokeResponse` to include a `cancelled` field, indicating if a trigger was ignored.
- Enhanced `TriggerManager` to handle specific errors and return appropriate responses.
- Refactored `dispatch_triggered_workflows` to improve workflow execution logic and error handling.
These changes improve the robustness and clarity of the trigger management system.
2025-09-23 16:01:59 +08:00
8940decd1b
more httpx ( #25651 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-09-22 23:07:09 +08:00
034602969f
feat(schedule-trigger): enhance cron parser with mature library and comprehensive testing ( #26002 )
2025-09-22 10:01:48 +08:00
85cda47c70
feat: knowledge pipeline ( #25360 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: twwu <twwu@dify.ai >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: jyong <718720800@qq.com >
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com >
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com >
Co-authored-by: quicksand <quicksandzn@gmail.com >
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com >
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: nite-knite <nkCoding@gmail.com >
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com >
2025-09-18 12:49:10 +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 <100913391+crazywoola@users.noreply.github.com >
2025-09-12 21:14:26 +08:00
c2fcd2895b
Feat/email register refactor ( #25369 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: Joel <iamjoel007@gmail.com >
2025-09-12 10:24:54 +08:00
4a743e6dc1
feat: add workflow schedule trigger support ( #24428 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-10 13:24:23 +08:00
08dd3f7b50
Fix basedpyright type errors ( #25435 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-10 01:54:26 +08:00
ea61420441
Revert "feat: email register refactor" ( #25367 )
2025-09-08 19:20:09 +08:00
860ee20c71
feat: email register refactor ( #25344 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-09-08 17:51:43 +08:00
f6059ef389
add more typing ( #24949 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-08 10:40:00 +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- <laipz8200@outlook.com >
2025-09-06 03:32:23 +08:00
9d5956cef8
[Chore/Refactor] Switch from MyPy to Basedpyright for type checking ( #25047 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-09-03 11:52:26 +08:00
7b379e2a61
chore: apply ty checks on api code with script and ci action ( #24653 )
2025-09-02 16:05:13 +08:00
3d5a4df9d0
chore: use orjson in streaming event JSON serialisation for performance improvement ( #24763 )
2025-08-29 14:06:07 +08:00
bb718acadf
Fix token expiry miscalculation ( #24639 )
2025-08-27 18:19:58 +08:00
fa753239ad
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-08-26 18:10:31 +08:00
6e674b511a
api: support to config disabling Swagger UI in api service ( #24440 )
2025-08-26 15:48:04 +08:00
d7869a4d1e
feat: add authorizations for swagger doc ( #24518 )
2025-08-26 11:41:00 +08:00
2b91ba2411
example: limit current user usage ( #24470 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-26 00:23:29 +08:00
a9e106b17e
fix: Fix login error handling by raising exception instead of returning ( #24452 )
2025-08-25 13:54:25 +08:00
fe06d266e9
refactor: better error handler ( #24422 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-08-25 09:28:42 +08:00
f31ddc4b1c
fix(api): restful to restx migration issue ( #24416 )
2025-08-24 20:58:42 +08:00
18dce66443
try flask_restful -> flask_restx ( #24310 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
2025-08-24 13:45:47 +08:00
77223e4df4
refactor: simplify repository factory with Django-style import_string ( #24354 )
2025-08-22 21:56:25 +08:00
ac02c12e49
fix: resolve Windows path separator issue in Huawei OBS operations ( #23475 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-07 21:17:46 +08:00
a189d293f8
make logging not use f-str, change others to f-str ( #22882 )
2025-07-25 10:32:48 +08:00
de611ab344
Feat: add notification for change email completed ( #22812 )
...
Co-authored-by: Yansong Zhang <916125788@qq.com >
2025-07-24 14:16:39 +08:00
ef51678c73
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-24 00:57:45 +08:00
0731db8c22
fix: private.pem keyPath error in windows ( #22814 )
...
Co-authored-by: songkunling <songkunling@cabrtech.com >
2025-07-23 23:29:46 +08:00
0f4809b9b8
refactor: centralize email internationalization handling ( #22752 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-23 00:26:00 +08:00
ce794335e9
Fix/replace datetime patterns with naive utc now ( #22654 )
2025-07-20 11:05:53 +08:00
1715dd4320
refactor: Fix some type error ( #22594 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-07-18 09:26:29 +08:00
d2933c2bfe
fix: drop dead code phase2 unused class ( #22042 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-07-17 09:33:07 +08:00
ddfd8c8525
feat(api): add UUIDv7 implementation in SQL and Python ( #22058 )
...
This PR introduces UUIDv7 implementations in both Python and SQL to establish the foundation for migrating from UUIDv4 to UUIDv7 as proposed in #19754 .
ID generation algorithm of existing models are not changed, and new models should use UUIDv7 for ID generation.
Close #19754 .
2025-07-16 13:07:08 +08:00
253d8e5a5f
test: add comprehensive unit tests for PassportService with exception handling optimization ( #22268 )
2025-07-12 19:56:20 +08:00
4cb50f1809
feat(libs): Introduce extract_tenant_id ( #22086 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-07-09 17:45:56 +08:00
1a7ad195f0
refactor: define the Dify project version in pyproject.toml ( #20910 )
2025-07-01 12:07:24 +08:00
a098825fcc
Update smtp.py ( #21335 )
2025-06-25 13:50:35 +08:00
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
d34795fc08
bug: fix minor exception msg missing ( #21255 )
2025-06-20 09:23:41 +08:00
7b9e01aa07
Feat/support sendgrid ( #21011 )
...
Co-authored-by: André de Matteo <andre.matteo@accenture.com >
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-06-19 10:27:38 +08:00
0dcacdf83d
feat: add a flask_context_manager. ( #21061 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2025-06-17 16:31:29 +08:00
41e3ecc837
fix remote ip header CF-Connecting-IP ( #20846 )
2025-06-11 16:57:24 +08:00
d6d8cca053
refactor: replace compact response generation with length-prefixed response for backwards invocation api ( #20903 )
2025-06-11 16:01:50 +08:00
c1a13fa553
chore: replace pseudo-random generators with secrets module ( #20616 )
2025-06-06 10:48:28 +08:00
822298f69d
Fix 500 error ( #20614 )
2025-06-05 10:29:13 +08:00
e40e9db39a
fixes #19634 ( #20545 )
2025-06-03 16:38:48 +08:00