Commit graph

62 commits

Author SHA1 Message Date
Hetavi Shah
d615f62e4b [OND211-2329]: Updated team and permissions tests to remove test cache from db. 2025-11-25 17:40:27 +05:30
Hetavi Shah
f307a18f55 [OND211-2329]: Updated user tests to remove test data from db. 2025-11-25 13:19:17 +05:30
Hetavi Shah
e462d5f23a [OND211-2329]: Updated permissions API and added tests. 2025-11-24 19:12:14 +05:30
Hetavi Shah
4c3db69e91 Merge remote-tracking branch 'origin/main' into feature/OND211-2329-Check-existing-REST-endponts-and-extend-with-new-requested-endpoints 2025-11-21 11:15:23 +05:30
Hetavi Shah
cd0dc1344e [OND211-2329]: Removed Department and group modules. 2025-11-21 11:08:17 +05:30
Hetavi Shah
d5dcb4408e [OND211-2329]: Updated remove member from team API and tests. 2025-11-20 11:31:51 +05:30
Hetavi Shah
6c68429333 [OND211-2329]: Added new tests for promote/demote admin API. 2025-11-19 18:47:01 +05:30
Hetavi Shah
0d48560e66 [OND211-2329]: Added new tests and updated existing tests for team API. 2025-11-19 18:14:49 +05:30
Hetavi Shah
b54a6ace78 [OND211-2329]: Added tests for update team API. 2025-11-19 17:40:16 +05:30
Hetavi Shah
4c8ea1d21a [OND211-2329]: Added tests to delete group. 2025-11-19 17:17:45 +05:30
Hetavi Shah
3ffe94b58e [OND211-2329]: Added tests for list members to group. 2025-11-19 17:07:23 +05:30
Hetavi Shah
c50f7b39d9 [OND211-2329]: Updated create group tests and added tests for add/remove members to group. 2025-11-19 16:53:43 +05:30
Hetavi Shah
3e7d57b208 [OND211-2329]: Updated team API's and added create group tests. 2025-11-19 16:34:14 +05:30
Hetavi Shah
5af04fdf45 [OND211-2329]: Updated tets, fixed typings. 2025-11-19 16:33:31 +05:30
Hetavi Shah
6ef0668f0c [OND211-2329]: Added helper methods for department tests. 2025-11-18 19:00:56 +05:30
Hetavi Shah
c38ec24b08 [OND211-2329]: Added few tests for department API and updated typings. 2025-11-18 18:47:36 +05:30
Hetavi Shah
26a17e6250 [OND211-2329]: Updated conftest files, fixed typings. 2025-11-18 14:05:38 +05:30
Hetavi Shah
f2eeb2dbbf [OND211-2329]: Updated user management tests, fixed some pycharm editor warnings. 2025-11-18 14:00:51 +05:30
Hetavi Shah
bd83d24a08 [OND211-2329]: Updated user management tests, fixed typings. 2025-11-18 13:26:32 +05:30
Hetavi Shah
5413628aaf [OND211-2329]: Added tests to test the add/remove members to a department. 2025-11-17 18:49:26 +05:30
Hetavi Shah
0e2c72a2bb [OND211-2329]: Added tests to test the create department API. 2025-11-17 18:12:23 +05:30
Hetavi Shah
113620ea80 [OND211-2329]: Updated the user tests to follow typings and shifted reusable variables and funtions to the conftest.py file. 2025-11-14 18:59:27 +05:30
copilot-swe-agent[bot]
a80b2ff529 Add comprehensive test coverage: security, performance, edge cases, and advanced team tests
Co-authored-by: teddius <890232+teddius@users.noreply.github.com>
2025-11-13 18:22:37 +00:00
Liu An
bfc84ba95b
Test: handle duplicate names by appending "(1)" (#11244)
### What problem does this PR solve?

- Updated tests to reflect new behavior of handling duplicate dataset
names
- Instead of returning an error, the system now appends "(1)" to
duplicate names
- This problem was introduced by PR #10960

### Type of change

- [x] Testcase update
2025-11-13 15:18:32 +08:00
Hetavi Shah
b388a3dca0 [OND211-2329]: Added API and tests to add/remove users in a team. 2025-11-13 12:42:27 +05:30
Hetavi Shah
00b476783c [OND211-2329]: Added create department API and tests. 2025-11-12 19:01:27 +05:30
Hetavi Shah
043b06a24d [OND211-2329]: Updated list users and delete user API's & tests to handle auth. 2025-11-12 18:11:29 +05:30
Hetavi Shah
1cc081ef5a [OND211-2329]: Updated create user and update user tests's to test the new auth API's. 2025-11-12 17:34:16 +05:30
Hetavi Shah
d50c085196 [OND211-2329]: Removed unnecessary encryption and decryption for passswords in create user. 2025-11-11 18:50:04 +05:30
Hetavi Shah
1d23b46ce4 [OND211-2329]: Added delete user api and tests. 2025-11-11 15:19:29 +05:30
Hetavi Shah
7890c3111f [OND211-2329]: Added list_users api. 2025-11-11 13:05:27 +05:30
Hetavi Shah
61b84b0302 [OND211-2329]: Updated create_user and update_user APIs and corresponding test cases to be compliant with PEP 8, Ruff, and MyPy standards. 2025-11-11 12:21:25 +05:30
Hetavi Shah
d442bf0504 [OND211-2329] : Create user api and tests, update user api and tests. 2025-11-10 19:00:24 +05:30
Billy Bao
19f71a961a
Fix: Create dataset performance unmatched between HTTP api and web ui (#10960)
### What problem does this PR solve?

Fix: Create dataset performance unmatched between HTTP api and web ui
#10925

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-11-04 13:45:14 +08:00
Zhichang Yu
73144e278b
Don't release full image (#10654)
### What problem does this PR solve?

Introduced gpu profile in .env
Added Dockerfile_tei
fix datrie
Removed LIGHTEN flag

### Type of change

- [x] Documentation Update
- [x] Refactoring
2025-10-23 23:02:27 +08:00
Liu An
594bf485d4
Test: update test cases for chunk retrieval pagination (#10694)
### What problem does this PR solve?

Updated test cases in test_retrieval_chunks.py to:
- Remove skip mark from page pagination test case (issues/6646 resolved)
- Add skip marks for page_size=1 tests due to new issue (issues/10692)

### Type of change

- [x] Test
2025-10-21 13:02:29 +08:00
writinwaters
6e862553cb
Docs: Deprecated 'Create session with agent' (#9464)
### What problem does this PR solve?


### Type of change

- [x] Documentation Update
2025-08-14 12:13:11 +08:00
Liu An
b55c3d07dc
Test: Update error message assertions for chunk update tests (#9468)
### What problem does this PR solve?

Modify test cases to accept additional error message format when
updating chunks.
fix actions:
https://github.com/infiniflow/ragflow/actions/runs/16942741621/job/48015850297

### Type of change

- [x] Update test cases
2025-08-14 12:11:20 +08:00
Liu An
57b9f8cf52
Fix: Update test assertions and simplify test cases (#9400)
### What problem does this PR solve?

- Fix error message assertion in test_update_chunk.py to match new
ownership validation
- Simplify dataset listing test cases by removing lambda assertions for
sorting
- Fix actions:
https://github.com/infiniflow/ragflow/actions/runs/16885465524/job/47831942553

### Type of change

- [x] Fix test cases
2025-08-12 10:57:30 +08:00
Zhichang Yu
342a04ec8a
Added infinity rank_feature support (#9044)
### What problem does this PR solve?

Added infinity rank_feature support

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-07-29 09:14:23 +08:00
Liu An
b5ffca332a
Refa: validation utils to use Pydantic v2 style models (#9037)
### What problem does this PR solve?

- Update BaseModel to use model_config instead of Config class
- Replace StrEnum with Literal types for method fields
- Convert Field declarations to Annotated style

### Type of change

- [x] Refactoring
2025-07-25 12:16:45 +08:00
Liu An
b4b6d296ea
Fix: Increase timeouts for document parsing and model checks (#8996)
### What problem does this PR solve?

- Extended embedding model timeout from 3 to 10 seconds in api_utils.py
- Added more time for large file batches and concurrent parsing
operations to prevent test flakiness
- Import from #8940
- https://github.com/infiniflow/ragflow/actions/runs/16422052652

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-07-23 15:08:36 +08:00
Liu An
0020c50000
Fix: Refactor parser config handling and add GraphRAG defaults (#8778)
### What problem does this PR solve?

- Update `get_parser_config` to merge provided configs with defaults
- Add GraphRAG configuration defaults for all chunk methods
- Make raptor and graphrag fields non-nullable in ParserConfig schema
- Update related test cases to reflect config changes
- Ensure backward compatibility while adding new GraphRAG support
- #8396

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-07-23 09:29:37 +08:00
Liu An
f8524462b0 Fix: Increase default chunk_token_num from 128 to 512 in parser config (#8753)
### What problem does this PR solve?

Updated the default `chunk_token_num` value in `api_utils.py` and
`validation_utils.py` to 512 to accommodate larger text chunks. Adjusted
corresponding test cases in HTTP and SDK API tests to reflect this
change.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-07-10 09:53:20 +08:00
Yongteng Lei
4d7bfd2ba3
Fix: typo process_duration (#8696)
### What problem does this PR solve?

Fix typo process_duration.

### Type of change

- [x] Documentation Update
- [x] Refactoring
2025-07-07 14:11:47 +08:00
Liu An
0b40eb3e90
Test: Add tests for chunk API endpoints (#8616)
### What problem does this PR solve?

- Add comprehensive test suite for chunk operations including:
  - Test files for create, list, retrieve, update, and delete chunks
  - Authorization tests
  - Batch operations tests
- Update test configurations and common utilities
- Validate `important_kwd` and `question_kwd` fields are lists in
chunk_app.py
- Reorganize imports and clean up duplicate code

### Type of change

- [x] Add test cases
2025-07-02 09:49:08 +08:00
Liu An
dac5bcdf17
Fix: Enforce default embedding model in create_dataset / update_dataset (#8486)
### What problem does this PR solve?

Previous:
- Defaulted to hardcoded model 'BAAI/bge-large-zh-v1.5@BAAI'
- Did not respect user-configured default embedding_model

Now:
- Correctly prioritizes user-configured default embedding_model

Other:
- Make embedding_model optional in CreateDatasetReq with proper None
handling
- Add default embedding model fallback in dataset update when empty
- Enhance validation utils to handle None values and string
normalization
- Update SDK default embedding model to None to match API changes
- Adjust related test cases to reflect new validation rules

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-06-25 16:41:32 +08:00
Liu An
9f9acf0c49
Test: Add document app tests (#8456)
### What problem does this PR solve?

- Add new test suite for document app with
create/list/parse/upload/remove tests
- Update API URLs to use version variable from config in HTTP and web
API tests

### Type of change

- [x] Add test cases
2025-06-24 17:26:16 +08:00
Jin Hai
e470645efd
Refactor code (#8341)
### What problem does this PR solve?

1. rename var
2. update if statement

### Type of change

- [x] Refactoring

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2025-06-18 16:40:30 +08:00
Liu An
a3bebeb599
Fix: Enforce 255-byte filename limit (#8290)
### What problem does this PR solve?

- Add filename length validation (<=255 bytes) for document
upload/rename in both HTTP and SDK APIs
- Update error messages for consistency
- Fix comparison operator in SDK from '>=' to '>' for filename length
check

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-06-16 16:39:41 +08:00