Jyong and Claude 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
Byron Wang
717cc63143
Merge main into knowledge application boundary refactor
2026-11-06 13:07:12 +08:00
Tianyu Cai
ce7ccc3754
fix(api): use the dataset doc_form when document requests omit it ( #45581 )
2026-11-05 06:55:00 +00:00
Byron Wang
24f8702174
Merge main into knowledge service boundary refactor
2026-10-30 16:48:14 +08:00
Byron Wang
87c6d94564
refactor(api): clarify knowledge service boundaries and resource lifecycles
2026-10-30 16:13:53 +08:00
FFXN
e40200dcd2
fix(api): restore Service API file document writes ( #44972 )
2026-10-28 15:07:17 +00:00
7445e48323
chore: port Document to TypeBase ( #36084 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com >
2026-10-23 02:56:00 +00:00
6f434baf93
ci: enable Ruff B904 ( #44121 )
...
Co-authored-by: Codex <codex@openai.com >
Co-authored-by: hjlarry <hjlarry@163.com >
2026-10-19 12:47:53 +00:00
33b1c57f9d
feat: document API errors per code and narrow them with oRPC defined errors ( #44001 )
...
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-14 08:25:50 +00:00
Byron.wang and Jyong
a67cd87eb0
refactor(api): establish dataset application boundaries ( #41729 )
...
Co-authored-by: Jyong <jyong@dify.ai >
2026-09-29 08:42:31 +00:00
Jeremy Schoemaker
ad9b85932b
fix(api): report Service API knowledge list has_more from the page the query served ( #42531 )
2026-09-20 01:51:25 +00:00
CoralGarden52
5b58f51460
perf(api): batch indexing status segment counts ( #42191 )
2026-09-11 07:43:16 +00:00
Stephen Zhou
7ba2cfb30b
fix(api): align service api schemas with runtime behavior ( #41943 )
2026-09-08 03:59:02 +00:00
Zhu Lei
5355edefe3
fix(api): correct dataset and document list has_more pagination ( #41784 )
2026-09-04 07:19:33 +00:00
Eddy ZHANG
884ece570e
refactor(service_api): dep-inject dataset payloads with @model_validate ( #41490 )
2026-08-30 15:06:36 +00:00
Stephen Zhou
1c6f0a0388
fix(api): restore Service API OpenAPI semantics ( #41274 )
2026-08-26 05:05:36 +00:00
Stephen Zhou and autofix-ci[bot]
92016aa139
fix(api): align Service API OpenAPI contract ( #41248 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-25 10:54:14 +00:00
非法操作 and autofix-ci[bot]
8170a2a5f3
chore: more upload file size for paid user ( #39967 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-06 03:23:16 +00:00
Byron.wang and WH-2099
ab3e4daa95
refactor: explicit DB session propagation across backend paths ( #38559 )
...
Co-authored-by: WH-2099 <wh2099@pm.me >
2026-07-15 06:48:28 +00:00
89d5f74a40
refactor(api): migrate dataset endpoints to BaseModel ( #37957 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-09 04:22:30 +00:00
68d8328b9c
chore: clean Db session from service ( #38227 )
...
Co-authored-by: chariri <w@chariri.moe >
Co-authored-by: WH-2099 <wh2099@pm.me >
2026-07-08 03:07:27 +00:00
2e1ab194b7
refactor: replace db.paginate with plain SQLAlchemy pagination ( #38280 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-04 04:50:01 +00:00
Asuka Minato and autofix-ci[bot]
102e1ede6e
chore: inject more db.session ( #38045 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-30 06:55:54 +00:00
Stephen Zhou and autofix-ci[bot]
c52eafe2ca
docs: enrich generated service API descriptions ( #37615 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-18 08:43:39 +00:00
Stephen Zhou and autofix-ci[bot]
19838972dc
fix: add service api openapi descriptions ( #37595 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-17 16:02:43 +00:00
Stephen Zhou and autofix-ci[bot]
baf775134e
fix: improve Service API OpenAPI contracts ( #37592 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-17 14:25:30 +00:00
Stephen Zhou and autofix-ci[bot]
5d77c0af08
refactor: fix OpenAPI contract generation schemas ( #37387 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 14:25:53 +00:00
599960024d
refactor(api): migrate console/service_api.dataset.document to BaseModel ( #36506 )
...
Co-authored-by: WH-2099 <wh2099@pm.me >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-30 14:38:27 +00:00
Lillian
a8ca0d47b9
chore: add UUID/str type annotations to api endpoints for files in api/controllers/service_api ( #36561 )
2026-05-24 07:58:42 +00:00
b04b4449db
chore(api): annotate simple contract responses ( #36331 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-05-19 06:13:20 +00:00
juyua9
4bb987eca3
fix: validate missing text indexing technique ( #35941 )
2026-05-12 05:07:03 +00:00
Asuka Minato and autofix-ci[bot]
7b5c371b9d
chore: api para type ( #35985 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 06:04:42 +00:00
Asuka Minato and autofix-ci[bot]
c67ce6f66d
chore: unify api && clean some type ignore ( #35984 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 04:16:29 +00:00
Asuka Minato
d2e1da269c
chore: port one api ( #35609 )
2026-04-28 08:22:01 +00:00
2e1b11bdb2
chore: port 2 api as deprecated ( #35261 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: 99 <wh2099@pm.me >
2026-04-21 12:29:39 +00:00
Jake Armstrong
5a446f8200
refactor(api): deduplicate dataset controller schemas into controller_schemas.py ( #34756 )
2026-04-13 05:33:20 +00:00
33bc58c9c2
refactor(api): migrate controllers to SQLAlchemy 2.0 select() API ( #34960 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-11 15:30:19 +00:00
corevibe555
624db69f12
refactor(api): remove duplicated RAG entities from services layer ( #34689 )
2026-04-07 23:36:59 +00:00
Renzo and autofix-ci[bot]
a69b8c1e96
refactor: select in service API dataset document and segment controllers ( #34101 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-26 13:24:54 +09:00
tmimmanuel and autofix-ci[bot]
3870b2ad2d
refactor: use EnumText for dataset and replace string literals 4 ( #33606 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 09:18:08 +09:00
GuanMu
0ab4e16335
feat: add batch download for dataset documents as ZIP and signed URL for single document download. ( #33100 )
2026-03-10 11:28:37 +08:00
FFXN
2068640a4b
fix: Add the missing validation of doc_form in the service API. ( #32892 )
2026-03-03 15:54:43 +08:00
NeatGuyCoding and autofix-ci[bot]
c2a3f459c7
fix(api): return proper HTTP 204 status code in DELETE endpoints ( #32012 )
...
Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-06 15:32:52 +08:00
c2473d85dc
feat: Add summary index for knowledge. ( #31625 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Yansong Zhang <916125788@qq.com >
Co-authored-by: hj24 <mambahj24@gmail.com >
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
Co-authored-by: CodingOnStar <hanxujiang@dify.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-29 13:47:35 +08:00
8ec4233611
fix: doc not gen bug ( #31547 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com >
2026-01-27 20:19:39 +09:00
f6be9cd90d
refactor: replace request.args.get with Pydantic BaseModel validation ( #31104 )
...
Co-authored-by: GlobalStar117 <GlobalStar117@users.noreply.github.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-27 10:48:42 +08:00
wangxiaolei
056095238b
fix: fix create-by-file doc_form ( #31346 )
2026-01-23 11:34:47 +08:00
05fe92a541
refactor: port reqparse to BaseModel ( #28993 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-08 15:31:19 +09:00
3cf19dc07f
add two test examples ( #28236 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-21 10:36:41 +08:00
1d2cdf3489
feat: add display status filtering to document list and API ( #28342 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-11-20 11:27:44 +08:00