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

fix(storage): fix documentation of max_result parameter in list_blob #95

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HemangChothani
Copy link
Collaborator

@HemangChothani HemangChothani commented Jan 3, 2020

IPR 10030

(Optional) The maximum number of blobs in each page of results
from this request. Non-positive values are ignored. Defaults to
a sensible value set by the API.
(Optional) The maximum number of blobs to return.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather minimize the changes:

                (Optional) The maximum total number of blobs in results
                from this request. Non-positive values are ignored. Defaults to
                a sensible value set by the API.

The last sentence can possibly be removed if the default value does not exist.

Copy link
Collaborator Author

@HemangChothani HemangChothani Jan 8, 2020

Choose a reason for hiding this comment

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

@mf2199 I have copied the discription from other page like here to maintain the consistency, if needed i will change it.

Copy link

Choose a reason for hiding this comment

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

I don't think "Non-positive values are ignored." is actually true from the implementation. None is ignored/header is not set so default applies, and 0 and negative numbers are equivalent and will result in an empty iterator.

@MaxxleLLC MaxxleLLC force-pushed the storage_doc_fix_list_blob branch from 848b1bf to 1c0ab69 Compare January 8, 2020 09:38
@bz2
Copy link

bz2 commented Jan 8, 2020

@HemangChothani Thanks for picking this up, changing the docs here should be sufficient to resolve https://github.com/googleapis/google-cloud-python/issues/10030 I think.

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.

3 participants