Stephen Zhou
38457f27fb
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# .agents/skills/how-to-write-component/references/data.md
# .agents/skills/how-to-write-component/references/ownership.md
# api/controllers/inner_api/__init__.py
# api/tests/test_containers_integration_tests/services/test_account_service.py
# api/tests/unit_tests/services/test_account_service.py
# packages/iconify-collections/custom-public/icons.json
# packages/iconify-collections/custom-public/info.json
# web/features/new-rag/__tests__/new-knowledge-list.spec.tsx
# web/features/new-rag/components/knowledge-space-card.tsx
# web/features/new-rag/document-chunk-tree.tsx
# web/features/tag-management/components/tag-search-content.tsx
# web/features/tag-management/components/tag-selector.tsx
# web/service/client.spec.ts
2026-09-04 19:42:31 +08:00
非法操作
e6c9846726
refactor(api): isolate workflow app log queries ( #41509 )
2026-09-04 10:06:46 +00:00
Pranav Agarwal
067a60e0ac
fix(api): enforce admin and RBAC permissions on model provider model credential GET endpoint ( #41599 ) ( #41600 )
...
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai>
2026-09-04 09:17:41 +00:00
非法操作
b15fb30ff5
refactor(api): extract app statistic queries from console controllers ( #41557 )
2026-09-04 09:15:51 +00:00
非法操作
f8930aba34
refactor(api): extract console workflow run application service ( #41336 )
2026-09-04 08:16:49 +00:00
Byron.wang
09f301d969
refactor(api): move OpenAPI account access behind application services ( #41308 )
2026-09-04 07:38:01 +00:00
非法操作
cea89f784f
refactor: make explore localization request-driven ( #41798 )
2026-09-04 06:03:46 +00:00
非法操作
8e2058a962
refactor: pass notification language explicitly ( #41770 )
2026-09-04 01:52:30 +00:00
Keith
e6a38fd793
refactor(models): remove legacy db.session property wrappers on Document ( #41721 )
2026-09-03 13:34:49 +00:00
Jyong
79116d8c4b
feat(knowledge-fs): scope dataset API keys by knowledge base type
...
Legacy knowledge bases (`datasets`) and KnowledgeFS spaces
(`knowledge_fs_control_spaces`) live in different tables, so a dataset API
key binding could only ever name a legacy dataset and the KnowledgeFS service
API never consulted bindings at all: a key scoped to specific knowledge bases
still reached every KnowledgeFS space in the workspace.
- Bindings carry a `resource_type` (`dataset` | `knowledge_fs_space`) and a
nullable `control_space_id` (migration 9a4e7d1c2b60, existing rows stay
`dataset`), with a CHECK that exactly one id column matches the type.
- `dataset_api_key_service` exposes the key scope by kind, validates and
binds KnowledgeFS spaces (tenant-owned, not deleting/deleted), and cleans up
keys scoped only to a space when its deletion is requested. The orphan-key
cleanup is now NULL-safe so a space binding keeps a key alive.
- Legacy dataset routes only honour `dataset` bindings; the KnowledgeFS
authorization service only honours `knowledge_fs_space` bindings and raises
a scope error that the service API maps to 403 (unknown keys stay 401).
- Console key creation accepts `knowledge_space_ids`; list/create responses
return them next to `dataset_ids`.
- The web scope picker lists KnowledgeFS spaces alongside legacy datasets
when KnowledgeFS is enabled and submits the ids by kind; the scope column
counts both.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 05:59:39 -04:00
FFXN
5b7f15f2b1
test(knowledge-fs): add tests for dataset upgrade API with disabled knowledge FS
2026-09-03 17:20:56 +08:00
Byron.wang
692010f0fc
refactor(api): decouple console OAuth flow from legacy account services ( #41188 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-03 08:47:14 +00:00
Stephen Zhou
42cb6519ea
Merge remote-tracking branch 'origin/main' into deploy/konwledge
2026-09-03 16:32:30 +08:00
Byron.wang
b015aa416f
refactor(api): extract account login service and consolidate adapters ( #41184 )
2026-09-03 06:20:21 +00:00
非法操作
ba1d5ba172
refactor(api): centralize remote file handling ( #41627 )
2026-09-03 06:00:13 +00:00
非法操作
69484a07e1
refactor(console): inject file service ( #41603 )
2026-09-03 04:42:30 +00:00
Eddy ZHANG
95a6a14ed5
refactor(console,web): dep-inject query params with @model_validate ( #41646 )
2026-09-03 01:50:22 +00:00
Byron.wang
be7d11ca1d
refactor(api): extract forgot password application service ( #41111 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-03 01:38:59 +00:00
Stephen Zhou
45bee40955
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/controllers/console/datasets/datasets.py
# api/tests/unit_tests/controllers/console/datasets/test_datasets.py
2026-09-02 21:56:53 +08:00
YungLe
3cd1fc098c
feat: allow knowledge base API keys to be scoped to a single dataset ( #37569 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-02 10:30:42 +00:00
非法操作
59ee8878f9
refactor(api): require active workspace in request context ( #41280 )
2026-09-02 06:54:47 +00:00
Stephen Zhou
cd7e1be7cb
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/services/feature_service.py
# api/tests/unit_tests/controllers/console/workspace/test_members.py
# api/tests/unit_tests/core/workflow/nodes/agent_v2/test_validators.py
# api/tests/unit_tests/services/test_system_feature_service_knowledge_fs.py
# pnpm-lock.yaml
2026-09-02 10:31:10 +08:00
Xiyuan Chen
93dae7d8a0
fix(rbac): let agent.manage operate every agent page ( #41583 )
...
Co-authored-by: yunlu.wen <yunlu.wen@dify.ai>
2026-09-02 01:45:42 +00:00
Byron.wang
c4ea406586
refactor(api): decouple system features and web adapters ( #40772 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-01 11:50:52 +00:00
Asuka Minato
7978352262
test: migrate dataset download sessions and ORM models to SQLite ( #40630 )
2026-09-01 09:28:50 +00:00
Asuka Minato
d337c59916
test: migrate workspace member sessions and ORM models to SQLite ( #40523 )
2026-09-01 09:27:46 +00:00
Eddy ZHANG
1977355dd1
refactor(console): dep-inject model provider payloads with @model_validate ( #41539 )
2026-09-01 04:24:45 +00:00
Joel
5cbc42cd38
chore: Revert "feat: use app.acl.access_point_manage to control access point page access" ( #41563 )
2026-09-01 03:46:03 +00:00
Stephen Zhou
5770ebdba8
fix(knowledge-fs): reconcile main merge regressions
2026-09-01 10:10:52 +08:00
Stephen Zhou
ecd41aed3f
Merge remote-tracking branch 'origin/main' into deploy/konwledge
2026-09-01 09:45:49 +08:00
Asuka Minato
9398482b53
test: migrate console dataset sessions and ORM models to SQLite ( #40521 )
2026-08-31 05:55:12 +00:00
Byron.wang
d25e2b51fc
refactor(api): decouple onboarding and notification services ( #40759 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hjlarry <hjlarry@163.com>
2026-08-31 04:37:07 +00:00
Byron.wang
9e07c2dac6
refactor(api): extract email registration application service ( #41108 )
...
Co-authored-by: hjlarry <hjlarry@163.com>
2026-08-31 03:22:01 +00:00
wangxiaolei
6a00c23e49
feat: use app.acl.access_point_manage to control access point page access ( #41462 )
...
Co-authored-by: twwu <twwu@dify.ai>
2026-08-31 03:05:19 +00:00
zyssyz123
ad86351cc1
fix(agent): reject incompatible session snapshots ( #41447 )
2026-08-31 02:26:07 +00:00
Eddy ZHANG
6130f081e0
refactor(console): dep-inject account payloads with @model_validate ( #41500 )
2026-08-31 00:52:10 +00:00
jjj-n
09054169c4
refactor(models): pass session into Workflow accessors ( #41464 )
2026-08-29 14:28:15 +00:00
Asuka Minato
2bdcbe96c5
test: enforce centralized config overrides ( #40869 )
2026-08-29 14:05:35 +00:00
Terminator666666
f8dd276e2c
refactor(controllers/console): dep-inject workflow payloads with @model_validate ( #41244 )
...
Co-authored-by: Terminator666666 <Terminator666666@users.noreply.github.com>
2026-08-28 14:49:46 +00:00
Asuka Minato
92110e1982
test: centralize controller and storage config overrides ( #40867 )
2026-08-28 14:47:17 +00:00
yyh
78c85ae7c1
fix(agent): add roster publication status contract ( #41435 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-28 08:50:30 +00:00
Stephen Zhou
9098955a77
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/tests/unit_tests/controllers/console/test_knowledge_fs_proxy.py
# api/tests/unit_tests/services/test_knowledge_fs_proxy.py
# web/app/components/workflow-app/hooks/use-available-nodes-meta-data.ts
2026-08-28 14:50:39 +08:00
Asuka Minato
3ea5f38e92
test: migrate human input sessions and ORM models to SQLite ( #40597 )
2026-08-27 12:15:07 +00:00
Asuka Minato
1ccac4792c
test: migrate knowledge file access sessions and ORM models to SQLite ( #40596 )
2026-08-27 07:19:20 +00:00
Asuka Minato
ef20a16a2f
test: migrate explore installed app sessions and ORM models to SQLite ( #40525 )
2026-08-27 07:18:32 +00:00
wangxiaolei
6a1b23935f
chore: remove permission check ( #41349 )
2026-08-27 05:29:38 +00:00
非法操作
bf54dd7814
refactor(api): remove unused workflow archived logs endpoint ( #41345 )
2026-08-27 03:48:57 +00:00
非法操作
a9319c86ee
refactor(api): extract workflow run archive application service ( #41253 )
2026-08-27 02:41:43 +00:00
非法操作
5a6191b96b
refactor(api): extract workflow statistic query service ( #41271 )
2026-08-27 02:41:02 +00:00
Stephen Zhou
30ed0907f3
Merge remote-tracking branch 'origin/main' into deploy/konwledge
...
# Conflicts:
# api/controllers/console/app/site.py
# api/controllers/console/datasets/datasets.py
# api/core/plugin/backwards_invocation/model.py
# api/core/rag/rerank/rerank_model.py
# api/tests/test_containers_integration_tests/controllers/console/auth/test_oauth_server.py
# api/tests/unit_tests/core/plugin/test_backwards_invocation_model.py
# api/tests/unit_tests/tasks/test_batch_clean_document_task.py
# packages/contracts/generated/api/service/orpc.gen.ts
# web/app/components/datasets/rename-modal/index.tsx
# web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx
# web/features/tag-management/components/tag-search-content.tsx
2026-08-27 10:06:48 +08:00