dify/api/fields
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
..
__init__.py Feat/dataset service api (#1245) 2023-09-27 16:06:32 +08:00
_value_type_serializer.py refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00
annotation_fields.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
api_based_extension_fields.py fix(api): restful to restx migration issue (#24416) 2025-08-24 20:58:42 +08:00
app_fields.py feat: add draft trigger detection to app model and UI (#28163) 2025-11-13 15:43:58 +08:00
base.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
conversation_fields.py refactor(api): deduplicate Pydantic models across fields and controllers (#34718) 2026-04-08 05:20:00 +00:00
conversation_variable_fields.py refactor: migrate some ns.model to BaseModel (#30388) 2026-01-01 00:38:12 +08:00
data_source_fields.py code cleans ,and add exception message. (#24536) 2025-08-26 14:52:11 +08:00
dataset_fields.py feat: Add summary index for knowledge. (#31625) 2026-01-29 13:47:35 +08:00
document_fields.py feat: Add summary index for knowledge. (#31625) 2026-01-29 13:47:35 +08:00
end_user_fields.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
file_fields.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
hit_testing_fields.py feat: Add summary index for knowledge. (#31625) 2026-01-29 13:47:35 +08:00
installed_app_fields.py try flask_restful -> flask_restx (#24310) 2025-08-24 13:45:47 +08:00
member_fields.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
message_fields.py refactor(api): deduplicate Pydantic models across fields and controllers (#34718) 2026-04-08 05:20:00 +00:00
online_user_fields.py fix(workflow): enforce tenant access in online users query 2026-04-12 16:05:29 +08:00
rag_pipeline_fields.py refactor: remove unnecessary type: ignore from rag_pipeline_fields.py (#30666) 2026-01-07 14:40:35 +08:00
raws.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
segment_fields.py feat: Add summary index for knowledge. (#31625) 2026-01-29 13:47:35 +08:00
tag_fields.py refactor(api): Extract shared ResponseModel (#34633) 2026-04-07 13:05:38 +00:00
workflow_app_log_fields.py refactor: port api/controllers/console/app/annotation.py api/controllers/console/explore/trial.py api/controllers/console/workspace/account.py api/controllers/console/workspace/members.py api/controllers/service_api/app/annotation.py to basemodel (#31833) 2026-02-03 09:59:00 +08:00
workflow_comment_fields.py fix merge problem 2025-09-18 15:45:53 +08:00
workflow_fields.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
workflow_run_fields.py feat: archive workflow run logs backend (#31310) 2026-01-23 13:11:56 +08:00
workflow_trigger_fields.py feat: introduce trigger functionality (#27644) 2025-11-12 17:59:37 +08:00