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

chore(deps): update dependency google-cloud-datastore to v2.20.2 #13026

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/flexible/datastore/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==3.0.3
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). Test thoroughly after merging, focusing on list operations within the Datastore context. Add a unit test to main_test.py replicating the original bug scenario (https://redirect.github.com/googleapis/python-datastore/issues/575) to prevent regressions.

Copy link

Choose a reason for hiding this comment

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

low

Consider adding a comment explaining the reason for this version bump, referencing the bug fix included in 2.20.2. This will help with future maintainability and understanding the context of the change. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

Updating to 2.20.2 is a good move. To improve clarity and maintainability, consider adding an inline comment briefly explaining the reason for this specific version bump, referencing the bug fix. This helps provide context for future updates.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is a good practice. This version includes a bug fix for preserving list meanings. Ensure thorough testing of the application after merging this change.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. Please refer to the release notes for this version to ensure no breaking changes affect this sample. Test thoroughly after merging, especially code that interacts with Datastore list properties.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

The dependency has been updated correctly to 2.20.2. Per PEP 8, using == to pin the dependency to a specific version is generally recommended for better control and reproducibility. This helps avoid unexpected issues if future minor versions introduce breaking changes. However, if the project intends to use the latest minor version within the 2.20.x series, using ~=2.20.0 would be appropriate.

gunicorn==22.0.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Flask==3.0.3; python_version > '3.6'
Flask==2.3.3; python_version < '3.7'
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). Test thoroughly after merging, focusing on list operations within the Datastore context. Add a unit test to main_test.py replicating the original bug scenario (https://redirect.github.com/googleapis/python-datastore/issues/575) to prevent regressions.

Copy link

Choose a reason for hiding this comment

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

low

Similar to the previous suggestion, add a comment explaining the reason for updating to 2.20.2. Referencing the specific bug fix will make it easier to understand why this change was made in the future. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

Updating to 2.20.2 addresses the list meaning preservation bug. A quick inline comment referencing the bug fix (#575) would be helpful for future reference.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended. This version includes a bug fix for preserving list meanings. Test the application thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. Please refer to the release notes for this version to ensure no breaking changes affect this sample. Test thoroughly after merging, especially code that interacts with Datastore list properties.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

The dependency update is correct. Consider pinning to the exact version (==) for consistency with other environments and to prevent potential issues from automatic minor version updates. Alternatively, if the goal is to allow updates within the 2.20.x series, use ~=2.20.0. It's important to document the project's dependency management strategy to clarify the intended behavior.

gunicorn==22.0.0
Werkzeug==3.0.3
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). Ensure the blog post examples and the associated tests in blog_test.py and wiki_test.py are updated and tested to reflect the dependency change.

Copy link

Choose a reason for hiding this comment

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

low

It's a good idea to add a comment explaining the reason for this version change. Specifically mentioning the bug fix will provide valuable context for anyone reviewing this file later. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

Since this requirements.txt is for a blog post example, adding a comment explaining the reason for the update, and referencing the associated bug fix (#575), would be especially helpful for readers trying to understand the code's context.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is a good practice. This version includes a bug fix for preserving list meanings. Test the sample application thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. Please refer to the release notes for this version and test thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

The update to 2.20.2 is correct. For better control over dependency versions, consider pinning to the exact version using ==. Alternatively, if you intend to use the latest 2.20.x release, use ~=2.20.0. This will prevent unexpected issues if a future 2.20.x release introduces breaking changes. It's also good practice to document your dependency management strategy in the project's documentation or README.

2 changes: 1 addition & 1 deletion datastore/cloud-client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). Run all tests in snippets_test.py, admin_test.py, tasks_test.py, query_filter_or_test.py, and query_multi_ineq_test.py to ensure the core datastore functionality remains unaffected. Pay close attention to tests involving list operations.

Copy link

Choose a reason for hiding this comment

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

low

Consider adding a comment to explain why this dependency was updated to 2.20.2. Referencing the bug fix will help others understand the change and its importance. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

A short comment explaining the version update would improve maintainability and provide context for others working with this code. Referencing the bug fix (#575) would be beneficial.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended. This version includes a bug fix for preserving list meanings. Test the sample application thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. Please refer to the release notes for this version and test thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

Correct update to 2.20.2. Consider explicitly pinning the version with == for reproducibility. If the intention is to automatically update to newer minor versions within the 2.20 series, use ~=2.20.0. This makes the dependency management strategy clear and helps avoid unexpected issues from breaking changes in minor releases.

2 changes: 1 addition & 1 deletion dlp/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
google-cloud-dlp==3.25.1
google-cloud-storage==2.9.0
google-cloud-pubsub==2.21.5
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). While this update is likely unrelated to DLP functionality, it's still good practice to run the DLP tests after merging to ensure no unforeseen issues arise.

Copy link

Choose a reason for hiding this comment

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

low

Adding a comment explaining the reason for the version update is beneficial for maintainability. Mentioning the bug fix will provide context for future reviews. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

To enhance readability and maintainability, consider adding a comment explaining the reason for this version update. A reference to the bug fix (#575) would be valuable.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is a good practice. This version includes a bug fix for preserving list meanings. Test the DLP snippets thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. While this is just a dependency update, it's a good idea to review the release notes for this version and test thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

The google-cloud-datastore dependency is correctly updated. Consider using == to pin the version for better control and reproducibility. Alternatively, if the project intends to use the latest minor version within the 2.20.x series, using ~=2.20.0 would be more appropriate. This helps avoid unexpected issues if a new minor version introduces breaking changes.

google-cloud-bigquery==3.27.0
2 changes: 1 addition & 1 deletion functions/v2/datastore/hello-datastore/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
functions-framework==3.5.0
google-events==0.11.0
google-cloud-datastore==2.20.1
google-cloud-datastore==2.20.2
Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended, per the PEP 8 style guide recommendation to keep dependencies up to date (https://peps.python.org/pep-0008/#id47). The bug fix in this release is relevant to Datastore functions, so ensure the tests in main_test.py cover the scenario described in the bug report (https://redirect.github.com/googleapis/python-datastore/issues/575).

Copy link

Choose a reason for hiding this comment

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

low

A comment explaining the reason for this version bump would be helpful. Specifically, referencing the bug fix will provide context for future maintainers. For example, you could add a comment like # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575) above or below this line. Per PEP 8, comments are recommended to explain the purpose of specific dependency versions.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Updated to 2.20.2 to fix list meaning preservation (see https://redirect.github.com/googleapis/python-datastore/issues/575)

Copy link

Choose a reason for hiding this comment

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

low

Adding an inline comment explaining the reason for this version bump (and referencing the bug fix #575) would be helpful for future maintainability and provide context for anyone working with this Cloud Function.

Suggested change
google-cloud-datastore==2.20.2
google-cloud-datastore==2.20.2 # Bug fix: Preserve list meanings (#575)

Copy link

Choose a reason for hiding this comment

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

low

Updating google-cloud-datastore to 2.20.2 is recommended. This version includes a bug fix for preserving list meanings. Test the Cloud Function thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Updated to google-cloud-datastore==2.20.2. Please refer to the release notes for this version and test thoroughly after merging.

Copy link

Choose a reason for hiding this comment

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

low

Bumping the version of the google-cloud-datastore package to 2.20.2 is a good practice to pick up the latest bug fixes and security updates, per the guidance in AUTHORING_GUIDE.md.

Copy link

Choose a reason for hiding this comment

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

low

Updated google-cloud-datastore to 2.20.2. This addresses a bug related to preserving list meanings (see issue #575).

Copy link

Choose a reason for hiding this comment

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

low

The dependency is correctly updated to 2.20.2. It's generally a good practice to pin the dependency to a specific version using == for reproducibility. If the project's policy is to use the latest minor version within the 2.20.x series, then using ~=2.20.0 would be appropriate. This helps avoid unexpected issues if a future minor version introduces breaking changes.

google-api-core==2.17.1
protobuf==4.25.5
cloudevents==1.11.0