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(gae): rename regions in standard/storage/appengine-client/main.py #13055

Conversation

eapl-gemugami
Copy link
Contributor

Description

Fixes Internal:
b/347350771
b/347350870
b/347349966
b/347350558
b/347350538
b/347350224
b/347350515

Checklist

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. labels Jan 14, 2025
Copy link

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

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

Hi @eapl-gemugami and reviewers,

I'm currently reviewing this pull request and will provide feedback shortly. In the meantime, here's a summary to help everyone get up to speed:

This pull request, "chore(gae): rename regions in standard/storage/appengine-client/main.py", aims to rename regions in the main.py file within the Google App Engine standard environment storage client sample. The changes address several internal issues (b/347350771, b/347350870, b/347349966, b/347350558, b/347350538, b/347350224, b/347350515).

Here's a breakdown of the changes:

  • appengine/standard/storage/appengine-client/main.py: This file has undergone several modifications. The primary changes involve renaming various comment markers throughout the file. For example:
    • # [START sample] is renamed to # [START gae_storage_sample] (line 17)
    • # [START imports] is renamed to # [START gae_storage_imports] (line 20)
    • # [START retries] and # [END retries] are removed (lines 30-36)
    • # [START get_default_bucket] is renamed to # [START gae_storage_get_default_bucket] (line 42)
    • # [END get_default_bucket] is renamed to # [END gae_storage_get_default_bucket] (line 52)
    • # [START write] is renamed to # [START gae_storage_write] (line 82)
    • # [END write] is renamed to # [END gae_storage_write] (line 98)
    • # [START read] is renamed to # [START gae_storage_read] (line 104)
    • # [END read] is renamed to # [END gae_storage_read] (line 112)
    • # [START list_bucket] is renamed to # [START gae_storage_list_bucket] (line 129)
    • # [END list_bucket] is renamed to # [END gae_storage_list_bucket] (line 151)
    • # [START delete_files] and # [END delete_files] are removed (lines 165-176)
    • # [END sample] is renamed to # [END gae_storage_sample] (line 180)
  • appengine/standard/storage/appengine-client/requirements-test.txt: This file has been updated to add support for Python 3, including adding pytest==8.3.2, WebTest==3.0.1, and six==1.16.0 (lines 4-7).

The author has indicated that all tests and lint checks have passed.

I'll be back soon with a more detailed review.


Small changes, big impact,
Code flows like a gentle stream,
Bugs swim away now.

@eapl-gemugami eapl-gemugami added snippet-bot:force-run Force snippet-bot runs its logic and removed api: appengine Issues related to the App Engine Admin API API. samples Issues that are directly related to samples. labels Jan 14, 2025
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jan 14, 2025
Copy link

snippet-bot bot commented Jan 14, 2025

Here is the summary of changes.

You are about to add 6 region tags.
You are about to delete 8 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

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

This change renames regions in the provided file. It also updates the requirements-test.txt file to add missing dependencies and support Python 3. Overall, the changes are well-structured and address the specified issues.

appengine/standard/storage/appengine-client/main.py Outdated Show resolved Hide resolved
@eapl-gemugami
Copy link
Contributor Author

@code-review-assist review

Copy link

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

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

This pull request renames regions in main.py and updates dependencies in requirements-test.txt to add support for Python 3. These changes are well-organized and easy to understand. The commit message and PR description clearly explain the purpose and context of the changes. The updated dependencies in requirements-test.txt ensure that tests are run for both Python 2 and Python 3, which is a good practice. Here are a few minor suggestions for improvement based on PEP 8, the Google Python Style Guide, and general Python best practices:

@eapl-gemugami eapl-gemugami dismissed code-review-assist[bot]’s stale review January 14, 2025 17:22

I've applied the change, but the request is not being updated.

@eapl-gemugami eapl-gemugami marked this pull request as ready for review January 14, 2025 18:05
@eapl-gemugami eapl-gemugami requested review from a team as code owners January 14, 2025 18:05
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 15, 2025
Copy link
Contributor

@iennae iennae left a comment

Choose a reason for hiding this comment

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

love to see the updates for Python 3!

@iennae iennae merged commit b14a1d5 into GoogleCloudPlatform:main Jan 16, 2025
10 of 11 checks passed
@eapl-gemugami eapl-gemugami deleted the paradalicea/chore/gae/fix-regions-in-storage-appengine-client-main branch January 16, 2025 20:30
glasnt pushed a commit that referenced this pull request Jan 22, 2025
…py (#13055)

* chore(gae): add support for Python 3 to requirements-test.txt

* chore(gae): rename regions in appengine-client/main.py

* chore(gae): fix typo in region tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants