Skip to content

Conversation

@YunchuWang
Copy link
Member

@YunchuWang YunchuWang commented Nov 5, 2025

This pull request introduces a new sample web application, ExportHistoryWebApp, for managing export history jobs via a REST API. The changes add new project files, configuration files, and controller logic, as well as update the solution file to include the new projects and their build configurations.

New Export History Web Application

  • Added new sample project ExportHistoryWebApp to the solution, including its project file (ExportHistoryWebApp.csproj) and necessary references to Durable Task components and the new ExportHistory project. [1] [2]
  • Implemented ExportJobController to provide REST endpoints for creating, retrieving, listing, and deleting export history jobs. This controller uses the Durable Task ExportHistory client and models.
  • Defined the CreateExportJobRequest model to represent the payload for creating export jobs, supporting various configuration options such as mode, time ranges, storage container, and filtering.

Configuration and Environment Setup

  • Added launch settings (launchSettings.json) and application configuration files (appsettings.json, appsettings.Development.json) to support local development and environment variable management for connection strings and storage settings. [1] [2] [3]
  • Added Program.cs to configure dependency injection, Durable Task client and worker services, and controller routing for the web application.

API Usage and Documentation

  • Provided an HTTP request collection file (ExportHistoryWebApp.http) with example requests for creating, listing, retrieving, and deleting export jobs, including tips and usage notes for common scenarios.

Solution File Updates

  • Updated Microsoft.DurableTask.sln to include the new ExportHistory and ExportHistoryWebApp projects, and adjusted build configuration and project nesting accordingly. [1] [2] [3] [4]

@YunchuWang YunchuWang marked this pull request as ready for review November 7, 2025 03:22
@YunchuWang YunchuWang changed the title Export job Export History job Nov 7, 2025
@halspang halspang requested a review from Copilot November 10, 2025 20:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces comprehensive support for exporting orchestration history to Azure Blob Storage through a new ExportHistory library and sample web application. The changes enable users to create batch or continuous export jobs that export completed orchestration instances.

Key changes:

  • Adds new ExportHistory library with entity-based job management, orchestrators for export operations, and Azure Blob Storage integration
  • Introduces ExportHistoryWebApp sample with REST API endpoints for managing export jobs
  • Extends Durable Task client with history streaming and instance ID listing capabilities
  • Includes comprehensive test coverage for all models, entities, and client operations

Reviewed Changes

Copilot reviewed 71 out of 71 changed files in this pull request and generated 20 comments.

Show a summary per file
File Description
src/ExportHistory/* Core library implementation including entities, orchestrators, activities, models, and client abstractions
test/ExportHistory.Tests/* Comprehensive unit tests for models, entities, orchestrations, and client operations
src/Client/Core/DurableTaskClient.cs Adds ListInstanceIdsAsync and StreamInstanceHistoryAsync methods for export support
src/Client/Grpc/GrpcDurableTaskClient.cs Implements gRPC-based history streaming and instance ID listing
src/Grpc/orchestrator_service.proto Adds protobuf definitions for ListInstanceIds RPC endpoint
samples/ExportHistoryWebApp/* Sample ASP.NET Core web app with REST API for export job management
Microsoft.DurableTask.sln Updates solution to include new ExportHistory projects

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@halspang halspang left a comment

Choose a reason for hiding this comment

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

Haven't gotten through to the tests yet, but wanted to publish what I have so far.

@torosent torosent requested a review from Copilot November 13, 2025 19:21
Copilot finished reviewing on behalf of torosent November 13, 2025 19:22
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 71 out of 71 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 19, 2025 22:11
Copilot finished reviewing on behalf of YunchuWang November 19, 2025 22:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 71 out of 71 changed files in this pull request and generated 6 comments.

@YunchuWang YunchuWang requested a review from halspang November 20, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants