Skip to content

add startedAt field to workflow metadata#99

Merged
JoshVanL merged 14 commits into
dapr:mainfrom
pablochacin:add-start-time-to-wf-metadata
May 13, 2026
Merged

add startedAt field to workflow metadata#99
JoshVanL merged 14 commits into
dapr:mainfrom
pablochacin:add-start-time-to-wf-metadata

Conversation

@pablochacin
Copy link
Copy Markdown

Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
@pablochacin pablochacin force-pushed the add-start-time-to-wf-metadata branch from f735cb7 to 259f8c4 Compare May 6, 2026 19:12
@pablochacin pablochacin marked this pull request as ready for review May 6, 2026 19:15
@pablochacin pablochacin requested a review from a team as a code owner May 6, 2026 19:15
Copy link
Copy Markdown

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Does this not need implementation changes?

Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
@pablochacin pablochacin requested a review from JoshVanL May 7, 2026 17:33
@JoshVanL JoshVanL requested a review from Copilot May 7, 2026 17:34
Comment thread client/client_grpc.go Outdated
Comment thread client/client_grpc.go Outdated
LastUpdatedAt: resp.WorkflowState.LastUpdatedTimestamp,
FailureDetails: resp.WorkflowState.FailureDetails,
Version: resp.WorkflowState.Version,
StartedAt: resp.WorkflowState.ScheduledStartTimestamp,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you verify if we need to extend any tests in the repo?

Copy link
Copy Markdown

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 PR updates the Go protobuf surface to align with dapr/durabletask-protobuf#49 and exposes a new startedAt timestamp on workflow metadata as part of the generated backend-service protos.

Changes:

  • Adds startedAt to durabletask.protos.backend.v1.WorkflowMetadata (generated protobuf) and regenerates protos with protoc-gen-go v1.33.0.
  • Updates the gRPC client metadata conversion to populate WorkflowMetadata.StartedAt.
  • Pulls in additional regenerated proto changes (notably new CreateDetachedWorkflowAction in orchestrator actions).

Reviewed changes

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

Show a summary per file
File Description
client/client_grpc.go Maps GetInstanceResponse.WorkflowState into backend.WorkflowMetadata, now including StartedAt.
api/protos/backend_service.pb.go Generated proto update adding WorkflowMetadata.startedAt.
api/protos/orchestrator_actions.pb.go Regenerated protos; includes new CreateDetachedWorkflowAction and updated oneofs/indexing.
api/protos/orchestrator_service.pb.go Regenerated header/version updates.
api/protos/orchestration.pb.go Regenerated header/version updates.
api/protos/runtime_state.pb.go Regenerated header/version updates.

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

Comment thread client/client_grpc.go Outdated
Comment thread client/client_grpc.go
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
@pablochacin

This comment was marked as outdated.

@pablochacin

This comment was marked as outdated.

@pablochacin pablochacin requested review from JoshVanL and cicoyle May 8, 2026 13:46
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
@pablochacin pablochacin force-pushed the add-start-time-to-wf-metadata branch from ee7fa50 to 89bcf88 Compare May 8, 2026 18:42
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Copy link
Copy Markdown

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

@pablochacin need to update protobuf submodule ref?

Copy link
Copy Markdown

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 15 out of 15 changed files in this pull request and generated 4 comments.

Comment thread backend/sqlite/sqlite.go Outdated
Comment thread backend/postgres/postgres.go Outdated
Comment thread tests/backend_test.go Outdated
Comment thread backend/runtimestate/runtimestate_test.go
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
@pablochacin pablochacin requested a review from JoshVanL May 12, 2026 12:44
@JoshVanL JoshVanL merged commit 435bc26 into dapr:main May 13, 2026
2 checks passed
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.

5 participants