Skip to content

Commit 1bde139

Browse files
authored
Update changelogs, sdk version, and user-agent for v0.8.0 release (#68)
## Problem Release control plane operations for java sdk and cleanup configure index test ## Solution Update changelogs, sdk version, and user-agent for v0.8.0 release Configure index test had an incorrect condition and the catch() wasn't throwing the exception. ## 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) - [X] None of the above: (explain here) ## Test Plan Ran integration tests and published the jar locally to test all operations in a maven project
1 parent a301439 commit 1bde139

File tree

5 files changed

+11
-22
lines changed

5 files changed

+11
-22
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[comment]: <> (When bumping [pc:VERSION_LATEST_RELEASE] create a new entry below)
44
### Unreleased version
5+
### v0.8.0
6+
- Add support for control plane operations for serverless indexes
7+
- Add support for collections for pod indexes
8+
59
### v0.7.4
610
- Add source_collection and support to ignore newly added fields to the response body for describeIndex's indexMetaDatabase object
711

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ Maven:
1515
<dependency>
1616
<groupId>io.pinecone</groupId>
1717
<artifactId>pinecone-client</artifactId>
18-
<version>0.7.4</version>
18+
<version>0.8.0</version>
1919
</dependency>
2020
```
2121

2222
[comment]: <> (^ [pc:VERSION_LATEST_RELEASE])
2323

2424
Gradle:
2525
```
26-
implementation "io.pinecone:pinecone-client:0.7.4"
26+
implementation "io.pinecone:pinecone-client:0.8.0"
2727
```
2828

2929
[comment]: <> (^ [pc:VERSION_LATEST_RELEASE])
3030

31-
Alternatively, you can use our standalone uberjar [pinecone-client-0.7.4-all.jar](https://repo1.maven.org/maven2/io/pinecone/pinecone-client/0.7.4/pinecone-client-0.7.4-all.jar), which bundles the pinecone client and all dependencies together inside a single jar. You can include this on your classpath like any 3rd party JAR without having to obtain the *pinecone-client* dependencies separately.
31+
Alternatively, you can use our standalone uberjar [pinecone-client-0.8.0-all.jar](https://repo1.maven.org/maven2/io/pinecone/pinecone-client/0.8.0/pinecone-client-0.8.0-all.jar), which bundles the pinecone client and all dependencies together inside a single jar. You can include this on your classpath like any 3rd party JAR without having to obtain the *pinecone-client* dependencies separately.
3232

3333
[comment]: <> (^ [pc:VERSION_LATEST_RELEASE])
3434

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pineconeClientVersion = 0.7.4
1+
pineconeClientVersion = 0.8.0

src/integration/java/io/pinecone/integration/controlPlane/pod/ConfigureIndexTest.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import io.pinecone.PineconeControlPlaneClient;
44
import io.pinecone.exceptions.PineconeException;
55
import io.pinecone.exceptions.PineconeForbiddenException;
6-
import io.pinecone.integration.dataplane.PineconeClientLiveIntegTest;
76
import io.pinecone.exceptions.PineconeBadRequestException;
87
import io.pinecone.exceptions.PineconeNotFoundException;
98
import org.junit.jupiter.api.*;
@@ -111,7 +110,7 @@ public void changingBasePodType() {
111110
} catch (PineconeBadRequestException badRequestException) {
112111
assert(badRequestException.getMessage().contains("Bad request: Cannot change pod type."));
113112
} catch (Exception exception) {
114-
logger.error(exception.getLocalizedMessage());
113+
throw new PineconeException("Test failed: " + exception.getLocalizedMessage());
115114
}
116115
}
117116

@@ -135,22 +134,8 @@ public void sizeIncrease() throws InterruptedException {
135134
assert (podSpec != null);
136135
assertEquals(podSpec.getPodType(), "p1.x2");
137136
});
138-
139-
// Attempt to scale down
140-
pod = new ConfigureIndexRequestSpecPod().podType("p1.x1");
141-
spec = new ConfigureIndexRequestSpec().pod(pod);
142-
configureIndexRequest = new ConfigureIndexRequest().spec(spec);
143-
controlPlaneClient.configureIndex(indexName, configureIndexRequest);
144-
145-
// Get the index description to verify the new pod type
146-
assertWithRetry(() -> {
147-
PodSpec podSpec = controlPlaneClient.describeIndex(indexName).getSpec().getPod();
148-
assert (podSpec != null);
149-
assertEquals(podSpec.getPodType(), "p1.x1");
150-
});
151-
152137
} catch (Exception exception) {
153-
logger.error(exception.getLocalizedMessage());
138+
throw new PineconeException("Test failed: " + exception.getLocalizedMessage());
154139
} finally {
155140
// Delete this index since it'll be unused for future tests
156141
controlPlaneClient.deleteIndex(indexName);

src/main/java/io/pinecone/PineconeClientConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private String maskedApiKey() {
135135
}
136136

137137
public String getUserAgent() {
138-
String userAgentLanguage = "lang=java; pineconeClientVersion = v0.7.4";
138+
String userAgentLanguage = "lang=java; pineconeClientVersion = v0.8.0";
139139
return (this.getUsageContext() != null) ?
140140
userAgentLanguage + "; usageContext=" + this.getUsageContext() : userAgentLanguage;
141141
}

0 commit comments

Comments
 (0)