Skip to content

feat: add missing pymilvus API commands with integration tests#126

Merged
nameczz merged 10 commits into
mainfrom
feature/add-new-api-commands
Jun 16, 2026
Merged

feat: add missing pymilvus API commands with integration tests#126
nameczz merged 10 commits into
mainfrom
feature/add-new-api-commands

Conversation

@nameczz

@nameczz nameczz commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add 26 new CLI commands covering missing pymilvus MilvusClient APIs
  • All new features have real Milvus integration tests (91 passed, 2 skipped)

New Commands

Collection Management

  • run_analyzer - Run text analyzer to get tokens
  • optimize - Optimize collection for search performance
  • refresh_load - Refresh collection load to sync latest data
  • has_collection - Check if collection exists
  • add_collection_function / drop_collection_function - Manage collection functions
  • add_collection_field / drop_collection_field - Add/remove fields from existing collections

Index Management

  • alter index_properties / delete index_properties

Database Management

  • delete database_properties

Partition Management

  • show partition_exists

File Resource Management

  • add_file_resource / remove_file_resource / list_file_resources

Privilege Management

  • grant privilege_v2 / revoke privilege_v2

Replication Management

  • get_replicate_configuration / update_replicate_configuration

Bulk Insert

  • bulk_insert via pymilvus.utility

Test Results

91 passed, 2 skipped (privilege group - permission denied)

nameczz added 10 commits June 11, 2026 17:36
…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
@nameczz nameczz merged commit a569a14 into main Jun 16, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant