dify/api/tests/unit_tests
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
..
commands feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
configs refactor: Unify NodeConfigDict.data and BaseNodeData (#32780) 2026-03-11 23:43:58 +08:00
controllers fix(workflow): enforce tenant access in online users query 2026-04-12 16:05:29 +08:00
core refactor(api): use sessionmaker in relyt & tidb_vector VDB services (#34848) 2026-04-10 03:16:25 +00:00
enterprise/telemetry feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
events feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
extensions refactor(otel): replace Any with Tracer and [T] generics (#34883) 2026-04-10 07:37:14 +00:00
factories chore: normalize frozenset literals and myscale typing (#34327) 2026-03-31 08:21:22 +00:00
fields refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
libs Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-10 22:47:40 +08:00
models chore: improve py codecov 2026-04-11 21:57:20 +08:00
oss refactor(api): replace test fixture side-effect imports (#34421) 2026-04-02 04:55:15 +00:00
repositories Merge remote-tracking branch 'myori/main' into feat/collaboration2 2026-04-09 11:27:12 +08:00
services chore: improve py codecov 2026-04-11 21:57:20 +08:00
tasks refactor: migrate session.query to select API in clean dataset task (#34815) 2026-04-09 05:46:36 +00:00
tools chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
utils fix: fix remove_leading_symbols remove [ (#34832) 2026-04-09 08:22:09 +00:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
.gitignore Enhance Code Consistency Across Repository with .editorconfig (#19023) 2025-04-29 18:04:33 +08:00
conftest.py refactor: select in service API wraps, file_preview, and site controllers (#34086) 2026-03-25 23:01:05 +09:00