Skip to content

Cosmos docstring review - #8607

Merged
bryevdv merged 5 commits into
Azure:masterfrom
bryevdv:bryanv/7788_cosmos_docstrings
Nov 14, 2019
Merged

Cosmos docstring review#8607
bryevdv merged 5 commits into
Azure:masterfrom
bryevdv:bryanv/7788_cosmos_docstrings

Conversation

@bryevdv

@bryevdv bryevdv commented Nov 12, 2019

Copy link
Copy Markdown
Contributor

issues: closes #7788 closes #8624

cc @annatisch

Proposed to move documentation of "common kwargs" to a separate issue/PR.

A few comments:

  • I'm old fashioned and still read often docstrings in a terminal. I definitely appreciate when text/paras in docstrings are < ~80 cols, so I have tried to hew to that.

  • My perception is that the preference in the repo is for args lists that are vertically compact, so I have made some edits around that as well.

  • Besides typo, grammar fixes, I tried to implement parallel phrasing in places where it was simple and made sense.

  • Added notes about some exceptions up front (e.g. API for deleting a non-existent item could go either way, as a user I'd like to know immediately I need to basically always wrap with a try/except)

It would be an interesting exercise to review use of tense and number in docstrings across all the projects. I am personally in the (Calling this function will) "Update a specified document widget" camp, and not the (A call to this function) "Updates the specified document widget" camp.

@bryevdv
bryevdv requested a review from shurd as a code owner November 12, 2019 22:06
@adxsdk6

adxsdk6 commented Nov 12, 2019

Copy link
Copy Markdown

Can one of the admins verify this patch?

@bryevdv bryevdv mentioned this pull request Nov 13, 2019
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/_routing/collection_routing_map.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/_session.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/container.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/database.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/documents.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py Outdated
Comment thread sdk/cosmos/azure-cosmos/azure/cosmos/partition_key.py Outdated
@bryevdv
bryevdv merged commit c4c060f into Azure:master Nov 14, 2019
@bryevdv
bryevdv deleted the bryanv/7788_cosmos_docstrings branch November 14, 2019 19:20
xiangyan99 added a commit that referenced this pull request Nov 15, 2019
* InteractiveBrowserCredential prompts for account selection (#8470)

* remove *.yaml under tests folder from manifest.in (#8625)

* [AutoPR] cosmos-db/resource-manager (#8560)

* regenerated

* fix script

* another place

* fix

* fix

* one more change

* one more

* undo multiapi script

* regeneated

* undo multiapi script

* history, version + additional fix

* regenerated

* fixed test

* fixed generation mistake

* added more breaking changes to history

* regenerated again

* additional fixes

* udpated test names

* test recordings

* Update README.md (#8628)

Add standard section on security issues below the "file an issue via GitHub Issues' bullet.

* Handle exceptions when constructing DefaultAzureCredential (#8294)

* Python 3.8 test pipeline is not cancelled when build is cancelled (#8544)

* Skip python 3.8 testing when CI is cancelled

* Cosmos docstring review (#8607)

* cosmos docstring edits

* user-defined

* trailing whitespace

* xfail flaky emulator tests

* review feedback

* Default credentials are configurable by kwargs (#8514)

* Nightly build is failing due version conflict between storage datalak… (#8635)

* Nightly build is failing due version conflict between storage datalake and storage blob

* InkRecognizer to use GA azure-core (#8341)

* InkRecognizer to use Ga azure-core

* Disable auto-pr update

* Azconfig remove tests from whl (#8663)

* update tests

* ignoring the azure folder directly (#8673)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky Emulator Tests [Cosmos] Review all docstrings

3 participants