Commit Graph

1049 Commits

Author SHA1 Message Date
hjlarry
63c2265d55 avoid app context dependency in workflow socket auth 2026-04-13 09:21:55 +08:00
hjlarry
3cf56c8662 preserve comment mentions on position updates 2026-04-13 09:21:47 +08:00
hjlarry
f6d0fdefc5 Revert "tighten workflow room app lookup"
This reverts commit 5fcda1aaac.
2026-04-12 21:43:56 +08:00
hjlarry
5fcda1aaac tighten workflow room app lookup 2026-04-12 21:43:03 +08:00
hjlarry
dfcf7f3a11 fix workflow collaboration room authorization 2026-04-12 21:42:06 +08:00
hjlarry
5e8eeb92d9 fix: scope workflow comment reply mutations to tenant/app/comment 2026-04-12 18:42:08 +08:00
hjlarry
977af3399e fix(api): validate workflow mentions against tenant members 2026-04-12 16:23:19 +08:00
hjlarry
3288f5e100 fix(collaboration): align online-users keys to app_id
Switch /apps/workflows/online-users request and response schema from workflow_ids/workflow_id to app_ids/app_id without compatibility fallback.

Align app list online avatar lookup and online-user map indexing to app.id, matching socket room identity.

Update backend access checks, API fields, frontend contract/types, and unit tests accordingly.
2026-04-12 16:16:47 +08:00
hjlarry
6b7574023e fix(workflow): enforce tenant access in online users query
Validate requested workflow_ids against current tenant before reading collaboration online-user state from Redis.

Move workflow access-id lookup into WorkflowService to keep controller thin and aligned with layering.

Limit query size, and stop exposing sid in REST response fields.

Add unit tests for inaccessible workflow filtering and workflow_ids limit checks.
2026-04-12 16:05:29 +08:00
hjlarry
cbeeccf13b fix: py style and unittest 2026-04-11 20:25:03 +08:00
hjlarry
ee2b021395 Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-10 22:47:40 +08:00
plind
2dc015b360
fix(api): default parent_mode to paragraph for hierarchical chunking via API (#34635)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-10 10:55:40 +00:00
hjlarry
50c307739f Merge branch 'feat/collaboration2' of github.com:langgenius/dify into feat/collaboration2 2026-04-10 15:46:17 +08:00
corevibe555
98eedf14dc
refactor(services): replace Union with | syntax in service layer (#34905) 2026-04-10 07:44:47 +00:00
呆萌闷油瓶
cd3ee5bd5d
fix: sqlalchemy.orm.exc.DetachedInstanceError (#34910) 2026-04-10 07:44:22 +00:00
wangxiaolei
bcd738d2e6
fix: fix orm_exc.DetachedInstanceError (#34904)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-10 07:13:59 +00:00
corevibe555
488fcd4f83
refactor(services): replace Union with | syntax in service layer (batch 2) (#34906)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-10 07:05:31 +00:00
-LAN-
b90fe73c96
fix(api): prevent cross-tenant external API use-check disclosure (#34744) 2026-04-10 03:23:32 +00:00
hjlarry
3e0640a3aa feat: mentioned user email can directly open app 2026-04-10 11:11:53 +08:00
hjlarry
959a9f3456 fix: make sure restart server not get ghost online user 2026-04-10 10:50:39 +08:00
hjlarry
43b9bcd4e0 fix: ensure leader online to accept graph change 2026-04-10 10:40:21 +08:00
autofix-ci[bot]
19448b3cad
[autofix.ci] apply automated fixes 2026-04-10 02:30:57 +00:00
hjlarry
9c7a2196ed feat: send email when user mentioned in comment 2026-04-10 10:18:37 +08:00
hjlarry
59e752dcd3 Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-10 09:41:47 +08:00
dataCenter430
1117b6e72d
refactor: convert appmode misc if/elif to match/case (#30001) (#34869) 2026-04-10 00:35:12 +00:00
YBoy
2352269ba9
refactor(api): type recommend app database retrieval dicts with TypedDicts (#34873) 2026-04-10 00:32:24 +00:00
aliworksx08
e143dbce50
refactor: migrate session.query to select API in webhook service (#34849) 2026-04-09 14:16:33 +00:00
aliworksx08
8ad131bb3b
refactor: migrate session.query to select API in file service (#34852) 2026-04-09 14:15:59 +00:00
wangxiaolei
41eeb1f2e7
fix: fix sqlalchemy.orm.exc.DetachedInstanceError (#34845) 2026-04-09 10:55:48 +00:00
hjlarry
305a4b65cb Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-09 16:02:32 +08:00
-LAN-
d1e33ba9ea
refactor(api): reduce Dify GraphInitParams usage (#34825) 2026-04-09 07:59:15 +00:00
aliworksx08
4c05316a7b
refactor(api): deduplicate DSL shared entities into dsl_entities.py (#34762)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-09 06:04:18 +00:00
carlos4s
66e588c8ca
refactor(api): use sessionmaker in builtin tools manage service (#34812) 2026-04-09 05:58:38 +00:00
aliworksx08
ee789db443
refactor: migrate session.query to select API in plugin services (#34817)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-09 05:49:59 +00:00
dataCenter430
5f53748d07
refactor: convert ToolProviderType if/elif to match/case (#30001) (#34794) 2026-04-09 05:48:40 +00:00
carlos4s
a76a8876d1
refactor(api): use sessionmaker in datasource provider service (#34811) 2026-04-09 05:43:13 +00:00
carlos4s
be1f4b34f8
refactor(api): use sessionmaker in workflow & RAG pipeline services (#34805) 2026-04-09 05:42:39 +00:00
autofix-ci[bot]
cd4489563e
[autofix.ci] apply automated fixes 2026-04-09 03:36:49 +00:00
hjlarry
5cac278366 Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-09 11:31:09 +08:00
hjlarry
0055b983dc Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-09 11:27:12 +08:00
dataCenter430
9c4f897b9a
refactor: convert segmentType if/elif to match/case in webhook_service.py (#30001) (#34770) 2026-04-09 00:36:28 +00:00
Jake Armstrong
8f46c9113c
refactor(api): deduplicate ImportMode and ImportStatus enums from rag_pipeline_dsl_service (#34759) 2026-04-08 23:23:04 +00:00
carlos4s
5aa4e23f54
refactor(api): use sessionmaker in end user, retention & cleanup services (#34765) 2026-04-08 23:21:28 +00:00
carlos4s
1d971d3240
refactor(api): use sessionmaker in plugin & trigger services (#34764) 2026-04-08 23:18:26 +00:00
carlos4s
4c70bfa8b8
refactor(api): use sessionmaker in trigger provider service & dataset… (#34774) 2026-04-08 23:13:38 +00:00
carlos4s
a65e1f71b4
refactor: use sessionmaker in small services 2 (#34696)
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-08 05:06:50 +00:00
hj24
f5322e45fc
refactor: enhance billing info response handling (#34340)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-08 03:49:35 +00:00
corevibe555
5cd267d755
refactor(api): deduplicate RAG index entities and consolidate import paths (#34690) 2026-04-08 02:49:40 +00:00
corevibe555
c825d5dcf6
refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
corevibe555
624db69f12
refactor(api): remove duplicated RAG entities from services layer (#34689) 2026-04-07 23:36:59 +00:00