From 194f0c73acf9b07098c471cd95bf455a1c03fe63 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Mon, 15 Apr 2024 16:11:58 +0530 Subject: [PATCH 1/4] fix: core db crash --- src/main/java/io/supertokens/pluginInterface/Storage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/supertokens/pluginInterface/Storage.java b/src/main/java/io/supertokens/pluginInterface/Storage.java index 51e28f57..a9827a0e 100644 --- a/src/main/java/io/supertokens/pluginInterface/Storage.java +++ b/src/main/java/io/supertokens/pluginInterface/Storage.java @@ -54,6 +54,8 @@ public interface Storage { // load tables and create connection pools void initStorage(boolean shouldWait) throws DbInitException; + void addTenantIdentifier(TenantIdentifier tenantIdentifier); + // used by the core to do transactions the right way. STORAGE_TYPE getType(); From af1defb5ee022d93f439a6e89039a8904a5bb497 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Wed, 17 Apr 2024 12:57:11 +0530 Subject: [PATCH 2/4] fix: version --- CHANGELOG.md | 4 ++++ build.gradle | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73efa2e9..9b4b1e10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [6.0.1] - 2024-04-17 + +- Adds `addTenantIdentifier` to the storage interface. + ## [6.0.0] - 2024-03-13 - Replace `TotpNotEnabledException` with `UnknownUserTotpIdException` diff --git a/build.gradle b/build.gradle index 72803d4c..239db1a8 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "6.0.0" +version = "6.0.1" repositories { mavenCentral() From 88cb2f9ebd8fa9d83dc44d75e692e3691bd0dbf4 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Thu, 18 Apr 2024 15:24:59 +0530 Subject: [PATCH 3/4] fix: version --- CHANGELOG.md | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b4b1e10..c95b4107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -## [6.0.1] - 2024-04-17 +## [6.1.0] - 2024-04-17 - Adds `addTenantIdentifier` to the storage interface. diff --git a/build.gradle b/build.gradle index 239db1a8..2158e809 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "6.0.1" +version = "6.1.0" repositories { mavenCentral() From 898ca63d670a0a7de1d244aa368db5b2bdef627c Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Thu, 18 Apr 2024 17:19:57 +0530 Subject: [PATCH 4/4] fix: pr comments --- src/main/java/io/supertokens/pluginInterface/Storage.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/supertokens/pluginInterface/Storage.java b/src/main/java/io/supertokens/pluginInterface/Storage.java index a9827a0e..68369617 100644 --- a/src/main/java/io/supertokens/pluginInterface/Storage.java +++ b/src/main/java/io/supertokens/pluginInterface/Storage.java @@ -25,6 +25,7 @@ import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException; +import java.util.List; import java.util.Set; public interface Storage { @@ -52,9 +53,7 @@ public interface Storage { void stopLogging(); // load tables and create connection pools - void initStorage(boolean shouldWait) throws DbInitException; - - void addTenantIdentifier(TenantIdentifier tenantIdentifier); + void initStorage(boolean shouldWait, List tenantIdentifiers) throws DbInitException; // used by the core to do transactions the right way. STORAGE_TYPE getType();