liu an
0a79dfd5cf
Test: Added test cases for List Chunks HTTP API (#6514)
### What problem does this PR solve?
cover [list
chunks](https://ragflow.io/docs/v0.17.2/http_api_reference#list-chunks )
endpoints
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
27989eb9a5
Test: Add list chunk checkpoint for the add chunk API (#6482)
### What problem does this PR solve?
Add list chunk checkpoint for the add chunk API
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
b6f3242c6c
Test: Update test cases to reduce execution time (#6470)
### What problem does this PR solve?
_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
0b63346a1a
Test: Update test case for #6081 (#6446)
### What problem does this PR solve?
Update test case for #6081
### Type of change
- [x] Update test case
7 miesięcy temu
liu an
e4c8d703b5
Test: Update test cases for PR #6194 #6259 #6376 (#6444)
### What problem does this PR solve?
PR #6194 #6259 #6376
### Type of change
- [x] Update test cases
7 miesięcy temu
liu an
8eefc8b5fe
Test: Added test cases for Add Chunk HTTP API (#6408)
### What problem does this PR solve?
cover [add
chunk](https://ragflow.io/docs/v0.17.2/http_api_reference#add-chunk )
endpoints
### Type of change
- [x] Add test cases
7 miesięcy temu
hy89
1d9ca172e3
Fix(api): correct document parsing progress check logic (#6318)
- Fix incorrect progress check condition that prevented re-parsing of
completed documents
- Allow parsing for documents with progress 0.0 (not started) or 1.0
(completed)
- Only block parsing for documents currently in progress (0.0 < progress
< 1.0)
Close #6312
---------
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
7 miesięcy temu
liu an
4eb3a8e1cc
Test: Skip unstable 'stop parse documents' test cases (#6310)
### What problem does this PR solve?
Skip unstable 'stop parse documents' test cases
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
dbf2ee56c6
Test: Added test cases for Stop Parse Documents HTTP API (#6285)
### What problem does this PR solve?
cover [stop parse
documents](https://ragflow.io/docs/dev/http_api_reference#stop-parsing-documents )
endpoints
### Type of change
- [x] Add test cases
7 miesięcy temu
Kevin Hu
c2302abaf1
Fix: remove dup ids for APIs. (#6263)
### What problem does this PR solve?
#6234
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
Kevin Hu
41e112294b
Fix: let parsing continue. (#6259)
### What problem does this PR solve?
#6229
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
liu an
d16033dd2c
Fix: #5719 Added type check for parser_config (#6243)
### What problem does this PR solve?
Fix #5719
Add data type validation for parser_config
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
liu an
9515ed401f
Test: Added test cases for Parse Documents HTTP API (#6235)
### What problem does this PR solve?
cover [parse
documents](https://ragflow.io/docs/dev/http_api_reference#parse-documents )
endpoints
### Type of change
- [x] add test cases
7 miesięcy temu
Kevin Hu
e9a6675c40
Fix: enable ollama api-key. (#6205)
### What problem does this PR solve?
#6189
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
Kevin Hu
222a2c8fa5
Docs: rm max token (#6202)
### What problem does this PR solve?
#6178
### Type of change
- [x] Documentation Update
7 miesięcy temu
liu an
503e5829bb
Test: Added test cases for Delete Documents HTTP API (#6175)
### What problem does this PR solve?
cover [delete
documents](https://ragflow.io/docs/dev/http_api_reference#delete-documents )
endpoints
### Type of change
- [x] add test cases
7 miesięcy temu
liu an
45fe02c8b3
Test: update test cases per pr #6144 (#6166)
### What problem does this PR solve?
fix check point per pr #6144
### Type of change
- [x] update test case
7 miesięcy temu
liu an
501c017a26
Test: Added test cases for List Documents HTTP API (#6158)
### What problem does this PR solve?
cover [list
documents](https://ragflow.io/docs/dev/http_api_reference#list-documents )
endpoints
### Type of change
- [x] add test cases
7 miesięcy temu
liu an
d36420a87a
Test: fix expected value validation for list dataset endpoint (#6160)
### What problem does this PR solve?
fix function is_sort() usage error
### Type of change
- [ ] update test cases
7 miesięcy temu
Kevin Hu
37f3486483
Fix: validation of readonly fields. (#6144)
### What problem does this PR solve?
#6104
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
liu an
7f701a5756
Test: update test cases per pr #6095 to fix issue #6039 (#6143)
### What problem does this PR solve?
update test case per pr #6095 to fix issue #6039
### Type of change
- [x] update test case
7 miesięcy temu
liu an
d1d651080a
Test: Added test cases for Update Documents HTTP API (#6106)
### What problem does this PR solve?
cover [update documents
endpoints](https://ragflow.io/docs/dev/http_api_reference#update-document )
### Type of change
- [x] add test cases
7 miesięcy temu
Kevin Hu
5c8ad6702a
Fix: check the file name length. (#6083)
### What problem does this PR solve?
#6060
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
7 miesięcy temu
liu an
0a877941f4
Test: Added test cases for Download Documents HTTP API (#6032)
### What problem does this PR solve?
cover [download docments
endpoints](https://ragflow.io/docs/dev/http_api_reference#download-document )
### Type of change
- [x] add test cases
7 miesięcy temu
liu an
56acb340d2
Test: update test cases per issue #5920 #5923 (#6007)
### What problem does this PR solve?
update test cases per issue #5920 #5923
### Type of change
- [x] update test case
7 miesięcy temu
liu an
bd5eb47441
TEST: Added test cases for Upload Documents HTTP API (#5991)
### What problem does this PR solve?
cover upload docments endpoints
### Type of change
- [x] add test cases
7 miesięcy temu
liu an
46bdfb9661
TEST: Remove unstable assertion introduced in PR #5924 (#5968)
### What problem does this PR solve?
Remove unstable assertion introduced in PR #5924
### Type of change
- [x] update test cases
7 miesięcy temu
Raghav Patidar
49d560583f
Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937)
### What problem does this PR solve?
Fixes #5923
Fixes the readonly variables from payload at
/datasets/<dataset_id>
_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._
Now if user tries to modify readonly values then it will show " The
input parameters are invalid. "
invalid_keys = {"id", "embd_id", "chunk_num", "doc_num", "parser_id",
"create_date", "create_time", "created_by",
"status","token_num","update_date","update_time"}
if any(key in req for key in invalid_keys):
return get_error_data_result(message="The input parameters are
invalid.")
i have include those readonly keys in invalid_keys
### Type of change
- [ ] Bug Fix (non-breaking change which fixes an issue)
---------
Co-authored-by: Raghav <2020csb1115@iitrpr.ac.in>
7 miesięcy temu
liu an
87763ef0a0
TEST: Added test cases for Update Dataset HTTP API (#5924)
### What problem does this PR solve?
cover dataset update endpoints
### Type of change
- [x] Add test cases
7 miesięcy temu
liu an
715e2b48ca
Test: Update test cases per PR #5748 #5878 (#5894)
### What problem does this PR solve?
update test cases per PR #5748 #5878 issue #5709
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
21c55a2e0f
Test: Update test cases per PR #5778 (#5880)
### What problem does this PR solve?
update test cases per PR https://github.com/infiniflow/ragflow/pull/5778
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
47e244ee9f
Test: Update test cases per PR #5755 (#5857)
### What problem does this PR solve?
Update test cases per PR #5755
### Type of change
- [x] update test cases
7 miesięcy temu
liu an
b18da35da6
TEST: Added test cases for List Dataset HTTP API (#5856)
### What problem does this PR solve?
cover dataset list endpoints
### Type of change
- [x] Add test cases
7 miesięcy temu
刘安
8a84d1048c
TEST: Added test cases for Delete Dataset HTTP API (#5770)
### What problem does this PR solve?
1. cover dataset deletion endpoints
2. format code with ruff
### Type of change
- [x] add testcases
- [ ] style
8 miesięcy temu
Kevin Hu
da3f279495
Fix: add the validation for parser_config. (#5755)
### What problem does this PR solve?
#5719
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
8 miesięcy temu
刘安
4f9504305a
TEST: Added test cases for Create Dataset HTTP API (#5724)
### What problem does this PR solve?
1. add test cases
2. integrate workflows/tests.yml into CI pipeline
### Type of change
- [x] add testcases
8 miesięcy temu