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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cduanfigma
Copy link

@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.


expect(connection).to have_received(:get_workflow_execution_history).exactly(2).times
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is failing in CI, could you take a look?

Copy link
Author

Choose a reason for hiding this comment

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

should be fixed!

@cduanfigma cduanfigma requested a review from DeRauk April 12, 2024 18:34
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
2 participants