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

Removed **provisional** from computed_properties #39543

Conversation

andrewmathew1
Copy link
Contributor

@andrewmathew1 andrewmathew1 commented Feb 3, 2025

Description

Removed provisional from computed_properties in database.py and _database.py.
Added computed_properties to function definition in database.py and _database.py.
Annotated computed_properties tests.
Added in feature of replacing computed_properties when using the replace_container method.
Added tests for replacing computed_properties.
Removed duplicate tests for computed_properties in tests_query.py and test_query_async.py.
Renamed test_query_computed_properties to test_computed_properties to reflect new tests.
Recorded changes in CHANGELOG.md.

@andrewmathew1 andrewmathew1 requested review from annatisch and a team as code owners February 3, 2025 23:10
@github-actions github-actions bot added the Cosmos label Feb 3, 2025
Copy link
Member

@Pilchie Pilchie left a comment

Choose a reason for hiding this comment

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

We should add something to the changelog for this, right?

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 3, 2025

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-cosmos

@andrewmathew1
Copy link
Contributor Author

We should add something to the changelog for this, right?

yup, added to the 2025-01-24 changelog

Copy link
Member

@bambriz bambriz left a comment

Choose a reason for hiding this comment

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

With the new test framework, we need to now annotate every test.
Please annotate the computed properties test to be run with cosmosQuery test group, and run the live tests which can be ran by adding /azp run python - cosmos - tests as a comment to the PR.

@bambriz bambriz mentioned this pull request Feb 11, 2025
@andrewmathew1
Copy link
Contributor Author

/azp run python - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@andrewmathew1
Copy link
Contributor Author

/azp run python - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@andrewmathew1
Copy link
Contributor Author

/azp run python - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kushagraThapar
Copy link
Member

@andrewmathew1 - since all of the tests have already passed, so you don't need to run the CI again, and get your PR in once you have made the above changes, thanks!

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @andrewmathew1

@simorenoh simorenoh requested a review from bambriz February 12, 2025 22:27
Copy link
Member

@bambriz bambriz left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you!

@andrewmathew1 andrewmathew1 merged commit 3c200e5 into Azure:main Feb 13, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants