Skip to content

chore(gae): delete regions from migration/ndb/overview/main.py #13078

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

Conversation

eapl-gemugami
Copy link
Contributor

Description

Fixes Internal: b/390488769

Checklist

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Hi team,

I'm currently reviewing this pull request and will provide my feedback shortly. In the meantime, here's a summary of the changes for you and other reviewers to quickly get up to speed:

This pull request, submitted by @eapl-gemugami, aims to delete references to specific App Engine regions from the migration/ndb/overview sample. The intent is to simplify the sample and make it more generic, addressing internal issue b/390488769.

Here's a breakdown of the changes:

  • appengine/standard/migration/ndb/overview/README.md: Updated deployment instructions to reflect only Python 3.8 support, removing outdated instructions for Python 2.7 and 3.7. Specifically, lines 14-19 were removed.
  • appengine/standard/migration/ndb/overview/main.py: Removed several comment blocks related to region-specific configurations. These blocks were removed from lines 15, 28, 36, 51, 61, and 84.
  • appengine/standard/migration/ndb/overview/requirements-test.txt: Added six==1.17.0 and updated pytest version for Python 3 compatibility. Lines 3-6 were added.
  • appengine/standard/migration/ndb/overview/templates/index.html: A minor fix correcting a trailing space in line 46.

The author has confirmed that tests and lint checks passed. They've also followed the sample guidelines and updated the README.


And now, a little haiku to lighten the mood:

Code flows like a stream,
Cleaning up, a smoother path,
Review's gentle hand.

@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 20, 2025
@eapl-gemugami eapl-gemugami added the snippet-bot:force-run Force snippet-bot runs its logic label Jan 20, 2025
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jan 20, 2025
Copy link

snippet-bot bot commented Jan 20, 2025

Here is the summary of changes.

You are about to delete 4 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

@ghost ghost 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 removes outdated regions and updates the Python version to 3.8. The changes are well-organized and easy to follow. The updated README accurately reflects the new deployment instructions. The addition of six==1.17.0 to requirements-test.txt is a good practice for ensuring compatibility across different Python 3 versions. I appreciate the thoroughness of the checklist, confirming that tests and lint checks pass.

gcloud app deploy

To deploy and run this sample in App Engine standard for Python 3.7:
To deploy and run this sample in App Engine standard for Python 3.8:
Copy link

Choose a reason for hiding this comment

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

low

Since the code now targets Python 3.8, the README should specify Python 3.8 or later. Per the Authoring Guide, supporting a range of Python versions is preferred.

Suggested change
To deploy and run this sample in App Engine standard for Python 3.8:
To deploy and run this sample in App Engine standard for Python 3.8 or later:

@@ -43,4 +43,4 @@
<input type="submit" value="switch" />
</form>
</body>
</html >
</html>
Copy link

Choose a reason for hiding this comment

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

low

The HTML file is missing a doctype declaration. Adding <!DOCTYPE html> as the first line will help ensure that the page renders consistently across different browsers. Reference commonly used style guides, such as the W3C HTML validator.

<!DOCTYPE html>
<html>

@eapl-gemugami eapl-gemugami marked this pull request as ready for review January 20, 2025 19:41
@eapl-gemugami eapl-gemugami requested review from a team as code owners January 20, 2025 19:41
@glasnt glasnt merged commit d276537 into GoogleCloudPlatform:main Jan 21, 2025
11 checks passed
@eapl-gemugami eapl-gemugami deleted the paradalicea/chore/gae/delete-regions-from-migration-ndb-overview branch January 21, 2025 05:31
glasnt pushed a commit that referenced this pull request Jan 22, 2025
* chore(gae): delete regions from migration/ndb/overview/main.py

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

* chore(gae): fix whitespace in templates/index.html

* docs(gae): update README.md to a current Python 3 sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: appengine Issues related to the App Engine Admin API API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants