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: add gh issue and pr templates #164

Merged
merged 4 commits into from
Jun 17, 2021
Merged

chore: add gh issue and pr templates #164

merged 4 commits into from
Jun 17, 2021

Conversation

aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Jun 15, 2021

Description of changes:

  • Added issue and pull request templates (needed before going public)
  • Bootstrap some debugging docs (this will need work still, especially after we revamp the logging a bit and provide a way to configure SDK request/response logging levels)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aajtodd aajtodd requested review from kggilmer, ianbotsf and kiiadi June 15, 2021 16:28
Copy link
Contributor

@ianbotsf ianbotsf left a comment

Choose a reason for hiding this comment

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

Looks great, minor feedback only.

@@ -0,0 +1,13 @@
---
name: 📕 Documentation Issue
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Use sentence case for issue names

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't the name of the issue created it's the template name. You can see an example by going to the java sdk and clicking on create issue

@@ -0,0 +1,37 @@
---
name: Feature Request
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Use sentence case for issue names

@@ -0,0 +1,37 @@
---
name: Feature Request
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: If you're going to use emojis for 📕 Documentation issue and 🐛 Bug report, I suggest you go with 💡 Feature request here!

@@ -0,0 +1,15 @@
<!--- Provide a general summary of your changes in the Title above -->

## Issue #
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix: The trailing # doesn't render on GitHub because headings have optional closing hashes. Use either ## Issue \# or possibly ## Issue # #.

@@ -0,0 +1,55 @@
# Debugging SDK Requests
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: This doc covers more than just requests. We could simply call it "Debugging" or "Debugging the SDK".

Comment on lines 42 to 55
```kotlin

try {

...
} catch(ex: AwsServiceException) {
val httpResp = ex.sdkErrorMetadata.protocolResponse as? HttpResponse
if (httpResp != null) {
println(httpResp.headers)
println(httpResp.body.readAll()?.decodeToString())
}
}

```
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Unnecessary vertical whitespace

Copy link
Contributor

@kggilmer kggilmer left a comment

Choose a reason for hiding this comment

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

some suggestions and nits, LGTM


<!--- Include full errors, uncaught exceptions, stack traces, and relevant logs -->
<!--- To turn on SDK logging, follow instructions here: http://github.com/aws-sdk-kotlin/tree/main/docs/debugging.md -->
<!--- If service responses are relevant, please include wirelogs -->
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion

some warning about sensitive data in wire logs. Maybe "If service responses are relevant, please include wirelogs after removing any sensitive content"

<!--- If service responses are relevant, please include wirelogs -->

## Steps to Reproduce
<!--- Provide a self-contained, concise snippet of code that can be used to reproduce the issue -->
Copy link
Contributor

Choose a reason for hiding this comment

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

comment/suggestion

Sometimes this just isn't possible or reasonable given the customer's level of understanding of the SDK. Maybe prefix like "If possible, provide a self-contained and concise snippet of code that can be used to reproduce the issue"


* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue, please leave a comment
Copy link
Contributor

Choose a reason for hiding this comment

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

comment

This is outside of the scope of the PR but do we want to first tag issues as "help wanted" or "contributions welcome" or something to indicate what types of issues we'd like help with? If we go this route, then we make the first choice as to what we'd be interested in taking from the community. On the other hand, this kind of gating could reduce 3P participation.

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 don't think they are mutually exclusive. If someone wants to pick up an issue that isn't marked as "help wanted" then I say go for it. (Also we have a help wanted label already FYI)

<!--- A clear and concise description of the feature you are proposing -->

## Is your Feature Request related to a problem?
<!--- A description of the issue, e.g. I'm always frustrated when... -->
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

this seems unnecessarily negative. how about "A description of the issue, e.g. wouldn't it be great if..."

<!--- Any alternative solutions or features you've considered -->

## Additional Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Maybe reword as "How has the lack of this feature affected you?"

@@ -23,7 +23,7 @@ reported the issue. Please try to include as much information as you can. Detail
## Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

1. You are working against the latest source on the *master* branch.
1. You are working against the latest source on the *main* branch.
Copy link
Contributor

Choose a reason for hiding this comment

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

💥

The log level can be adjusted up as needed to DEBUG, INFO, WARN, or ERROR. [See here](http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html) for all properties for the simple logger.


#### CRT Logs
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL

@aajtodd aajtodd merged commit e8221f7 into main Jun 17, 2021
@aajtodd aajtodd deleted the chore-gh-templates branch June 17, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants