-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[general] Documentation on page_size is very minimal. #6207
Comments
Another thing that needs attention as well is the related page_token. Wording is actually more confusing for this one: opaque marker? The methods link to the page describing the API which has a much better description. Copying those into the lib itself would actually solve the issue without actually having to write up something new. Compare the following: • page_size • page_token |
@Edo-A note that we actually don't really expect / want users to pass either value explicitly in normal usage: the
I'm going to say we should docs-deprecate I'm going to scope this one to ignore occurrences of For $ grep -rl page_size docs/_build/html/_modules/ | grep -v gapic | grep -v "\<proto\>" | sort
docs/_build/html/_modules/google/cloud/bigquery/client.html
docs/_build/html/_modules/google/cloud/bigquery/dbapi/cursor.html
docs/_build/html/_modules/google/cloud/bigquery/table.html
docs/_build/html/_modules/google/cloud/firestore_v1beta1/document.html
docs/_build/html/_modules/google/cloud/logging/client.html
docs/_build/html/_modules/google/cloud/logging/logger.html
docs/_build/html/_modules/google/cloud/monitoring_v3/query.html
docs/_build/html/_modules/google/cloud/resource_manager/client.html
docs/_build/html/_modules/google/cloud/runtimeconfig/config.html
docs/_build/html/_modules/google/cloud/spanner_v1/client.html
docs/_build/html/_modules/google/cloud/spanner_v1/instance.html For $ grep -rl page_token docs/_build/html/_modules/ | grep -v gapic | grep -v "\<proto\>" | sort
docs/_build/html/_modules/google/api_core/operations_v1/operations_client.html
docs/_build/html/_modules/google/api_core/page_iterator.html
docs/_build/html/_modules/google/cloud/bigquery/client.html
docs/_build/html/_modules/google/cloud/bigquery/query.html
docs/_build/html/_modules/google/cloud/bigquery/table.html
docs/_build/html/_modules/google/cloud/datastore/client.html
docs/_build/html/_modules/google/cloud/datastore/query.html
docs/_build/html/_modules/google/cloud/dns/client.html
docs/_build/html/_modules/google/cloud/dns/zone.html
docs/_build/html/_modules/google/cloud/logging/client.html
docs/_build/html/_modules/google/cloud/logging/logger.html
docs/_build/html/_modules/google/cloud/runtimeconfig/config.html
docs/_build/html/_modules/google/cloud/spanner_v1/client.html
docs/_build/html/_modules/google/cloud/spanner_v1/instance.html
docs/_build/html/_modules/google/cloud/storage/bucket.html
docs/_build/html/_modules/google/cloud/storage/client.html |
The explanation of page_size is extremely limited.
Example from the logging API:
maximum number of entries to return, If not passed, defaults to a value set by the API.
If you're familiar with gRPC then this makes sense, but for newcomers this is extremely limited information. Simple wording change can make a lot of difference here IMHO. Looking at this example from the Cloud Spanner Javadocs shows a slight change, but makes it easier to understand:
Specifying this will cause the list operations to fetch at most this many records in a page.
On a semi-related note, having usage examples would also clarify the usage a lot, but this can be said for all methods in the whole python library.
The text was updated successfully, but these errors were encountered: