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

Add App Engine flex new project wizard #2546

Open
wants to merge 17 commits into
base: chanseok-wip
Choose a base branch
from

Conversation

chanseokoh
Copy link
Contributor

@chanseokoh chanseokoh commented Oct 31, 2017

Fixes #2470.

This is a heads-up. It is based on #2545, so #2545 must go first. Also, I haven't added any tests. Changes in tes test files ATM are due to refactoring.

new _031

selection_028

selection_029

new app engine flexible jar project _026

The wizard has a combo to select a sample template. Spring Boot is one of two choices.

Everything seems to work end to end, but I need to more extensive testing.


flex.jar.wizard.name=Google App Engine Flexible Java JAR Project
flex.jar.wizard.description=Creates an App Engine Flexible Java project whose deploy artifact is a \
runnable "fat" Java archive (JAR).
Copy link
Contributor

Choose a reason for hiding this comment

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

I think just "fat" JAR is fine; i.e. don't need to spell out Java archive. Better yet

"Creates an App Engine Flexible Java project for the Java runtime" though I do wish the App Engine team would give these runtimes better names.

flex.wizard.description=Creates an App Engine Flexible Java project.
flex.war.wizard.name=Google App Engine Flexible Java WAR Project
flex.war.wizard.description=Creates an App Engine Flexible Java project whose deploy artifact is a \
web application archive (WAR).
Copy link
Contributor

Choose a reason for hiding this comment

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

WAR file; don't spell out web application archive; and you know; let's focus on the runtime here; not the deploy artifact. I.e. something like

"Creates an App Engine Flexible Java project for the Jetty runtime"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But we have a Tomcat runtime too. Deployable with "gcloud beta": https://github.com/GoogleCloudPlatform/tomcat-runtime#cloud-sdk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps "the Jetty/Tomcat runtime" will do.

@@ -26,6 +27,9 @@ deploy.assembly.test.source.remove.job=Removing test Java source folder from web
CREATE_AS_MAVEN_PROJECT=Create as Maven project
MAVEN_PROJECT_COORDINATES=Maven project coordinates
GROUP_ID=Group ID:
FLEX_JAR_SAMPLE_TEMPLATE=Sample template:
FLEX_JAR_SIMPLE_TEMPLATE=simple
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure "simple" is the right description here; though I'm not sure what is. Maybe Minimal? No Dependencies?

Ideally I'd like to replace this template with a Jetty based template, but I'm not sure we have time to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No Web Framework?

It's easy to add a Jetty template, BTW.

@codecov
Copy link

codecov bot commented Oct 31, 2017

Codecov Report

Merging #2546 into chanseok-wip will increase coverage by 0.03%.
The diff coverage is 62.92%.

Impacted file tree graph

@@                Coverage Diff                 @@
##             chanseok-wip    #2546      +/-   ##
==================================================
+ Coverage           72.63%   72.67%   +0.03%     
- Complexity           2381     2396      +15     
==================================================
  Files                 348      350       +2     
  Lines               13911    13963      +52     
  Branches             1389     1389              
==================================================
+ Hits                10104    10147      +43     
- Misses               3240     3250      +10     
+ Partials              567      566       -1
Impacted Files Coverage Δ Complexity Δ
...ct/standard/CreateAppEngineStandardWtpProject.java 100% <ø> (ø) 4 <0> (ø) ⬇️
...newproject/flex/CreateAppEngineFlexWtpProject.java 97.72% <ø> (ø) 10 <0> (ø) ⬇️
...ne/newproject/flex/AppEngineFlexWarWizardPage.java 50% <0%> (ø) 1 <0> (?)
...appengine/newproject/maven/MavenCoordinatesUi.java 92% <0%> (-1.88%) 14 <0> (ø)
...newproject/flex/CreateAppEngineFlexJarProject.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...e/appengine/newproject/AppEngineProjectConfig.java 97.56% <100%> (-2.44%) 22 <9> (+2)
...wproject/standard/AppEngineStandardWizardPage.java 96.55% <100%> (+0.12%) 7 <1> (+1) ⬆️
...newproject/flex/AppEngineFlexWarProjectWizard.java 52.94% <100%> (ø) 3 <1> (?)
...oject/standard/AppEngineStandardProjectWizard.java 71.87% <100%> (ø) 5 <1> (ø) ⬇️
...e/appengine/newproject/AppEngineProjectWizard.java 69.09% <100%> (ø) 7 <1> (ø) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 521bccb...db1ea58. Read the comment docs.

fail();
}

private boolean containsSegment(IPath path, String segment) {
Copy link
Contributor

Choose a reason for hiding this comment

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

static

flex.wizard.name=Google App Engine Flexible Java Project
flex.wizard.description=Creates an App Engine Flexible Java project.
flex.war.wizard.name=Google App Engine Flexible Java WAR Project
flex.war.wizard.description=Creates an App Engine Flexible Java project for the Jetty or Tomcat \
Copy link
Contributor

Choose a reason for hiding this comment

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

see email I sent you off-Github re Tomcat.

Copy link
Member

Choose a reason for hiding this comment

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

My 2¢: repeating "App Engine Flexible Java project" in the WAR and JAR descriptions doesn't help. This WAR description should mention "servlet-based", and the JAR description should mention "runnable jar".

@elharo elharo added the blocked label Nov 1, 2017
@elharo elharo removed the blocked label Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants