Skip to content

feat: implement collection function management in gRPC API#496

Merged
shanghaikid merged 7 commits intomainfrom
feat/functions
Jan 15, 2026
Merged

feat: implement collection function management in gRPC API#496
shanghaikid merged 7 commits intomainfrom
feat/functions

Conversation

@shanghaikid
Copy link
Contributor

  • Added support for adding, altering, and dropping collection functions via gRPC.
  • Introduced new request types: AddCollectionFunctionRequest, AlterCollectionFunctionRequest, and DropCollectionFunctionRequest.
  • Updated Collection class to handle function operations with appropriate error handling.
  • Enhanced schema definitions to include function-related fields and types.
  • Updated test cases to validate the new function management features.

- Added support for adding, altering, and dropping collection functions via gRPC.
- Introduced new request types: AddCollectionFunctionRequest, AlterCollectionFunctionRequest, and DropCollectionFunctionRequest.
- Updated Collection class to handle function operations with appropriate error handling.
- Enhanced schema definitions to include function-related fields and types.
- Updated test cases to validate the new function management features.

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
Signed-off-by: ryjiang <jiangruiyi@gmail.com>
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: shanghaikid

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

- Changed service name from 'milvus-standalone' to 'standalone' in the test workflow configuration.

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
- Replaced static YAML configuration creation with dynamic updates using `wget` and `awk` to ensure the OpenAI API key is correctly inserted.
- Enhanced the script to check for existing OpenAI configuration and add missing fields as necessary.

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
- Changed the environment variable name for the OpenAI API key to `MILVUS_OPENAI_API_KEY` for clarity.
- Removed the dynamic YAML configuration generation and adjusted the docker-compose override to directly pass the OpenAI key as an environment variable.

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 91.11111% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.10%. Comparing base (dac9a61) to head (0104401).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
milvus/grpc/Collection.ts 90.32% 3 Missing ⚠️
milvus/utils/Schema.ts 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #496      +/-   ##
==========================================
- Coverage   97.18%   97.10%   -0.08%     
==========================================
  Files          51       51              
  Lines        3517     3562      +45     
  Branches      961      976      +15     
==========================================
+ Hits         3418     3459      +41     
- Misses         94       98       +4     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Implemented tests to validate error handling for adding, altering, and dropping collection functions without required parameters.
- Ensured that appropriate error messages are returned when schema or function names are missing.

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
@shanghaikid shanghaikid merged commit 6e63c15 into main Jan 15, 2026
2 of 5 checks passed
@shanghaikid shanghaikid deleted the feat/functions branch January 15, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants