Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

docs: streamline docstrings for conditional parmas#464

Merged
tseaver merged 6 commits into
mastergoogleapis/python-storage:masterfrom
460-move-boilerplate-gen-metagen-docs-from-docstringsgoogleapis/python-storage:460-move-boilerplate-gen-metagen-docs-from-docstringsCopy head branch name to clipboard
Jun 21, 2021
Merged

docs: streamline docstrings for conditional parmas#464
tseaver merged 6 commits into
mastergoogleapis/python-storage:masterfrom
460-move-boilerplate-gen-metagen-docs-from-docstringsgoogleapis/python-storage:460-move-boilerplate-gen-metagen-docs-from-docstringsCopy head branch name to clipboard

Conversation

@tseaver

@tseaver tseaver commented Jun 10, 2021

Copy link
Copy Markdown
Contributor

Add narrative docs for conditional params:

  • 'if_generation_match'
  • 'if_generation_not_match'
  • 'if_metageneration_match'
  • 'if_metageneration_not_match'

Replace verbose docstring entries for those params with links to the narrative docs.

Also, move 'timeout' argument to end (just before 'retry', if present) for consistency.

Closes #460.

@tseaver tseaver requested review from a team, andrewsg, cojenco, frankyn and tritone June 10, 2021 18:42
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Jun 10, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 10, 2021
@tseaver tseaver added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 11, 2021
@tseaver

tseaver commented Jun 11, 2021

Copy link
Copy Markdown
Contributor Author

@tseaver tseaver force-pushed the 460-move-boilerplate-gen-metagen-docs-from-docstrings branch from d8ad3ee to 1b2ef92 Compare June 14, 2021 15:52
@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 14, 2021
@tseaver tseaver force-pushed the 460-move-boilerplate-gen-metagen-docs-from-docstrings branch from 1b2ef92 to 0d296b0 Compare June 15, 2021 17:19
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 18, 2021
@tseaver

tseaver commented Jun 18, 2021

Copy link
Copy Markdown
Contributor Author

@cojenco, @andrewsg ready for review.

tseaver added 2 commits June 21, 2021 13:01
- 'if_genration_match'
- 'if_genration_not_match'
- 'if_metageneration_match'
- 'if_metageneration_not_match'

Toward #460.
Link to new narrative docs.

Also, move 'timeout' argument to end (just before 'retry', if present)
for consistency.

Closes #460.
@tseaver tseaver force-pushed the 460-move-boilerplate-gen-metagen-docs-from-docstrings branch from 4a8fa65 to 7c04114 Compare June 21, 2021 17:01
@tseaver

tseaver commented Jun 21, 2021

Copy link
Copy Markdown
Contributor Author

@frankyn, @tritone, @andrewsg, @cojenco PTAL.

@cojenco

cojenco commented Jun 21, 2021

Copy link
Copy Markdown
Contributor

Thanks for the ping, @tseaver . Taking a look now.

Comment thread docs/generation_metageneration.rst Outdated
Comment thread docs/generation_metageneration.rst Outdated
Comment thread docs/generation_metageneration.rst Outdated
Comment thread docs/generation_metageneration.rst Outdated

@cojenco cojenco 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 @tseaver for adding the generation/preconditions reference doc and streamlining the docstrings. Looks so much better! A few comments and nits, otherwise, LGTM

tseaver added 2 commits June 21, 2021 14:27
Addressing review comment.
Addressing review comments.
@tseaver tseaver requested a review from cojenco June 21, 2021 18:32

@cojenco cojenco 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!

@danielduhh danielduhh 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.

Just one super nit -- also looks like Kokoro is failing

Comment thread docs/generation_metageneration.rst Outdated
@dandhlee

Copy link
Copy Markdown
Contributor

docfx and docs-presubmit will fail, sorry about that! If if's just those two and you can move the PR along then please do so, otherwise you'll have to wait until I resolve it with googleapis/sphinx-docfx-yaml#48.

@dandhlee dandhlee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 21, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 21, 2021
@dandhlee

Copy link
Copy Markdown
Contributor

Everything is fixed! Sorry to make you wait 😅

@tseaver tseaver merged commit 6999370 into master Jun 21, 2021
@tseaver tseaver deleted the 460-move-boilerplate-gen-metagen-docs-from-docstrings branch June 21, 2021 22:31
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
Add narrative docs for conditional params:

- 'if_generation_match'
- 'if_generation_not_match'
- 'if_metageneration_match'
- 'if_metageneration_not_match'

Streamline docstrings for conditional params, linking to new narrative docs.

Also, move 'timeout' argument to end (just before 'retry', if present) for consistency.

Closes googleapis#460.
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
Add narrative docs for conditional params:

- 'if_generation_match'
- 'if_generation_not_match'
- 'if_metageneration_match'
- 'if_metageneration_not_match'

Streamline docstrings for conditional params, linking to new narrative docs.

Also, move 'timeout' argument to end (just before 'retry', if present) for consistency.

Closes googleapis#460.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move boilerplate docs for 'if_generation_match' et al. out of method docstrings

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.