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)
2025-03-17 12:22:49 +08:00
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
2025-03-13 10:53:07 +08:00
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
2025-03-12 19:38:52 +08:00
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
2025-03-12 16:09:45 +08:00
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>
2025-03-12 10:27:02 +08:00
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
2025-03-11 18:55:11 +08:00
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
2025-03-11 13:35:28 +08:00
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
2025-03-11 11:07:09 +08:00
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
2025-03-10 19:04:39 +08:00
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
2025-03-10 18:29:33 +08:00
刘安
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
2025-03-07 17:44:51 +08:00
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)
2025-03-07 15:34:34 +08:00
刘安
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
2025-03-06 20:22:17 +08:00