Skip to content

Add pagination to get_workflow_history#290

Merged
cj-cb merged 4 commits intocoinbase:masterfrom
cduanfigma:master
Jul 22, 2024
Merged

Add pagination to get_workflow_history#290
cj-cb merged 4 commits intocoinbase:masterfrom
cduanfigma:master

Conversation

@cduanfigma
Copy link
Contributor

@cduanfigma cduanfigma commented Mar 11, 2024

Uses pagination in get_workflow_history so that it fetches the complete history result.

Review without whitespace.

Fixes #289

@cduanfigma cduanfigma marked this pull request as ready for review March 11, 2024 14:02
end

Workflow::History.new(history_response.history.events)
Workflow::History.new(response.history.events)
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to create the workflow history object from the events property? Creating it from response.history.events is incorrect.

@cduanfigma cduanfigma requested a review from DeRauk April 12, 2024 18:34
@efroese-figma
Copy link

Hey! Just checking in on this PR. @DeRauk, @cduanfigma addressed the comments you left. Is there anything else we should do to get this merged?

@DeRauk
Copy link
Contributor

DeRauk commented Jul 16, 2024

@cj-cb could you take a look at this one?

@cj-cb
Copy link
Contributor

cj-cb commented Jul 16, 2024

@cduanfigma Thank you for the PR. Can you please resolve the conflicts?

@cduanfigma
Copy link
Contributor Author

@cj-cb conflicts are resolved!

@cj-cb
Copy link
Contributor

cj-cb commented Jul 17, 2024

@cduanfigma Looks like tests are failing. Do you mind pulling in the latest in master again to get a fix?

@cduanfigma
Copy link
Contributor Author

@cj-cb done, this should pick up the changes in #308

@cj-cb cj-cb merged commit 0c9a0c7 into coinbase:master Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Temporal::Client::get_workflow_history does not fetch complete history due to pagination

4 participants