Skip to content

Commit 7548830

Browse files
authored
v1.0.4 hotfixes (#287)
* update cqlsh.url to point to bundled+prepatched cqlsh-astra * update upgrade notifier to hopefully cause less security false alarms
1 parent 55b1b87 commit 7548830

File tree

30 files changed

+177
-152
lines changed

30 files changed

+177
-152
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/cqlsh-astra.tar.gz

1.81 KB
Binary file not shown.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
}
1717

1818
group = "com.dtsx.astra.cli"
19-
version = "1.0.3"
19+
version = "1.0.4"
2020

2121
val mockitoAgent = configurations.create("mockitoAgent")
2222

reflected.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ com.dtsx.astra.sdk.org.domain.[User,ResponseAllUsers,InviteUserRequest]
1111
com.dtsx.astra.sdk.org.domain.[Role,RolePolicy]
1212

1313
# Db gateway
14-
com.dtsx.astra.sdk.db.domain.^[.+\$Database.+Builder,AccessList.*]
14+
# com.dtsx.astra.sdk.db.domain.^[.+\$Database.+Builder,AccessList.*]
15+
com.dtsx.astra.sdk.db.domain.*
1516

1617
# Token gateway
1718
com.dtsx.astra.sdk.org.domain.[CreateTokenResponse,ResponseAllIamTokens,IamToken]
@@ -35,10 +36,8 @@ com.dtsx.astra.sdk.pcu.domain.*
3536

3637
# Other misc Data API stuff
3738
com.datastax.astra.internal.api.[DataAPI.+]
38-
com.datastax.astra.client.core.vectorize.VectorServiceOptions
39-
com.datastax.astra.client.core.vector.VectorOptions
40-
com.datastax.astra.client.core.rerank.RerankServiceOptions$Parameters
41-
com.datastax.astra.client.core.rerank.RerankServiceOptions
42-
com.datastax.astra.client.core.rerank.CollectionRerankOptions
39+
com.datastax.astra.client.core.vectorize.*
40+
com.datastax.astra.client.core.vector.*
41+
com.datastax.astra.client.core.rerank.*
4342
com.datastax.astra.client.core.lexical.LexicalOptions
4443
com.datastax.astra.client.core.commands.Command$CommandSerializer

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function Get-Env {
117117
}
118118

119119
# Version (updated automatically by CI)
120-
$ASTRA_CLI_VERSION = "1.0.3"
120+
$ASTRA_CLI_VERSION = "1.0.4"
121121

122122
# Checksum constant (updated automatically by CI)
123123
$WINDOWS_X86_64_CHECKSUM = "bac92ad514cedd07e21e9e5435f7361751c679a6d28b9ee8f4df000e88cc12d3"

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ renderCommand() {
4646
}
4747

4848
# Constants
49-
ASTRA_CLI_VERSION="1.0.3"
49+
ASTRA_CLI_VERSION="1.0.4"
5050

5151
# Checksum constants (updated automatically by CI)
5252
LINUX_X86_64_CHECKSUM="4e7fc02419f14baf5da3905323b8e2fc5bf192cda4fea8c550f0eeb93a286f7c"

src/main/java/com/dtsx/astra/cli/AstraCli.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353

5454
import java.nio.file.FileSystems;
5555
import java.nio.file.Files;
56-
import java.sql.DataTruncation;
5756
import java.util.Arrays;
5857
import java.util.Optional;
5958
import java.util.StringJoiner;

src/main/java/com/dtsx/astra/cli/commands/DocsCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ protected OutputHuman executeHuman(Supplier<Void> v) {
5151
throw new OptionValidationException("spec file", "Specified path does not exist: " + specFile);
5252
}
5353

54-
val docsSpec = JsonUtils.objectMapper().readValue(
55-
specFile.toFile(),
54+
val docsSpec = JsonUtils.readValue(
55+
Files.readString(specFile),
5656
ExternalDocsSpec.class
5757
);
5858

src/main/java/com/dtsx/astra/cli/core/CliContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class CliContext {
4343
Optional<Profile> forceProfileForTesting;
4444

4545
public Path path(String first, String... more) {
46-
return fs.getPath(first, more);
46+
return FileUtils.expandTilde(this, fs.getPath(first, more));
4747
}
4848

4949
public Path absPath(String first, String... more) {

src/main/java/com/dtsx/astra/cli/core/completions/CompletionsCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ private String readJsonString(String value) {
113113

114114
@SneakyThrows
115115
private String writeJsonString(String value) {
116-
return JsonUtils.writeValue(value); // easy way to escape strings
116+
return JsonUtils.formatJsonCompact(value); // easy way to escape strings
117117
}
118118
}

0 commit comments

Comments
 (0)