Repository navigation
Add support for optional fields to create index - #15
Merged
Merged
Conversation
jhamon
approved these changes
Aug 21, 2023
jhamon
left a comment
Contributor
There was a problem hiding this comment.
Left a lot of small comments, but nothing super critical except maybe clarifying the way annotations are being used.
For the most part it looks good. Tighten up a few of these details and then feel free to merge.
jhamon
added a commit
that referenced
this pull request
Nov 12, 2026
MockPinecone is a JUnit 5 extension that serves the control plane over REST (MockWebServer) and the data plane over gRPC (a loopback Netty VectorService). It records every request and fails the test on any request with no route. Both libraries were already declared in build.gradle but unused. MockedCriticalPathTest runs connect, upsert and query through the public client with no API key, and checks the 2025-10 api-version on the REST header and in the gRPC metadata. Verified: offline build green; unit tests 142 -> 146; the new class takes 0.22 s. Changing the gRPC version literal to 2025-04 makes both metadata tests fail.
jhamon
added a commit
that referenced
this pull request
Nov 12, 2026
…ies (#44) * fix(deps): clear open Dependabot alerts (jackson 2.21.7, netty 4.1.137, guava 33.7.2) Clears the 11 open Dependabot alerts without a breaking change. Existing POM dependencies change only in version; Guava, which every consumer already gets through grpc, is now declared directly. - jackson-databind and jackson-core 2.21.5 -> 2.21.7 (alerts #15-#21). Supersedes Dependabot PR #6. - Netty 4.1.136.Final -> 4.1.137.Final through the existing nettyVersion pin (alerts #12-#14). Stays on 4.1.x for grpc-netty 1.60.2. - Guava 32.0.1-android -> 33.7.2-android (alert #22). Guava comes from grpc, and no grpc release ships a patched Guava. A direct implementation dependency makes Maven consumers resolve 33.7.2 (nearest wins, widened to compile scope by grpc-api). A matching api constraint moves Gradle consumers' compile classpath too, which would otherwise still see 32.0.1 through grpc. * no-mistakes(review): Declare Guava 33.7.2 as a single api dependency * no-mistakes(document): Add CHANGELOG entry for security dependency bumps
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.
Problem
The sdk currently lacks support to allow configuring optional fields while creating a new index.
Solution
Add support to add optional fields while creating a new index. Newly supported optional fields are pods, replicas, pod_type, source_collection, and metadata_config.
Type of Change
Test Plan
Added unit tests to test for the required and the optional fields.
Describe specific steps for validating this change.
Along with unit tests, an integration test to create the index was successfully ran locally with required fields and verified that the index was created using console.