-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Index tags + small updates to generated code #317
Conversation
tags: { | ||
example: 'tag', | ||
}, | ||
deletionProtection: 'disabled', // Redundant, but for example purposes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added deletionProtection
to this test just b/c I noticed it was missing while doing index tag stuffs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for getting this worked in!
README.md
Outdated
@@ -344,6 +346,31 @@ await pc.configureIndex('deletion-protected-index', { | |||
}); | |||
``` | |||
|
|||
#### Create or configure an index with index tags | |||
|
|||
You can configure both serverless and pod indexes with [tags](https://docs.pinecone.io/guides/indexes/tag-an-index). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'd mention "create" and "configure" explicitly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
Indexes can hold an arbitrary number of tags outlining metadata | ||
you would like attached to the index object itself, such as team ownership, project, or any other relevant information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know you've linked to the docs, but do you think it's worth demonstrating how to perform a tag deletion here? With tag: ""
- empty string I mean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can add that!
@@ -35,6 +35,7 @@ const CreateIndexOptionsProperties: CreateIndexOptionsType[] = [ | |||
'deletionProtection', | |||
'waitUntilReady', | |||
'suppressConflicts', | |||
'tags', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth adding any createIndex
unit test coverage for this? I know you're integration testing as well, so maybe not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't hurt
Problem
This is a late addition to the current version of our client to incorporate Index Tags, as introduced in the
2024-10
spec.Once merged, this will be a
minor
release of the current version.Note: This PR also contains some generated code that was added into the
2024-10
spec after the latest code gen onmain
.Type of Change
Test Plan
CI passes w/new tests and additions to old tests.