-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unused code in MyWidgetServiceStack #239
Comments
… On Feb 3, 2020, at 10:14 PM, Dave Moten ***@***.***> wrote:
https://github.com/aws-samples/aws-cdk-examples/blob/0612ac04cbfe46831ed4f077b38194d649a8fdea/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java#L38-L42
The above variable restApiRole is not used anywhere. What's the story?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
My bad. I misread your email and thought you said the variable above RestAPI Role. I assume that someone changed the example from an APIGW service integration to a Lambda Integration and didn’t remove the older parts in the Python or TS examples. When it was translated to Java, those artifacts remained.
…Sent from my iPad
On Feb 3, 2020, at 10:14 PM, Dave Moten ***@***.***> wrote:
https://github.com/aws-samples/aws-cdk-examples/blob/0612ac04cbfe46831ed4f077b38194d649a8fdea/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java#L38-L42
The above variable restApiRole is not used anywhere. What's the story?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
They probably tried to copy this example, then gave up.
https://github.com/aws-samples/aws-cdk-examples/blob/master/python/my-widget-service/my_widget_service/my_widget_service_stack.py#L23
…Sent from my iPad
On Feb 3, 2020, at 10:14 PM, Dave Moten ***@***.***> wrote:
https://github.com/aws-samples/aws-cdk-examples/blob/0612ac04cbfe46831ed4f077b38194d649a8fdea/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java#L38-L42
The above variable restApiRole is not used anywhere. What's the story?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Given that this project is put forward as a official examples, are the examples tested (or just translated and thrown in)? |
Thank you for the catch. This looks like it warrants a more thorough sweep of the Java examples to ensure they are of an acceptable quality.
These examples are tested via a CI test suite, but it seems linting is not presently run on the Java examples. |
Was fixed |
|
aws-cdk-examples/java/my-widget-service/src/main/java/software/amazon/awscdk/examples/MyWidgetServiceStack.java
Lines 38 to 42 in 0612ac0
The above variable
restApiRole
is not used anywhere. What's the story?The text was updated successfully, but these errors were encountered: