Skip to content

Add support for optional fields to create index - #15

Merged
rohanshah18 merged 4 commits into
mainfrom
rohan/createIndex
Aug 21, 2023
Merged

rohanshah18 merged 4 commits into
mainfrom
rohan/createIndex

Conversation

@rohanshah18

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

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.

@rohanshah18
rohanshah18 requested a review from jhamon August 21, 2023 18:07
@jhamon jhamon changed the title Rohan/create index Add support for optional fields to create index Aug 21, 2023

@jhamon jhamon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rohanshah18
rohanshah18 merged commit 50427df into main Aug 21, 2023
@rohanshah18
rohanshah18 deleted the rohan/createIndex branch August 21, 2023 20:37
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
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