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

[Cosmos] Updates to kwargs and docstrings #8277

Merged
merged 14 commits into from
Oct 30, 2019

Conversation

annatisch
Copy link
Member

@annatisch annatisch commented Oct 29, 2019

Partial fix for #7729 and #7788
Also address #8278

@adxsdk6
Copy link

adxsdk6 commented Oct 29, 2019

Can one of the admins verify this patch?

@annatisch annatisch changed the title [Cosmos] Docs updates [Cosmos] Updates to kwargs and docstrings Oct 29, 2019
@annatisch
Copy link
Member Author

/azp run python - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch annatisch marked this pull request as ready for review October 30, 2019 14:33
@annatisch annatisch requested a review from shurd as a code owner October 30, 2019 14:33
@annatisch
Copy link
Member Author

/azp run python - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch
Copy link
Member Author

/azp run python - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch
Copy link
Member Author

/azp run python - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -859,7 +860,8 @@ def test_document_crud(self):

# should pass for most recent etag
replaced_document_conditional = created_collection.replace_item(
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably add some tests to cover the new errors being thrown when match_condition is specified without etag and other cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added :)

@srinathnarayanan srinathnarayanan self-requested a review October 30, 2019 20:33
@annatisch annatisch merged commit 6d47f84 into Azure:feature/cosmos-v4 Oct 30, 2019
annatisch added a commit that referenced this pull request Oct 31, 2019
*  Query pipeline changes and Offset/Limit/Distinct support (#6770)

* intiial commit for query piepline changes

* initial commit for offset and limit

* modified aggregate tests to check for top as well after bugfix

* Added support for distinct

* modified aggregate tests to run in mono repo

* fixed failing tests and bugs

* updated tests

* fixed hashing problem for distinct

* fixed bug in distinct queries

* replaced single quotes with double quotes

* re introduced hashing via sha1

* fixed bug in distinct for py3

* dummy commit

* dummy commit

* [Cosmos] Core pipeline integration (#6961)

* Updated dependencies

* Added core pipeline

* Ignore test config

* Fixed indexes test

* Refactored request creation

* Fixed index test

* Added trace decorators

* Bumped version

* Updated policies

* Renamed request_options -> request_params

* [Cosmos] Applying track 2 SDK guidelines (#7021)

* Updated dependencies

* Added core pipeline

* Ignore test config

* Fixed indexes test

* Refactored request creation

* Fixed index test

* Added trace decorators

* Bumped version

* Updated policies

* Renamed request_options -> request_params

* Renamed clients

* Updated with azure-core errors

* Fixed test warnings

* Updated config

* PR fixes

* Fixed init user import

* Fixed init clients

* Started revising constructors

* Test conn str constructor

* Update iterables with core paging

* Added context managers

* Reverted storage changes

* Updated constructor

* Mypy and Pylint

* Renamed all listing operations

* Some mypy fixes

* Cleaned up method signatures

* Fix pylint

* Propagate kwargs

* Fix pylint

* Some mypy fixes

* Updated readme and release notes

* Fix for passing in extra headers

* Reverted credentials

* Review feedback

* Fix pylint

* Fixed samples

* Updated docstrings

* Fixed whitespace and imports

* Some mypy fixes

* Mypy fixes

* Removed continuation token support

* Pylint fix

* Docs tweaks

* Updated continuation token

* Updated response header

* Added support for Urllib3 Connection retries

Made Offer extend object instead of dict

* [Cosmos] Bumped dependency (#7147)

* Bumped dependency

* Update reqs

* Misc fixes for Cosmos SDK  (#7157)

* Made offer extend object instead of dict

* added support for urllib3 connection retry

* [Cosmos] Reconfigure retry policy (#7544)

* Reconfigure retry policy

* Review feedback

* Fix pylint

* Updated tests

* Support client-side timeout

* Updated timeout logic

* Renamed client error

* Updated tests

* Patch azure-core

Needed pending PR 7542

* Fixed status retry tests

* Using dev core

* [Cosmos] Docs updates (#7626)

* Updated sample refs

* Added release notes

* Remove old rst files

* Fixed kwarg formatting

* add sdk tools repo (#7656)

* [Cosmos] More docs cleanup (#7661)

* Removed old docs

* Bumped core version

* Removed submodule docs

* Fixed imports

* Pylint fix

* More docs updates

* Fixed docstring types

* Docstring formatting

* Updated snippet references

* Fixed exception docs

* More exception docstrings

* Review feedback

* dummy commit

* reverted dummy commit

* fixed failing test

fixed lint errors

* fixed failing tests

* updated comment

* added **kwargs to _GetQueryPlanThroughGateway

* Move cosmos errors.py -> exceptions.py (#8226)

* errors.py -> exceptions.py

* add deprecated errors.py stub

* update changelog

* linter

* add reprs to common user-facing classes (#8241)

* add reprs to common user-facing classes

* typo class name

* disable errant linter objection

* [Cosmos] Live test fixes (#8245)

* Cosmos live test fixes

* Another test fix

* Update tests for old emulator

* Removed disabled tests

* [Cosmos] Updates to kwargs and docstrings (#8277)

* Made version file internal

* Updated kwargs

* Updated docstrings

* Updated access condition kwargs

* More docs cleanup

* Whitespace

* Removed URLs for now

* Fix samples merge

* Updated conditional param parsing

* Fixed type hint

* Removed samples init

* Added match condition validation tests

* fix Cosmos README 404s (#8304)

* fix Cosmos README 404s

* typo

* Typo
@annatisch annatisch deleted the cosmos-updates branch October 31, 2019 17:58
fengzhou-msft pushed a commit that referenced this pull request Nov 5, 2019
*  Query pipeline changes and Offset/Limit/Distinct support (#6770)

* intiial commit for query piepline changes

* initial commit for offset and limit

* modified aggregate tests to check for top as well after bugfix

* Added support for distinct

* modified aggregate tests to run in mono repo

* fixed failing tests and bugs

* updated tests

* fixed hashing problem for distinct

* fixed bug in distinct queries

* replaced single quotes with double quotes

* re introduced hashing via sha1

* fixed bug in distinct for py3

* dummy commit

* dummy commit

* [Cosmos] Core pipeline integration (#6961)

* Updated dependencies

* Added core pipeline

* Ignore test config

* Fixed indexes test

* Refactored request creation

* Fixed index test

* Added trace decorators

* Bumped version

* Updated policies

* Renamed request_options -> request_params

* [Cosmos] Applying track 2 SDK guidelines (#7021)

* Updated dependencies

* Added core pipeline

* Ignore test config

* Fixed indexes test

* Refactored request creation

* Fixed index test

* Added trace decorators

* Bumped version

* Updated policies

* Renamed request_options -> request_params

* Renamed clients

* Updated with azure-core errors

* Fixed test warnings

* Updated config

* PR fixes

* Fixed init user import

* Fixed init clients

* Started revising constructors

* Test conn str constructor

* Update iterables with core paging

* Added context managers

* Reverted storage changes

* Updated constructor

* Mypy and Pylint

* Renamed all listing operations

* Some mypy fixes

* Cleaned up method signatures

* Fix pylint

* Propagate kwargs

* Fix pylint

* Some mypy fixes

* Updated readme and release notes

* Fix for passing in extra headers

* Reverted credentials

* Review feedback

* Fix pylint

* Fixed samples

* Updated docstrings

* Fixed whitespace and imports

* Some mypy fixes

* Mypy fixes

* Removed continuation token support

* Pylint fix

* Docs tweaks

* Updated continuation token

* Updated response header

* Added support for Urllib3 Connection retries

Made Offer extend object instead of dict

* [Cosmos] Bumped dependency (#7147)

* Bumped dependency

* Update reqs

* Misc fixes for Cosmos SDK  (#7157)

* Made offer extend object instead of dict

* added support for urllib3 connection retry

* [Cosmos] Reconfigure retry policy (#7544)

* Reconfigure retry policy

* Review feedback

* Fix pylint

* Updated tests

* Support client-side timeout

* Updated timeout logic

* Renamed client error

* Updated tests

* Patch azure-core

Needed pending PR 7542

* Fixed status retry tests

* Using dev core

* [Cosmos] Docs updates (#7626)

* Updated sample refs

* Added release notes

* Remove old rst files

* Fixed kwarg formatting

* add sdk tools repo (#7656)

* [Cosmos] More docs cleanup (#7661)

* Removed old docs

* Bumped core version

* Removed submodule docs

* Fixed imports

* Pylint fix

* More docs updates

* Fixed docstring types

* Docstring formatting

* Updated snippet references

* Fixed exception docs

* More exception docstrings

* Review feedback

* dummy commit

* reverted dummy commit

* fixed failing test

fixed lint errors

* fixed failing tests

* updated comment

* added **kwargs to _GetQueryPlanThroughGateway

* Move cosmos errors.py -> exceptions.py (#8226)

* errors.py -> exceptions.py

* add deprecated errors.py stub

* update changelog

* linter

* add reprs to common user-facing classes (#8241)

* add reprs to common user-facing classes

* typo class name

* disable errant linter objection

* [Cosmos] Live test fixes (#8245)

* Cosmos live test fixes

* Another test fix

* Update tests for old emulator

* Removed disabled tests

* [Cosmos] Updates to kwargs and docstrings (#8277)

* Made version file internal

* Updated kwargs

* Updated docstrings

* Updated access condition kwargs

* More docs cleanup

* Whitespace

* Removed URLs for now

* Fix samples merge

* Updated conditional param parsing

* Fixed type hint

* Removed samples init

* Added match condition validation tests

* fix Cosmos README 404s (#8304)

* fix Cosmos README 404s

* typo

* Typo
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.

4 participants