Skip to content

Commit e01dac4

Browse files
authored
Prep for v1.2.0 release (#131)
## Problem Make relevant changes to release v1.2.0. ## Solution Update README, CHANGELOG, user-agent string and test cases. ## Type of Change - [X] Non-code change (docs, etc) ## Test Plan NA
1 parent a8aa221 commit e01dac4

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: gradle clean build
8080

8181
- name: Run integration tests
82-
run: gradle integrationTest --info
82+
run: gradle integrationTest
8383
env:
8484
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
8585
PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}

CHANGELOG.md

+4
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+
### 1.2.0
6+
- Add list with pagination and limit but without prefix
7+
- Add exception cause
8+
59
### v1.1.0
610
- Add list vectors endpoint
711

README.md

+3-3
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>1.1.0</version>
18+
<version>1.2.0</version>
1919
</dependency>
2020
```
2121

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

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

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

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

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pineconeClientVersion = 1.1.0
1+
pineconeClientVersion = 1.2.0

src/main/java/io/pinecone/configs/PineconeConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public String getUserAgentGrpc() {
176176
}
177177

178178
private String buildUserAgent(String clientId) {
179-
String userAgent = String.format("lang=java; %s=%s", clientId, "v1.1.0");
179+
String userAgent = String.format("lang=java; %s=%s", clientId, "v1.2.0");
180180
if (this.getSourceTag() != null && !this.getSourceTag().isEmpty()) {
181181
userAgent += "; source_tag=" + this.getSourceTag();
182182
}

src/test/java/io/pinecone/PineconeBuilderTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
public class PineconeBuilderTest {
2020
private static final Gson gson = new Gson();
21+
private static final String pineconeClientVersion = "v1.2.0";
2122

2223
private static AbstractMap.SimpleEntry<Call, OkHttpClient> buildMockCallAndClient(ResponseBody response) throws IOException {
2324
Response mockResponse = new Response.Builder()
@@ -79,7 +80,7 @@ public void PineconeWithOkHttpClientAndUserAgent() throws IOException {
7980

8081
assertEquals(expectedIndex, index);
8182
verify(mockClient, times(1)).newCall(requestCaptor.capture());
82-
assertEquals("lang=java; pineconeClientVersion=v1.1.0", requestCaptor.getValue().header("User-Agent"));
83+
assertEquals("lang=java; pineconeClientVersion=" + pineconeClientVersion, requestCaptor.getValue().header("User-Agent"));
8384
}
8485

8586
@Test
@@ -105,6 +106,6 @@ public void PineconeWithSourceTag() throws IOException {
105106

106107
assertEquals(expectedIndex, index);
107108
verify(mockClient, times(1)).newCall(requestCaptor.capture());
108-
assertEquals("lang=java; pineconeClientVersion=v1.1.0; source_tag=testsourcetag", requestCaptor.getValue().header("User-Agent"));
109+
assertEquals("lang=java; pineconeClientVersion=" + pineconeClientVersion + "; source_tag=testsourcetag", requestCaptor.getValue().header("User-Agent"));
109110
}
110111
}

src/test/java/io/pinecone/PineconeConfigTest.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
public class PineconeConfigTest {
1010

11+
private static final String pineconeClientVersion = "v1.2.0";
12+
1113
@Test
1214
public void testValidateWithNullApiKey() {
1315
try {
@@ -28,26 +30,26 @@ public void testValidateWithEmptyApiKey() {
2830
@Test
2931
public void testGetUserAgent() {
3032
PineconeConfig config = new PineconeConfig("testApiKey");
31-
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.1.0");
33+
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=" + pineconeClientVersion);
3234
}
3335

3436
@Test
3537
public void testGetUserAgentGrpc() {
3638
PineconeConfig config = new PineconeConfig("testApiKey");
37-
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.1.0");
39+
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=" + pineconeClientVersion);
3840
}
3941
@Test
4042
public void testGetUserAgentWithSourceTag() {
4143
PineconeConfig config = new PineconeConfig("testApiKey");
4244
config.setSourceTag("testSourceTag");
43-
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.1.0; source_tag=testsourcetag");
45+
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=" + pineconeClientVersion + "; source_tag=testsourcetag");
4446
}
4547

4648
@Test
4749
public void testGetUserAgentGrpcWithSourceTag() {
4850
PineconeConfig config = new PineconeConfig("testApiKey");
4951
config.setSourceTag("testSourceTag");
50-
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.1.0; source_tag=testsourcetag");
52+
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=" + pineconeClientVersion + "; source_tag=testsourcetag");
5153
}
5254

5355
@Test

0 commit comments

Comments
 (0)