Skip to content

Commit

Permalink
Tables GA release final touches (#22237)
Browse files Browse the repository at this point in the history
* Updated CHANGELOG, README and POM versions.

* Added missing changes from CHANGELOG.

* Updated versions.

* Updated POM name and description.

* Updated POM name again.

* Fixed typos in CHANGELOG.
  • Loading branch information
vcolin7 authored Jun 11, 2021
1 parent 0d08eda commit 039ad51
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-data-tables</artifactId>
<version>12.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
<version>12.0.0</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ com.azure:azure-data-appconfiguration;1.1.12;1.2.0-beta.2
com.azure:azure-data-appconfiguration-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-data-schemaregistry;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-data-schemaregistry-avro;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-data-tables;12.0.0-beta.7;12.0.0-beta.8
com.azure:azure-data-tables;12.0.0-beta.7;12.0.0
com.azure:azure-data-tables-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-digitaltwins-core;1.1.1;1.2.0-beta.1
com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables-perf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-data-tables</artifactId>
<version>12.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
<version>12.0.0</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
29 changes: 26 additions & 3 deletions sdk/tables/azure-data-tables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# Release History

## 12.0.0-beta.8 (Unreleased)
## 12.0.0 (2021-06-11)

### Bug fixes
- Fixed issue where clients builders would not throw when calling `buildClient()` or `buildAsyncClient()` if no `endpoint` had been set.
- Fixed issue where `TableClient`'s and `TableClientAsync`'s `submitTransaction()` and `submitTransactionWithResponse()` could not be called from inside a Reactor thread (e.g. calling it inside a chain of reactive operations, such as `myOtherOperation.then(result -> client.submitTransaction(transactionActions)`).
- Fixed issue that would make an exception be raised when calling `submitTransaction()` if Java's SecurityManager was enabled and no `ReflectPermission` had been granted.

### New Features

- Introduced the `TableTransactionAction` class and the `TableTransactionActionType` enum.
- Added support for generating SAS tokens at the Account and Table Service level in all clients.
- Introduced the following classes:
- `TableAccessPolicies`
- `TableTransactionAction`
- `TableTransactionActionType`
- `TableTransactionFailedException`
- `TableTransactionResult`
- Added support for generating SAS tokens at the Account and Table Service level in all clients. Introduced the following related classes:
- `TableAccountSasPermission`
- `TableAccountSasResourceType`
- `TableAccountSasService`
- `TableAccountSasSignatureValues`
- `TableSasIpRange`
- `TableSasPermission`
- `TableSasSignatureValues`
- Added the following methods to `TableClient`, `TableAsyncClient`:
- `listAccessPolicies()`
- `setAccessPolicies()`
Expand All @@ -27,6 +44,7 @@
- `TableAsyncClient.submitTransactionWithResponse(List<TableTransactionAction> transactionalBatch)`
- `TableClient.submitTransaction(List<TableTransactionAction> transactionalBatch)`
- `TableClient.submitTransactionWithResponse(List<TableTransactionAction> transactionalBatch, Duration timeout, Context context)`
- Renamed `BatchOperationResponse` to `TableTransactionActionResponse`
- `deleteEntity()` variants in `TableClient` and `TableAsyncClient` now accept an `ifUnchanged` flag instead of an `eTag` parameter for conditional operations. When said flag is set to `true`, the ETag of a given `TableEntity` will be matched with the ETag of the entity in the Table service.
- Replaced `deleteEntityWithResponse(String partitionKey, String rowKey, String eTag)` with `deleteEntityWithResponse(TableEntity entity, boolean ifUnchanged)` in `TableAsyncClient`.
- Replaced `deleteEntityWithResponse(String partitionKey, String rowKey, String eTag, Duration timeout, Context context)` with `deleteEntityWithResponse(TableEntity entity, boolean ifUnchanged, Duration timeout, Context context)` in `TableClient`.
Expand All @@ -37,6 +55,11 @@
boolean ifUnchanged)`
- `getEntity(String partitionKey, String rowKey, List<String> select)`
- Client builders now also throw an `IllegalStateException` when calling `buildClient()` and `buildAsyncClient()` if multiple forms of authentication are provided, with the exception of `sasToken` + `connectionString`; or if `endpoint` and/or `sasToken` are set alongside a `connectionString` and the endpoint and/or SAS token in the latter are different than the former, respectively.
- The following methods and their `WithResponse` variants in `TableClient` and `TableAsyncClient` now throw an `IllegalArgumentException` instead of an `IllegalStateException` when an empty `TableEntity` is provided:
- `createEntity()`
- `upsertEntity()`
- `updateEntity()`
- `deleteEntity()`

## 12.0.0-beta.7 (2021-05-15)

Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Azure Tables is a service that stores structured NoSQL data in the cloud, provid
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-data-tables</artifactId>
<version>12.0.0-beta.7</version>
<version>12.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
6 changes: 3 additions & 3 deletions sdk/tables/azure-data-tables/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Licensed under the MIT License.

<groupId>com.azure</groupId>
<artifactId>azure-data-tables</artifactId>
<version>12.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
<name>Microsoft Azure SDK for Azure Table</name>
<description>This package contains the Microsoft Azure Table storage client library.</description>
<version>12.0.0</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
<name>Microsoft Azure client library for Azure Tables</name>
<description>This package contains the client library for Microsoft Azure Tables.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-data-tables</artifactId>
<version>12.0.0-beta.8</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
<version>12.0.0</version> <!-- {x-version-update;com.azure:azure-data-tables;current} -->
</dependency>
</dependencies>

Expand Down

0 comments on commit 039ad51

Please sign in to comment.