Skip to content

Add Last to the func name GetActivityByName and GetWorkflowByName & GetLastChildWorkflowByName#105

Merged
cicoyle merged 2 commits into
dapr:mainfrom
cicoyle:rename-helpers-wf-hist-propagation
May 19, 2026
Merged

Add Last to the func name GetActivityByName and GetWorkflowByName & GetLastChildWorkflowByName#105
cicoyle merged 2 commits into
dapr:mainfrom
cicoyle:rename-helpers-wf-hist-propagation

Conversation

@cicoyle
Copy link
Copy Markdown

@cicoyle cicoyle commented May 19, 2026

No description provided.

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Copilot AI review requested due to automatic review settings May 19, 2026 19:58
@cicoyle cicoyle requested a review from a team as a code owner May 19, 2026 19:58
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

Renames two propagation API methods to make the "returns the last match" semantics explicit in their names: GetWorkflowByNameGetLastWorkflowByName and GetActivityByNameGetLastActivityByName. Doc comments and all callers in the tests are updated to match.

Changes:

  • Rename PropagatedHistory.GetWorkflowByName to GetLastWorkflowByName and WorkflowResult.GetActivityByName to GetLastActivityByName, updating doc comments.
  • Update all test functions and call sites in api/propagation_test.go to use the new names.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
api/propagation.go Renames the two singular getters and updates the related doc comments.
api/propagation_test.go Updates test names and call sites to the new method names.

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

Comment thread api/propagation.go Outdated
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
@cicoyle cicoyle merged commit df9b472 into dapr:main May 19, 2026
2 checks passed
@cicoyle cicoyle changed the title Add Last to the func name GetActivityByName and GetWorkflowByName Add Last to the func name GetActivityByName and GetWorkflowByName & GetLastChildWorkflowByName May 19, 2026
siri-varma added a commit to siri-varma/java-sdk that referenced this pull request May 20, 2026
Address review feedback on dapr#1739: replace user-facing PropagatedHistoryChunk
with WorkflowResult, mirroring dapr/durabletask-go#105. Adds typed
ActivityResult and ChildWorkflowResult value types, and getLast*ByName /
get*ByName lookups so callers don't walk raw history events. Renames
getWorkflowByName to getLastWorkflowByName for symmetry with the new
methods.

Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
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