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

feat: add helpful warnings on paged calls #1668

Merged
merged 5 commits into from
Nov 8, 2024
Merged

Conversation

leahecole
Copy link
Contributor

@leahecole leahecole commented Oct 21, 2024

Fixes #1667

This PR

  • adds a test to the test application that does manual paging
  • adds unit tests to check for warnings being thrown about autopagination
  • warns under certain autopagination conditions

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Oct 21, 2024
@leahecole leahecole changed the title feat: warn on paged calls for conflicting settings feat: add helpful warnings on paged calls Oct 21, 2024
@leahecole leahecole marked this pull request as ready for review October 21, 2024 16:49
@leahecole leahecole requested review from a team as code owners October 21, 2024 16:49
@leahecole leahecole assigned sofisl and unassigned sofisl Oct 21, 2024
@leahecole
Copy link
Contributor Author

blocked on compodoc, I believe @kevkim-codes was working on a quick fix for that

@leahecole
Copy link
Contributor Author

blocked by b/372757273

@leahecole leahecole requested a review from a team as a code owner October 23, 2024 19:32
@leahecole
Copy link
Contributor Author

No longer blocked! :)

@@ -526,6 +530,31 @@ async function testPagedExpandAsync(client: EchoClient) {
assert.deepStrictEqual(words, response);
}

async function testPagedExpandAutopaginateOff(client: EchoClient) {
const words = ['nobody', 'ever', 'reads', 'test', 'input'];
Copy link
Contributor

Choose a reason for hiding this comment

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

I did! :)

@leahecole leahecole merged commit 9efaf46 into main Nov 8, 2024
21 checks passed
@leahecole leahecole deleted the autopaginate-warn branch November 8, 2024 19:34
@release-please release-please bot mentioned this pull request Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn when pageSize is passed as a parameter but autoPaginate is not
3 participants