Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

docs: streamline 'timeout' / 'retry' docs in docstrings - #461

Merged
tseaver merged 12 commits into
masterfrom
455-move-boilerplate-timeout-retry-docs-from-docstrings
Jun 10, 2021
Merged

docs: streamline 'timeout' / 'retry' docs in docstrings#461
tseaver merged 12 commits into
masterfrom
455-move-boilerplate-timeout-retry-docs-from-docstrings

Conversation

@tseaver

Copy link
Copy Markdown
Contributor
  • Add 'requests' intersphinx refs.
  • Add narrative docs for timeouts and retries.
  • Replace boilerplate docs for 'timeout' and 'retry' in API-invoking methods with links to narrative docs.

Closes#455

@tseaver
tseaver requested review from a team, andrewsg, chrisrossi, frankyn and tritoneJune 8, 2021 21:25
@product-auto-labelproduct-auto-labelBot added the api: storage Issues related to the googleapis/python-storage API. label Jun 8, 2021
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Jun 8, 2021
Comment threadowlbot.py Outdated
@tseaver
tseaverforce-pushed the 455-move-boilerplate-timeout-retry-docs-from-docstrings branch from 0364999 to aa470b0CompareJune 8, 2021 22:49

@tritonetritone left a comment

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.

Thanks for adding this! A couple small suggestions.

Comment threaddocs/retry_timeout.rst Outdated
Comment threaddocs/retry_timeout.rst Outdated
@tritone

Copy link
Copy Markdown
Contributor

@andrewsg@cojenco PTAL

@tritonetritone left a comment

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.

Looks great!

Comment threaddocs/retry_timeout.rst Outdated
Comment threaddocs/retry_timeout.rst
Comment threaddocs/retry_timeout.rst Outdated
Comment threaddocs/retry_timeout.rst
@partheaparthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Jun 9, 2021
@gcf-owl-botgcf-owl-botBot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jun 9, 2021
@tseaver
tseaver requested a review from cojencoJune 9, 2021 21:42
Comment threaddocs/retry_timeout.rst

@cojencocojenco left a comment

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.

LGTM, thanks @tseaver for streamlining this!

tseaverand others added 10 commits June 10, 2021 11:32
Include API docs for the 'retry' module, as well, to unbreak links.
Replace boilerplate with links to new narrative docs.
Closes#455.
Rather than hacking it in via replacement.
- Explain semantics of default policies, and where used.
- Provide an example of a predicate function for a conditional policy.
Per review comments.
Per review comments.
@tseaver
tseaverforce-pushed the 455-move-boilerplate-timeout-retry-docs-from-docstrings branch from 435c4e4 to 1a56e89CompareJune 10, 2021 15:32
@tseaver
tseaver merged commit 78b2eba into masterJun 10, 2021
@tseaver
tseaver deleted the 455-move-boilerplate-timeout-retry-docs-from-docstrings branch June 10, 2021 16:34
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* Add 'requests' intersphinx refs
* Add narrative docs for timeouts and retries
* Include API docs for the 'retry' module, as well, to unbreak links.
* Replace boilerplate docstring entries for 'timeout' / 'retry' with links to new narrative docs.
* Add docstrings for default conditional policies.
Closesgoogleapis#455.
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* Add 'requests' intersphinx refs
* Add narrative docs for timeouts and retries
* Include API docs for the 'retry' module, as well, to unbreak links.
* Replace boilerplate docstring entries for 'timeout' / 'retry' with links to new narrative docs.
* Add docstrings for default conditional policies.
Closesgoogleapis#455.
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storageIssues related to the googleapis/python-storage API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move boilerplate docs for 'timeout' and 'retry' out of method docstrings

5 participants

@tseaver@tritone@busunkim96@cojenco@parthea