Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagination to get_workflow_history #290

Merged
merged 4 commits into from
Jul 22, 2024
Merged

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

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.

spec/unit/lib/temporal/client_spec.rb Show resolved Hide resolved
@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
2 checks passed
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