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

Update folder structure for flex java 8 #7741

Merged
merged 3 commits into from
Mar 15, 2023

Conversation

kappratiksha
Copy link
Contributor

We need to update the structure of flexible folder to reflect apps as per the java version. We need to copy the java8 apps under flexible/java-8.
P.S. Not deleting the files under flexible/ right now as we need to update the documentation to use the flexible/java-8/ apps. There will be a followup PR for cleanup.

@kappratiksha kappratiksha requested review from a team and yoshi-approver as code owners March 14, 2023 00:22
@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 Mar 14, 2023
@snippet-bot
Copy link

snippet-bot bot commented Mar 14, 2023

Here is the summary of changes.

You are about to add 35 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

@jinglundong jinglundong left a comment

Choose a reason for hiding this comment

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

LGTM. I verified that all of the changes are under flexible/java-8. https://screenshot.googleplex.com/AhGRVYsVRPkXUAa. There's no feasible way for me to check if they are identical to the existing samples. I would assume you copied them by cp. To be super cautious, you could compare the directory size or number of files/words between the old and new copy.

@kappratiksha
Copy link
Contributor Author

LGTM. I verified that all of the changes are under flexible/java-8. https://screenshot.googleplex.com/AhGRVYsVRPkXUAa. There's no feasible way for me to check if they are identical to the existing samples. I would assume you copied them by cp. To be super cautious, you could compare the directory size or number of files/words between the old and new copy.

I used diff to check for the differences: https://screenshot.googleplex.com/7ux9TwYRfFkGySj

@jinglundong
Copy link

Great! Thanks for sharing the diff result.

Copy link
Contributor

@averikitsch averikitsch left a comment

Choose a reason for hiding this comment

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

For problematic region tags, if used in the docs please add the gae_flex_ prefix or remove them completely:

There are 7 possible violations for not having product prefix.
flexible/java-8/errorreporting/src/main/java/com/example/flexible/errorreporting/ErrorReportingExample.java:34, tag flex_error_reporting
flexible/java-8/helloworld/build.gradle:14, tag gradle
flexible/java-8/helloworld/build.gradle:43, tag gretty
flexible/java-8/helloworld/build.gradle:49, tag model
flexible/java-8/memcache/pom.xml:52, tag dependencies
flexible/java-8/memcache/src/main/appengine/app.yaml:8, tag config
flexible/java-8/memcache/src/main/java/com/example/memcache/MemcacheServlet.java:32, tag example

# limitations under the License.

# Fail on non-zero return and print command to stdout
set -xe
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have just copied over the existing projects from the flexible/ folder to flexible/java-8 and this file was already there as a part of #538. I think it is okay to leave it as is since this repository is for samples. wdyt?

@jinglundong
Copy link

I would suggest you double check or at least notify the Docs team before changing the region tags. They might be used by the docs to locate the code blocks.

@averikitsch
Copy link
Contributor

I would suggest you double check or at least notify the Docs team before changing the region tags. They might be used by the docs to locate the code blocks.

Since this is a copy to a new directory, this shouldn't be an issue until you delete the old duplicates.

@kappratiksha kappratiksha merged commit 2e4b5f5 into GoogleCloudPlatform:main Mar 15, 2023
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