Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
733386b
feat(api/repo): Allow to config repository implementation
laipz8200 Jun 24, 2025
b2b4049
feat: Create a DifyAPIRepositoryFactory to handle workflow node execu…
laipz8200 Jun 27, 2025
b450acf
feat: Create a APIWorkflowRunRepository
laipz8200 Jun 27, 2025
6a11105
test(workflow_service): Fix test
laipz8200 Jun 27, 2025
641cabc
chore: add new configs to env example
laipz8200 Jun 27, 2025
8e71a9a
test(test_workflow_draft_variable_service): Fix tests
laipz8200 Jul 7, 2025
6076240
feat: Integrates execution repository inheritance
laipz8200 Jul 9, 2025
63bbcaf
refactor(token_buffer_memory): Convert ValueError to AssertionError
laipz8200 Jul 10, 2025
cf2b5c7
refactor(workflow_response_converter): Remove unused workflow_executi…
laipz8200 Jul 10, 2025
f585431
refactor(factory): Move import statement to the top
laipz8200 Jul 10, 2025
a0cfdb4
docs(api_workflow_node_execution_repository): Add notice about datat …
laipz8200 Jul 10, 2025
40a7089
refactor(api_workflow_node_execution_repository): Refactors workflow …
laipz8200 Jul 10, 2025
00462a0
refactor(api): Simplify the constructor for WorkflowDraftVariableService
QuantumGhost Jul 10, 2025
115c6e2
chore(api): improve type hints for `DifyCoreRepositoryFactory`
QuantumGhost Jul 10, 2025
00c50ed
test(api): fix tests broken by refactor
QuantumGhost Jul 10, 2025
7a47b86
refactor(remove_app_and_related_data_task): Remove 'expire_on_commit'…
laipz8200 Jul 14, 2025
42a195e
feat(api/repositories/sqlalchemy_api_workflow_run_repository.py): Imp…
laipz8200 Jul 14, 2025
0d1b27f
docs(api/repositories/api_workflow_node_execution_repository.py): Add…
laipz8200 Jul 14, 2025
7cabcea
docs(api/repositories/sqlalchemy_api_workflow_node_execution_reposito…
laipz8200 Jul 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(api_workflow_node_execution_repository): Add notice about datat …
…isolation

Signed-off-by: -LAN- <laipz8200@outlook.com>
  • Loading branch information
laipz8200 committed Jul 14, 2025
commit a0cfdb40d5d884faf08a4d824a3d5d4225af855c
4 changes: 4 additions & 0 deletions api/repositories/api_workflow_node_execution_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def get_execution_by_id(
This method retrieves a specific execution by its unique identifier.
Tenant filtering is optional for cases where the execution ID is globally unique.

When `tenant_id` is None, it's the caller's responsibility to ensure proper data isolation between tenants.
If the `execution_id` comes from untrusted sources (e.g., retrieved from an API request), the caller should
set `tenant_id` to prevent horizontal privilege escalation.

Args:
execution_id: The execution identifier
tenant_id: Optional tenant identifier for additional filtering
Expand Down