Commit Graph

10674 Commits

Author SHA1 Message Date
hjlarry
d2e9fdc6b5 fix: localize workflow online user fallback labels 2026-04-12 20:42:46 +08:00
hjlarry
cf74c5c8db fix: avoid hidden N+1 in workflow comment participants 2026-04-12 20:39:21 +08:00
hjlarry
cadc021bfa fix: sign workflow online user avatars in app list API 2026-04-12 20:35:23 +08:00
hjlarry
d8e0b499df fix: debounce follower workflow sync requests in collaboration mode 2026-04-12 20:22:06 +08:00
hjlarry
effe12cbee fix: require edit permission for draft workflow feature updates 2026-04-12 18:43:43 +08:00
hjlarry
5e8eeb92d9 fix: scope workflow comment reply mutations to tenant/app/comment 2026-04-12 18:42:08 +08:00
hjlarry
763524fc33 fix(web): fine-tune comment marker avatar vertical alignment 2026-04-12 18:05:40 +08:00
hjlarry
1722c883f3 fix(web): adjust app card online avatars layout and counter alignment 2026-04-12 17:56:53 +08:00
GDS K S
0862fd74b0
refactor: migrate _model_to_insertion_dict return type to TypedDict (#34988) 2026-04-12 09:50:55 +00:00
hjlarry
0967ad5145 fix(web): localize workflow comments panel filters across locales 2026-04-12 16:38:57 +08:00
hjlarry
0acd329e6d fix(web): align workflow comment reply contract outputs 2026-04-12 16:28:25 +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
828276d672 fix(collaboration): seed CRDT graph before leader resync
Avoid writing partial graph into CRDT during initial HTTP draft parsing in workflow-app.

Seed CRDT from current ReactFlow graph only when CRDT is empty and collaboration is connected, then reuse it for leader snapshot rebroadcast.

This prevents join-time resync from broadcasting an empty snapshot when leader has not produced local CRDT mutations yet.
2026-04-12 15:41:54 +08:00
dataCenter430
e0139f91c8
test: migrate conftest and plugin lifecycle tests to SQLAlchemy 2.0 select() API (#34979) 2026-04-12 05:21:31 +00:00
dataCenter430
64920ef648
test: migrate test_messages_clean_service to SQLAlchemy 2.0 select() API (#34984) 2026-04-12 05:21:07 +00:00
dataCenter430
7ba70869aa
test: migrate test_remove_app_and_related_data_task to SQLAlchemy 2.0 select() API (#34985) 2026-04-12 05:19:49 +00:00
wdeveloper16
f67297688f
refactor(tasks): migrate document_indexing_task and remove_app_and_related_data_task to SQLAlchemy 2.0 select() API (#34968)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-12 01:49:56 +00:00
wdeveloper16
0841b4c663
refactor(api): migrate tools, account, workflow and plugin services to SQLAlchemy 2.0 (#34966)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:45:27 +00:00
wdeveloper16
440602f52a
refactor(services): migrate summary_index_service to SQLAlchemy 2.0 select() API (#34971)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:37:16 +00:00
wdeveloper16
510120410b
refactor(services): migrate trigger_provider_service to SQLAlchemy 2.0 select() API (#34972)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:36:13 +00:00
wdeveloper16
4ef67fef3a
refactor(services): migrate builtin_tools_manage_service to SQLAlchemy 2.0 select() API (#34973)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:25:51 +00:00
wdeveloper16
45561bed9d
test: update TestContainers integration tests and unit test fixtures to SQLAlchemy 2.0 select() API (#34969)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:24:14 +00:00
wdeveloper16
7bd5e80323
refactor(services): migrate datasource_provider_service to SQLAlchemy 2.0 select() API (#34974) 2026-04-12 01:23:24 +00:00
wdeveloper16
7515eee0a8
refactor(services): migrate dataset_service and clear_free_plan_tenant_expired_logs to SQLAlchemy 2.0 select() API (#34970)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:21:52 +00:00
wdeveloper16
452067db19
test: migrate Conversation.status_count and Site.generate_code SQL tests to Testcontainers (#34955) 2026-04-11 17:56:44 +00:00
Sven Weidenmann
859920a81f
refactor: migrate verify_subscription_credentials return type to TypedDict (#34967) 2026-04-11 16:41:40 +00:00
wdeveloper16
34ce3cac70
test: migrate RagPipelineService DB operation SQL tests to Testcontainer (#34959)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-11 16:32:52 +00:00
wdeveloper16
12814b55d2
refactor(api): migrate core RAG layer to SQLAlchemy 2.0 select() API (#34965) 2026-04-11 16:32:20 +00:00
wdeveloper16
50206ae8a7
test: migrate WorkflowNodeExecutionModel creator property SQL tests to Testcontainers (#34958)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-11 15:39:49 +00:00
wdeveloper16
169184ac9b
test: migrate Conversation/Message inputs tenant resolution SQL tests to Testcontainers (#34957) 2026-04-11 15:39:30 +00:00
wdeveloper16
33bc58c9c2
refactor(api): migrate controllers to SQLAlchemy 2.0 select() API (#34960)
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-11 15:30:19 +00:00
wangxiaolei
65d66768c1
fix: fix tool output duplicate (#34962) 2026-04-11 15:07:31 +00:00
autofix-ci[bot]
631341e773
[autofix.ci] apply automated fixes 2026-04-11 14:01:59 +00:00
hjlarry
a29e831ce5 chore: improve py codecov 2026-04-11 21:57:20 +08:00
hjlarry
6209038918 fix: web test 2026-04-11 21:24:54 +08:00
hjlarry
7747b637db fix: web style 2026-04-11 20:29:33 +08:00
hjlarry
cbeeccf13b fix: py style and unittest 2026-04-11 20:25:03 +08:00
hjlarry
fb27f368e8 chore: improve workflowComment schema define 2026-04-11 20:21:09 +08:00
yyh
c960f7ae48
refactor: remove base ui i18n dependency (#34921) 2026-04-11 12:10:30 +00:00
hjlarry
76a5123865 chore: revert not related change 2026-04-11 20:07:50 +08:00
hjlarry
558aca31e7 chore: revert not related change 2026-04-11 20:04:39 +08:00
hjlarry
98a977eaf2 chore: revert not related change 2026-04-11 19:58:40 +08:00
hjlarry
9c8bef1064 chore: refactor env-panel collaboration 2026-04-11 19:51:17 +08:00
hjlarry
9ce4517ee1 chore: revert not related change 2026-04-11 19:43:41 +08:00
hjlarry
73c77b6701 fix: web style 2026-04-11 19:35:04 +08:00
hjlarry
e5ab4d1ed3 chore: improve codecov 2026-04-11 18:44:31 +08:00
hjlarry
577ab01bbb chore: improve codecov 2026-04-11 18:12:27 +08:00
hjlarry
295306a30d chore: directly 0.0.0.0:5001 for dev 2026-04-11 17:41:16 +08:00