Skip to content

Fix for [sc-87910] broken rfc-5988 pagination mode on some servers#22

Merged
alexbourret merged 5 commits intomasterfrom
bug/sc-87910-rfc-5988-pagination-broken-on-some-servers
May 19, 2022
Merged

Fix for [sc-87910] broken rfc-5988 pagination mode on some servers#22
alexbourret merged 5 commits intomasterfrom
bug/sc-87910-rfc-5988-pagination-broken-on-some-servers

Conversation

@alexbourret
Copy link
Copy Markdown
Collaborator

No description provided.

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #87910: RFC-5988 pagination broken on some servers.

@JaneBellaiche JaneBellaiche self-requested a review May 16, 2022 12:31
Copy link
Copy Markdown
Contributor

@JaneBellaiche JaneBellaiche left a comment

Choose a reason for hiding this comment

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

The fix works as expected 👍
Aside from a little comment, LGTM

params = self.requests_kwargs.get("params")
params.update(pagination_params)
self.requests_kwargs.update({"params": params})
if self.pagination.params_must_be_blanked:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can't you use if self.pagination.next_page_url instead of creating an additional arg?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Indeed !

@alexbourret alexbourret merged commit cb2c45c into master May 19, 2022
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.

2 participants