Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@

## (Unreleased)

- Add New Property Properties to TaskOrchestrationContext by @nytian in [#415](https://github.com/microsoft/durabletask-dotnet/pull/415)
- Add automatic retry on gateway timeout in `GrpcDurableTaskClient.WaitForInstanceCompletionAsync` in [#412](https://github.com/microsoft/durabletask-dotnet/pull/412))
- Add specific logging for NotFound error on worker connection by @halspang in ([#413](https://github.com/microsoft/durabletask-dotnet/pull/413))
- Add user agent header to gRPC called in ([#417](https://github.com/microsoft/durabletask-dotnet/pull/417))
## v1.12.0

- Activity tag support ([#426](https://github.com/microsoft/durabletask-dotnet/pull/426))
- Adding Analyzer to build and release ([#444](https://github.com/microsoft/durabletask-dotnet/pull/444))
- Add ability to filter orchestrations at worker ([#443](https://github.com/microsoft/durabletask-dotnet/pull/443))
- Removing breaking change for TaskOptions ([#446](https://github.com/microsoft/durabletask-dotnet/pull/446))

## v1.11.0

- Add New Property Properties to TaskOrchestrationContext ([#415](https://github.com/microsoft/durabletask-dotnet/pull/415))
- Add automatic retry on gateway timeout in `GrpcDurableTaskClient.WaitForInstanceCompletionAsync` ([#412](https://github.com/microsoft/durabletask-dotnet/pull/412))
- Add specific logging for NotFound error on worker connection ([#413](https://github.com/microsoft/durabletask-dotnet/pull/413))
- Add user agent header to gRPC called ([#417](https://github.com/microsoft/durabletask-dotnet/pull/417))
- Enrich User-Agent Header in gRPC Metadata to indicate Client or Worker as caller ([#421](https://github.com/microsoft/durabletask-dotnet/pull/421))
- Change DTS user agent metadata to avoid overlap with gRPC user agent ([#423](https://github.com/microsoft/durabletask-dotnet/pull/423))
- Add extension methods for registering entities by type ([#427](https://github.com/microsoft/durabletask-dotnet/pull/427))
- Add TaskVersion and utilize it for version overrides when starting orchestrations ([#416](https://github.com/microsoft/durabletask-dotnet/pull/416))
- Update sub-orchestration default versioning ([#437](https://github.com/microsoft/durabletask-dotnet/pull/437))
- Distributed Tracing for Entities (Isolated) ([#404](https://github.com/microsoft/durabletask-dotnet/pull/404))

## v1.10.0

Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<!-- DurableTask Packages -->
<ItemGroup>
<PackageVersion Include="Microsoft.Azure.DurableTask.Core" Version="3.2.0" />
<PackageVersion Include="Microsoft.Azure.DurableTask.Core" Version="3.3.0" />
<PackageVersion Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="1.2.2" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion eng/targets/Release.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>1.11.0</VersionPrefix>
<VersionPrefix>1.12.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Abstractions/TaskOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public record TaskOptions
/// Initializes a new instance of the <see cref="TaskOptions"/> class.
/// </summary>
/// <param name="retry">The task retry options.</param>
public TaskOptions(TaskRetryOptions? retry = null)
public TaskOptions(TaskRetryOptions? retry)
: this(retry, null)
{
this.Retry = retry;
}

/// <summary>
Expand Down
41 changes: 41 additions & 0 deletions test/Abstractions.Tests/TaskOptionsTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace Microsoft.DurableTask.Tests;

public class TaskOptionsTests
{
[Fact]
public void Empty_Ctors_Okay()
{
TaskOptions options = new();
options.Retry.Should().BeNull();
options.Tags.Should().BeNull();

SubOrchestrationOptions subOptions = new();
subOptions.Retry.Should().BeNull();
subOptions.Tags.Should().BeNull();
subOptions.InstanceId.Should().BeNull();

StartOrchestrationOptions startOptions = new();
startOptions.Version.Should().BeNull();
startOptions.InstanceId.Should().BeNull();
startOptions.StartAt.Should().BeNull();
startOptions.Tags.Should().BeEmpty();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that tags defaults to empty here but defaults to null in the *Options classes. Oh well - not something to deal with in this PR.

}

[Fact]
public void SubOrchestrationOptions_InstanceId_Correct()
{
string instanceId = Guid.NewGuid().ToString();
SubOrchestrationOptions subOptions = new(new TaskOptions(), instanceId);
instanceId.Equals(subOptions.InstanceId).Should().BeTrue();

string subInstanceId = Guid.NewGuid().ToString();
subOptions = new(new SubOrchestrationOptions(instanceId: subInstanceId));
subInstanceId.Equals(subOptions.InstanceId).Should().BeTrue();

subOptions = new(new SubOrchestrationOptions(instanceId: subInstanceId), instanceId);
instanceId.Equals(subOptions.InstanceId).Should().BeTrue();
}
}
Loading