feat: add missing pymilvus API commands with integration tests#126
Merged
Conversation
…tion and bulk_insert commands - IndexClient: alter_index_properties, drop_index_properties methods - DatabaseClient: drop_database_properties, use_database compat - PartitionClient: has_partition with fallback - ConnectionClient: ORM connection support for utility APIs - CLI: alter index_properties, delete index_properties/database_properties, show partition_exists - DataClient: bulk_insert via pymilvus.utility with ORM connection - Update autocomplete and prompt_style - Add unit tests for new commands - Bump Python >= 3.9, pymilvus >= 2.6.0
…ield commands - CollectionClient: add_collection_function, alter_collection_function, drop_collection_function, add_collection_field, drop_collection_field, run_analyzer, optimize, refresh_load methods - CLI: run_analyzer, optimize, refresh_load, add_collection_function, drop_collection_function, add_collection_field, drop_collection_field commands - Update autocomplete and prompt_style - Add 8 unit tests for new commands - Full integration test suite: 88 passed, 2 skipped
…ands - DataClient: add_file_resource, remove_file_resource, list_file_resources - RoleClient: grantPrivilegeV2, revokePrivilegeV2 - CLI: add_file_resource, remove_file_resource, list_file_resources, grant privilege_v2, revoke privilege_v2 commands - Update autocomplete and prompt_style - Full test suite: 88 passed, 2 skipped
- CollectionClient: refresh_external_collection, get_refresh_external_collection_progress, list_refresh_external_collection_jobs, has_collection methods - CLI: refresh_external_collection, get_refresh_external_collection_progress, list_refresh_external_collection_jobs, has_collection commands - Update autocomplete and prompt_style - Full test suite: 88 passed, 2 skipped
- CollectionClient: get_replicate_configuration, update_replicate_configuration - CLI: get_replicate_configuration, update_replicate_configuration commands - Update autocomplete and prompt_style - Full test suite: 88 passed, 2 skipped
- has_collection: exists + not exists - list_file_resources: command path - get_replicate_configuration: command path - grant/revoke privilege_v2: command path with mock - Full test suite: 94 passed, 2 skipped
- refresh_external_collection: command path - get_refresh_external_collection_progress: command path - list_refresh_external_collection_jobs: command path
…eal integration - Remove external collection commands (not for release) - Fix run_analyzer API call: data -> texts - Convert all new feature tests from mock to real Milvus integration tests - Test coverage: run_analyzer, optimize, refresh_load, add/drop_collection_function, add/drop_collection_field, has_collection, list_file_resources, get_replicate_configuration, grant/revoke_privilege_v2 - Full test suite: 91 passed, 2 skipped
- Move collection tests to test_collection.py - Move file resource tests to test_data.py - Move privilege v2 tests to test_user_role.py - Remove temporary test files - Full test suite: 91 passed, 2 skipped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New Commands
Collection Management
run_analyzer- Run text analyzer to get tokensoptimize- Optimize collection for search performancerefresh_load- Refresh collection load to sync latest datahas_collection- Check if collection existsadd_collection_function/drop_collection_function- Manage collection functionsadd_collection_field/drop_collection_field- Add/remove fields from existing collectionsIndex Management
alter index_properties/delete index_propertiesDatabase Management
delete database_propertiesPartition Management
show partition_existsFile Resource Management
add_file_resource/remove_file_resource/list_file_resourcesPrivilege Management
grant privilege_v2/revoke privilege_v2Replication Management
get_replicate_configuration/update_replicate_configurationBulk Insert
bulk_insertvia pymilvus.utilityTest Results
91 passed, 2 skipped (privilege group - permission denied)