Skip to content

Add ordering parameter to gRPC create/delete vector name - #8926

Merged
generall merged 1 commit into
devfrom
grpc-vector-name-ordering
May 6, 2026
Merged

generall merged 1 commit into
devfrom
grpc-vector-name-ordering

Conversation

@generall

@generall generall commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Add optional WriteOrdering field to CreateVectorNameRequest and DeleteVectorNameRequest in the gRPC proto so they match the REST API surface.
  • Wire ordering through tonic handlers (create_vector_name, create_vector_name_internal, delete_vector_name, delete_vector_name_internal) and the remote-shard forwarding helpers (internal_create_vector_name / internal_delete_vector_name).

Test plan

  • cargo check --bin qdrant
  • Manual gRPC call with ordering set verifies it propagates to update path

🤖 Generated with Claude Code

Match the REST API by adding an optional `WriteOrdering` field to
`CreateVectorNameRequest` and `DeleteVectorNameRequest`, and propagate
it through the tonic handlers and remote-shard forwarding paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@generall
generall requested a review from agourlay May 6, 2026 13:30
@generall
generall requested a review from joein May 6, 2026 13:31
@coderabbitai

coderabbitai Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b763780f-daf1-46dc-b25f-6e5a7fa1e9f5

📥 Commits

Reviewing files that changed from the base of the PR and between cf6f743 and cac70b0.

📒 Files selected for processing (5)
  • lib/api/src/grpc/proto/points.proto
  • lib/api/src/grpc/qdrant.rs
  • lib/collection/src/shards/conversions.rs
  • lib/collection/src/shards/remote_shard.rs
  • src/tonic/api/update_common.rs

📝 Walkthrough

Walkthrough

This pull request adds write-ordering support to vector name operations by introducing a new optional WriteOrdering ordering field to the CreateVectorNameRequest and DeleteVectorNameRequest protobuf messages. The change propagates this field through the generated Rust protobuf structs, updates internal conversion function signatures to accept and pass the ordering parameter, and threads this parameter through all vector name operation call sites in the remote shard and API handler layers.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding an ordering parameter to gRPC create/delete vector name operations.
Description check ✅ Passed The description is directly related to the changeset, providing a clear summary of changes and test plan that align with the actual modifications across multiple files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch grpc-vector-name-ordering

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@generall
generall merged commit fd9bc02 into dev May 6, 2026
12 checks passed
@generall
generall deleted the grpc-vector-name-ordering branch May 6, 2026 13:54
timvisee pushed a commit that referenced this pull request May 8, 2026
Match the REST API by adding an optional `WriteOrdering` field to
`CreateVectorNameRequest` and `DeleteVectorNameRequest`, and propagate
it through the tonic handlers and remote-shard forwarding paths.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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.

2 participants