Skip to content

Commit 23d03af

Browse files
committed
fix: build and changelog
1 parent 4ce2b78 commit 23d03af

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

1010
## [7.1.0] - 2024-05-24
1111

12-
- Adds implementation for a new method `getConfigFieldsInfo` to fetch the plugin config fields
13-
- Adds `null` state for `firstFactors` by adding `is_first_factors_null` fields in `tenant_configs` table
12+
- Compatible with plugin interface version 6.2
13+
- Adds implementation for a new method `getConfigFieldsInfo` to fetch the plugin config fields.
14+
- Adds `null` state for `firstFactors` and `providers` by adding `is_first_factors_null`
15+
and `is_third_party_providers_null` fields in `tenant_configs` table
16+
- Adds `DashboardInfo` annotations to the config properties in `PostgreSQLConfig`
17+
- Adds `null` state for `firstFactors` by adding `is_first_factors_null` field in `tenant_configs` table. The value of
18+
this column is only applicable when there are no entries in the `tenant_first_factors` table for the tenant.
1419

1520
### Migration
1621

src/test/java/io/supertokens/storage/mysql/test/multitenancy/StorageLayerTest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ public void storageInstanceIsReusedAcrossTenants()
168168
StorageLayer.getStorage(new TenantIdentifier(null, null, null), process.getProcess()));
169169

170170
Assert.assertEquals(
171-
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidity(),
171+
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidityInMillis(),
172172
(long) 3600 * 1000);
173173

174174
Assert.assertEquals(Config.getConfig(new TenantIdentifier(null, "abc", null), process.getProcess())
175-
.getAccessTokenValidity(),
175+
.getAccessTokenValidityInMillis(),
176176
(long) 3601 * 1000);
177177

178178
Assert.assertEquals(
@@ -232,11 +232,11 @@ public void storageInstanceIsReusedAcrossTenantsComplex()
232232
StorageLayer.getStorage(new TenantIdentifier(null, null, null), process.getProcess()));
233233

234234
Assert.assertEquals(
235-
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidity(),
235+
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidityInMillis(),
236236
(long) 3600 * 1000);
237237

238238
Assert.assertEquals(Config.getConfig(new TenantIdentifier(null, "abc", null), process.getProcess())
239-
.getAccessTokenValidity(),
239+
.getAccessTokenValidityInMillis(),
240240
(long) 3601 * 1000);
241241

242242
Assert.assertEquals(
@@ -441,11 +441,11 @@ public void newStorageIsNotCreatedWhenSameTenantIsAdded()
441441
existingStorage);
442442

443443
Assert.assertEquals(
444-
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidity(),
444+
Config.getConfig(new TenantIdentifier(null, null, null), process.getProcess()).getAccessTokenValidityInMillis(),
445445
(long) 3600 * 1000);
446446

447447
Assert.assertEquals(Config.getConfig(new TenantIdentifier(null, "abc", null), process.getProcess())
448-
.getAccessTokenValidity(),
448+
.getAccessTokenValidityInMillis(),
449449
(long) 3601 * 1000);
450450

451451
Assert.assertEquals(

0 commit comments

Comments
 (0)