Commit Graph
63 Commits
Author SHA1 Message Date
Byron Wang 8240798c66 Reconcile knowledge policy and error contracts with main CI 2026-11-28 15:13:30 -08:00
Byron Wang 80f814a09f Merge main into the knowledge retrieval boundary refactor 2026-11-28 14:59:51 -08:00
Stephen Zhou efb162ecde test: stabilize summary retry and tool activity specs (#47373) 2026-11-27 07:53:32 +00:00
e93e040d7e feat(openapi): add dataset and document endpoints (#46876)
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-24 05:19:55 +00:00
zyssyz123andautofix-ci[bot] 0f0913be0d feat(agent): add backend tag management and filtering (#46571)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-23 06:41:58 +00:00
Byron Wang ff41706020 test: cover both summary timestamp precisions with one failure scenario 2026-11-19 18:00:01 +08:00
Byron Wang 012905e587 fix: restore knowledge boundary CI contracts and catalog focus handoff 2026-11-19 17:53:51 +08:00
Byron Wang 0c16845a68 Merge main into knowledge boundaries and preserve invitation concurrency 2026-11-19 15:57:33 +08:00
林玮 (Jade Lin) 733454eae3 feat(api): enforce moderation for Cloud AI-credit model calls (#45987) 2026-11-18 02:48:29 +00:00
JyongandClaude Fable 5.2 1ea0398bcd fix(api): restore Service API dataset, document and segment behavior
- List workspace datasets for Service API callers without the owner's
  account visibility; only tenant and resource grant bound the result.
- Refuse deleting archived documents through the Service API (403) and
  restore the error in the generated contracts.
- Gate segment writes only while the document is being indexed; the
  Service API create path again requires a completed, enabled document.
- Wait 5 s instead of 600 s for the document lock in request paths and
  report a busy lock as an invalid action instead of a 500.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 15:36:06 +08:00
JyongandClaude Fable 5.2 f3597537e9 fix(api): make invitation completion cluster-safe and fix second-precision tokens
- Complete invitation acceptance with single-key Redis operations; the
  four-key Lua script was rejected by Redis Cluster after the DB commit.
- Keep the invitation token valid after a login-time membership restore
  so the invite-settings step can still activate it once.
- Take the global workspace quota lock only on Enterprise, where a
  workspace-count limit exists.
- Write retry and summary CAS timestamps at second precision so equality
  holds on MySQL DateTime columns.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 15:36:05 +08:00
Byron Wang f3d9436987 test(api): respect Python style guards in knowledge boundary tests 2026-11-16 13:05:37 +08:00
Byron Wang 9c7fd366b9 Merge main into knowledge boundaries and resolve conflicts 2026-11-16 12:36:42 +08:00
JyongandClaude Fable 5.2 74bdfd1fe4 feat(file-scan): scan uploaded knowledge base files for malware (#46090)
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-13 09:46:56 +00:00
3774ea85ae ci: bump tyck to check new err (#45614)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
2026-11-11 07:31:35 +00:00
Byron Wang 2b8ed9a1d7 Merge main into stack/knowledge-01-boundaries 2026-11-11 13:42:13 +08:00
XiaoBa 23ea5e3562 fix: validate retrieval attachment UUIDs and tolerate invalid image history (#45915) 2026-11-09 11:36:53 +00:00
wangxiaolei 262cbe8dab chore: remove unnessary rbac call (#45857) 2026-11-09 02:26:30 +00:00
Byron Wang e61233eaab fix(api): decouple knowledge file lookups from execution scopes 2026-11-08 13:38:32 +08:00
Byron Wang 115a4e05e7 fix(api): sign embedded file links in hit testing results 2026-11-08 13:15:00 +08:00
yetugeandyetuge 8b41f2e4db test(api): bring dataset cleanup and summary adapter tests under strict pyrefly (#45698)
Co-authored-by: yetuge <yetuge@users.noreply.github.com>
2026-11-06 09:09:24 +00:00
Byron Wang 17510a4b0a Merge latest main and preserve external knowledge validation 2026-11-06 13:13:07 +08:00
Byron Wang 717cc63143 Merge main into knowledge application boundary refactor 2026-11-06 13:07:12 +08:00
Sourav RajviandByron Wang d65a57b7c7 fix(api): tighten RAGFlow external knowledge endpoint validation (#40065)
Co-authored-by: Byron Wang <byron@dify.ai>
2026-11-06 04:45:32 +00:00
Tianyu Cai 0d97e3685e fix(api): allow renaming metadata to its current name (#44671) 2026-11-04 16:52:52 +00:00
Byron Wang d9d1e9c2ba fix(api): align knowledge contracts and current keyword reads
Use locking current reads for keyword state under MySQL repeatable read, preserve concurrent updates and caller ORM snapshots, and align migrated test fixtures with their current application and repository contracts.
2026-11-04 20:53:36 +08:00
Byron Wang fdc59df443 Merge main into knowledge application boundary refactor
Resolve conflicts while preserving knowledge application boundaries and current main behavior for model validation, converted-file downloads, token scope, strict pagination, and tracing.
2026-11-04 20:34:13 +08:00
FFXN c3780668b8 fix(knowledge): restore downloads after converting datasets to pipelines (#45428) 2026-11-03 08:44:35 +00:00
Felix ShiandFelix Shi 5c9efb8e5b test(api): bring service test modules under strict pyrefly (#45327)
Co-authored-by: Felix Shi <204130665+shi-felix@users.noreply.github.com>
2026-11-03 08:04:24 +00:00
Guishi Wang b5722ed557 fix(api): enforce dataset service API token scope (#44840) 2026-11-02 21:30:01 +00:00
96b1b20c76 feat(api): validate models before knowledge base upgrades (#45312)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
2026-11-02 11:13:21 +00:00
Jyong fb01efbfd5 fix: isolate extracted image cleanup and prefixed indexing locks
Allocate a unique blob key per extracted upload while retaining tenant-scoped legacy image reuse. Restrict reuse to extractor-owned keys so ordinary upload names cannot impersonate images. Derive handoff markers from the physical Redis lock name to keep prefixed Lua keys in one cluster slot without changing existing lock names.

Add real repository/storage regression coverage for concurrent rollback and committed cleanup, legacy reuse, filename isolation, and Redis prefixes.
2026-11-01 22:04:45 +08:00
Jyong 1c54772c11 Merge main into knowledge application boundary refactor
Resolve conflicts while retaining explicit application boundaries and current main behavior. Preserve credential refresh retries, optional indexing setup, QA answer updates, billing error handling, and generated API exports.
2026-11-01 22:04:08 +08:00
Peter PanandWH-2099 5907db83b0 fix(oauth): serialize and persist provider credential refreshes (#32195)
Co-authored-by: WH-2099 <wh2099@pm.me>
2026-10-31 12:04:00 +00:00
Tanishq ae0ed2d2f1 fix(api): keep stored QA answers on partial segment updates (#44997) 2026-10-30 16:19:04 +00:00
David Castro fe0c6471fb test(knowledge): use unbound_session in segment adapter ownership test (#45173) 2026-10-30 16:15:45 +00:00
Byron Wang 25fcc73fb2 fix: resolve CI failures 2026-10-30 19:00:30 +08:00
Byron Wang a7fbbd26ae Merge branch 'main' of github.com:langgenius/dify into stack/knowledge-01-boundaries 2026-10-30 18:02:44 +08:00
yyhandhjlarry d945bea129 refactor(api): read billing subscription and usage through the generated client (#45131)
Co-authored-by: hjlarry <hjlarry@163.com>
2026-10-30 09:40:06 +00:00
Byron Wang 5b510efc78 fix(api): reconcile service contracts after merging main 2026-10-30 17:22:43 +08:00
Byron Wang 6562cb0331 merge main 2026-10-30 16:55:29 +08:00
Byron Wang 24f8702174 Merge main into knowledge service boundary refactor 2026-10-30 16:48:14 +08:00
zhoulongjie777-gif 9dbb3edf63 test(api): verify segment ownership rejection with unbound session (#45148) 2026-10-30 08:30:32 +00:00
Byron Wang 87c6d94564 refactor(api): clarify knowledge service boundaries and resource lifecycles 2026-10-30 16:13:53 +08:00
hdu_zhou b8304c80f2 fix(api): normalize blank legacy dataset retrieval settings (#45020) 2026-10-30 04:28:19 +00:00
wangxiaolei a394d04443 fix: fix list dataset not include own (#44795) 2026-10-26 08:06:22 +00:00
Tianyu CaiandClaude Opus 5.5 06b8640c4a fix(api): discard index entries of documents deleted during indexing (#44364)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 05:24:08 +00:00
-LAN- bf2f058ab3 test(api): align unit and E2E suites with production structure (#44605) 2026-10-23 08:00:15 +00:00
ee98bdd5b5 refactor(models): migrate app and conversation models to TypeBase (#40814)
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-23 07:26:26 +00:00
fd2db63184 feat: KnowledgeFS and New Knowledge (#44165)
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: zhaohao1004 <zhaohao1004@gmail.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: FFXN <lizy@dify.ai>
2026-10-23 03:34:59 +00:00