Skip to content

Commit 942dd75

Browse files
Update dependencies for 2.17.0 release (#203)
## What is the goal of this PR? We update the dependencies for the 2.17.0 release and print out each user's approximate password expiry time when listing users. ## What are the changes implemented in this PR? * Update dependencies to the 2.17.1 client-java release * Update user listing to include password expiry
1 parent fce31c8 commit 942dd75

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ filegroup(
229229
name = "ci",
230230
data = [
231231
"@vaticle_dependencies//library/maven:update",
232-
"@vaticle_dependencies//tool/bazelrun:rbe",
233232
"@vaticle_dependencies//distribution/artifact:create-netrc",
234233
"@vaticle_dependencies//tool/checkstyle:test-coverage",
235234
"@vaticle_dependencies//tool/sonarcloud:code-analysis",

TypeDBConsole.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,16 @@ private boolean runUserList(TypeDBClient client) {
501501
return false;
502502
}
503503
TypeDBClient.Cluster clientCluster = client.asCluster();
504-
if (clientCluster.users().all().size() > 0)
505-
clientCluster.users().all().forEach(user -> printer.info(user.username()));
506-
else printer.info("No users are present on the server.");
504+
if (clientCluster.users().all().size() > 0) {
505+
clientCluster.users().all().forEach(user -> {
506+
Optional<Long> expirySeconds = user.passwordExpirySeconds();
507+
if (expirySeconds.isPresent()) {
508+
printer.info(user.username() + " (expiry within: " + (Duration.ofSeconds(expirySeconds.get()).toHours() + 1) + " hours)");
509+
} else {
510+
printer.info(user.username());
511+
}
512+
});
513+
} else printer.info("No users are present on the server.");
507514
return true;
508515
} catch (TypeDBClientException e) {
509516
printer.error(e.getMessage());

dependencies/vaticle/artifacts.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def vaticle_typedb_artifact():
2525
artifact_name = "typedb-server-linux-{version}.tar.gz",
2626
tag_source = deployment["artifact.release"],
2727
commit_source = deployment["artifact.snapshot"],
28-
commit = "ab258158efd6f608fe6df2fb4ebf6e5d9f710765"
28+
commit = "c36d4deeb6a7f9b53dced92002e57c1df9963f7a"
2929
)

dependencies/vaticle/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ def vaticle_dependencies():
2121
git_repository(
2222
name = "vaticle_dependencies",
2323
remote = "https://github.com/vaticle/dependencies",
24-
commit = "6a8c31f57b8f7e10d63f00ef709f80c301aaedaf", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
24+
commit = "67ceaf431493c3323b86df371633c756475d01fd", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
2525
)
2626

2727
def vaticle_typedb_common():
2828
git_repository(
2929
name = "vaticle_typedb_common",
3030
remote = "https://github.com/vaticle/typedb-common",
31-
tag = "2.16.0" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
31+
tag = "2.17.0" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
3232
)
3333

3434
def vaticle_typedb_client_java():
3535
git_repository(
3636
name = "vaticle_typedb_client_java",
3737
remote = "https://github.com/vaticle/typedb-client-java",
38-
commit = "302b2d8a44ee7be5f1d60d3d7b9e7d1bfa65cee7", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_client_java
38+
tag = "2.17.1", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_client_java
3939
)

0 commit comments

Comments
 (0)