From ec19c97318c89e2d48d2b0388297f6b4b9412a2e Mon Sep 17 00:00:00 2001 From: Annie Liang <64233642+xinlian12@users.noreply.github.com> Date: Thu, 14 Oct 2021 11:13:04 -0700 Subject: [PATCH] azure-cosmos/4.20.0, azure-cosmos-encryption/1.0.0-beta.9, azure-spring-data/3.13.0 (#24791) * release changelog Co-authored-by: annie-mac --- eng/jacoco-test-coverage/pom.xml | 4 ++-- eng/versioning/version_client.txt | 4 ++-- sdk/cosmos/azure-cosmos-benchmark/pom.xml | 2 +- sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml | 2 +- sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md | 15 +++++++-------- sdk/cosmos/azure-cosmos-encryption/pom.xml | 2 +- sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml | 2 +- sdk/cosmos/azure-cosmos/CHANGELOG.md | 7 +++++++ sdk/cosmos/azure-cosmos/pom.xml | 2 +- sdk/cosmos/azure-spring-data-cosmos-test/pom.xml | 2 +- sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md | 14 +++++--------- sdk/cosmos/azure-spring-data-cosmos/pom.xml | 4 ++-- .../config/CosmosConfigurationSupport.java | 5 +++++ .../cosmos/config/DatabaseThroughputConfig.java | 16 ++++++++++++++++ sdk/cosmos/pom.xml | 2 +- 15 files changed, 53 insertions(+), 30 deletions(-) diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml index caeefdeb4841..41ea1c7b4159 100644 --- a/eng/jacoco-test-coverage/pom.xml +++ b/eng/jacoco-test-coverage/pom.xml @@ -174,7 +174,7 @@ com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 com.azure @@ -470,7 +470,7 @@ com.azure azure-spring-data-cosmos - 3.13.0-beta.1 + 3.13.0 com.azure.spring diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index dbb11af32a06..55afa1f620e0 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -74,7 +74,7 @@ com.azure:azure-core-serializer-json-gson;1.1.7;1.2.0-beta.1 com.azure:azure-core-serializer-json-jackson;1.2.8;1.3.0-beta.1 com.azure:azure-core-test;1.7.2;1.8.0-beta.1 com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.15;1.0.0-beta.16 -com.azure:azure-cosmos;4.19.1;4.20.0-beta.1 +com.azure:azure-cosmos;4.19.1;4.20.0 com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.4.0-beta.1;4.4.0-beta.1 @@ -118,7 +118,7 @@ com.azure:azure-security-keyvault-keys;4.3.4;4.4.0-beta.5 com.azure:azure-security-keyvault-secrets;4.3.4;4.4.0-beta.3 com.azure:azure-security-keyvault-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-sdk-template;1.2.1-beta.2;1.2.1-beta.16 -com.azure:azure-spring-data-cosmos;3.12.0;3.13.0-beta.1 +com.azure:azure-spring-data-cosmos;3.12.0;3.13.0 com.azure:azure-spring-data-cosmos-test;3.0.0-beta.1;3.0.0-beta.1 com.azure:azure-storage-blob;12.14.1;12.15.0-beta.1 com.azure:azure-storage-blob-batch;12.11.1;12.12.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-benchmark/pom.xml index ae7507bad47f..7305f2a32db4 100644 --- a/sdk/cosmos/azure-cosmos-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-benchmark/pom.xml @@ -43,7 +43,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 diff --git a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml index 50485e9371b5..de0881acd6a0 100644 --- a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml @@ -42,7 +42,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 diff --git a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md index 9181f70f5a84..f465c2725fb0 100644 --- a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md @@ -1,14 +1,13 @@ ## Release History -### 1.0.0-beta.9 (Unreleased) - -#### Features Added - -#### Breaking Changes - -#### Bugs Fixed +### 1.0.0-beta.9 (2021-10-14) +#### New Features +* Added support for transaction batch. +* Added support for aggregate query. +* Updated `azure-cosmos` to version `4.20.0`. -#### Other Changes +#### Key Bug Fixes +* Fixed Json property name of ClientEncryptionKeyProperties. ### 1.0.0-beta.8 (2021-09-09) #### New Features diff --git a/sdk/cosmos/azure-cosmos-encryption/pom.xml b/sdk/cosmos/azure-cosmos-encryption/pom.xml index a19a4e772eb8..de666d6e2e38 100644 --- a/sdk/cosmos/azure-cosmos-encryption/pom.xml +++ b/sdk/cosmos/azure-cosmos-encryption/pom.xml @@ -44,7 +44,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml index 9fc1b4f512c8..4751326e7025 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml @@ -61,7 +61,7 @@ com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 org.scala-lang.modules diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 5ed9d455c9d3..05e64c61e04f 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -1,5 +1,12 @@ ## Release History +### 4.20.0 (2021-10-14) +#### Features Added +* Enabling `queryplan` cache by default + +#### Key Bug Fixes +* Fixed issue with bulk reads when `contentResponseOnWrite` is not explicitly enabled on the cosmos client. + ### 4.19.1 (2021-09-24) #### Features Added * Added support to config retry count for `openConnectionsAndInitCaches`. diff --git a/sdk/cosmos/azure-cosmos/pom.xml b/sdk/cosmos/azure-cosmos/pom.xml index c051d7a60757..bcecea6d7dbe 100644 --- a/sdk/cosmos/azure-cosmos/pom.xml +++ b/sdk/cosmos/azure-cosmos/pom.xml @@ -13,7 +13,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 Microsoft Azure SDK for SQL API of Azure Cosmos DB Service This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API jar diff --git a/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml b/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml index 5989cf43adf7..08bf770fa429 100644 --- a/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmos-test/pom.xml @@ -30,7 +30,7 @@ com.azure azure-spring-data-cosmos - 3.13.0-beta.1 + 3.13.0 diff --git a/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md b/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md index b71688c5bdbd..7999fdca44fd 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-spring-data-cosmos/CHANGELOG.md @@ -1,14 +1,10 @@ ## Release History -### 3.13.0-beta.1 (Unreleased) - -#### Features Added - -#### Breaking Changes - -#### Bugs Fixed - -#### Other Changes +### 3.13.0 (2021-10-14) +#### New Features +* Added support for setting throughput on database creation. +* Pagination improvement with slice query API. +* Updated `azure-cosmos` to version `4.20.0`. ### 3.12.0 (2021-09-24) #### New Features diff --git a/sdk/cosmos/azure-spring-data-cosmos/pom.xml b/sdk/cosmos/azure-spring-data-cosmos/pom.xml index d8394ba259b8..44a41a448988 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/pom.xml +++ b/sdk/cosmos/azure-spring-data-cosmos/pom.xml @@ -12,7 +12,7 @@ com.azure azure-spring-data-cosmos - 3.13.0-beta.1 + 3.13.0 jar Spring Data for Azure Cosmos DB SQL API Spring Data for Azure Cosmos DB SQL API @@ -88,7 +88,7 @@ com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0 com.fasterxml.jackson.module diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java b/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java index 47c1af597cf0..60c48d3e392e 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java +++ b/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/CosmosConfigurationSupport.java @@ -55,6 +55,11 @@ public CosmosMappingContext cosmosMappingContext() throws ClassNotFoundException return mappingContext; } + /** + * Get the mapping base package name. + * + * @return Base mapping package name set. + */ protected Collection getMappingBasePackages() { final Package mappingBasePackage = getClass().getPackage(); return Collections.singleton(mappingBasePackage == null ? null : mappingBasePackage.getName()); diff --git a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java b/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java index c593588cf813..53d300562394 100644 --- a/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java +++ b/sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/config/DatabaseThroughputConfig.java @@ -10,15 +10,31 @@ public class DatabaseThroughputConfig { private final boolean autoScale; private final int requestUnits; + /** + * Constructor. + * + * @param autoScale flag to enable autoscale. + * @param requestUnits the request units. + */ public DatabaseThroughputConfig(boolean autoScale, int requestUnits) { this.autoScale = autoScale; this.requestUnits = requestUnits; } + /** + * Flag to indicate whether autoscale is enabled. + * + * @return Flag to indicate whether autoscale is enabled. + */ public boolean isAutoScale() { return autoScale; } + /** + * Get the request units. + * + * @return The request units. + */ public int getRequestUnits() { return requestUnits; } diff --git a/sdk/cosmos/pom.xml b/sdk/cosmos/pom.xml index a22b33b58b29..5b11d40965f9 100644 --- a/sdk/cosmos/pom.xml +++ b/sdk/cosmos/pom.xml @@ -20,7 +20,7 @@ com.azure azure-cosmos - 4.20.0-beta.1 + 4.20.0