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

Get-GSDriveFileList limits pagesize to 100 #175

Open
WJurecki opened this issue Apr 6, 2019 · 5 comments
Open

Get-GSDriveFileList limits pagesize to 100 #175

WJurecki opened this issue Apr 6, 2019 · 5 comments
Assignees
Labels

Comments

@WJurecki
Copy link
Contributor

WJurecki commented Apr 6, 2019

Get-GSDriveFileList limits pagesize to 100 even when higher limits are specified. Also, documentation indicates a default pagesize of 1,000 but 100 is actually used.

Pagesizes lower than 100 are honored.

image

PSVersion: 5.1.17134.407
PSEdition: Desktop
OS: Windows 10 Version 1803, Build 17134.472
PSGSuite: 2.26.0

@scrthq
Copy link
Member

scrthq commented Apr 6, 2019

Hey @WJurecki - I think this may be more of a bug with either the Drive .NET SDK or the API documentation. I'll update to the latest SDK version with the next release and sanity check the code in case something is reverting there.

@scrthq scrthq self-assigned this Apr 6, 2019
@scrthq scrthq added the bug label Apr 6, 2019
@scrthq
Copy link
Member

scrthq commented Apr 6, 2019

Latest Drive .NET SDK and same issue. Confirmed that there's nothing in the code that's hard setting it @ 100 as well.

image

image

Confirmed that the .NET SDK documentation also reflects a maximum of 1000: https://developers.google.com/resources/api-libraries/documentation/drive/v3/csharp/latest/classGoogle_1_1Apis_1_1Drive_1_1v3_1_1FilesResource_1_1ListRequest.html#adca04399178ff49134b8a8e3c4537847

@scrthq
Copy link
Member

scrthq commented Apr 6, 2019

Going to see about opening up an issue with Google on it, just finding the appropriate spot.

It doesn't appear to be an issue when going through the REST API via the API Explorer; downloaded JSON results confirms 1000 files per page:

image

@WJurecki
Copy link
Contributor Author

I have tried this again with version 2.27.0 and find that there is a relationship between the number of -Fields requested and the actual -PageSize used, as seen here:

image

@scrthq
Copy link
Member

scrthq commented May 31, 2019

That is pretty strange! Thanks for investigating, @WJurecki!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants