From c2c50a773161c9d43674cf59120d8b2b87703cc5 Mon Sep 17 00:00:00 2001 From: siegerts Date: Thu, 18 Mar 2021 12:37:53 -0400 Subject: [PATCH 1/3] chore(issue templates): reorder --- ...{new_bug_report.yaml => 1.bug_report.yaml} | 6 +- ...eature_request.md => 2.feature_request.md} | 0 ...{usage-question.md => 3.usage-question.md} | 0 .github/ISSUE_TEMPLATE/{rfc.md => 4.rfc.md} | 0 .github/ISSUE_TEMPLATE/5.bug_report.md | 87 ++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 90 ------------------- 6 files changed, 89 insertions(+), 94 deletions(-) rename .github/ISSUE_TEMPLATE/{new_bug_report.yaml => 1.bug_report.yaml} (99%) rename .github/ISSUE_TEMPLATE/{feature_request.md => 2.feature_request.md} (100%) rename .github/ISSUE_TEMPLATE/{usage-question.md => 3.usage-question.md} (100%) rename .github/ISSUE_TEMPLATE/{rfc.md => 4.rfc.md} (100%) create mode 100644 .github/ISSUE_TEMPLATE/5.bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/1.bug_report.yaml similarity index 99% rename from .github/ISSUE_TEMPLATE/new_bug_report.yaml rename to .github/ISSUE_TEMPLATE/1.bug_report.yaml index 67af1522298..fa2e40d2d37 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/1.bug_report.yaml @@ -1,4 +1,4 @@ -name: New Bug report +name: Bug report description: Create a report to help us improve Amplify JS title: '' issue_body: true @@ -10,9 +10,7 @@ body: - type: markdown attributes: value: | - For reference, the current versions of the Amplify JS packages are listed below. - - Please verify your issue against the latest version(s). + For reference, the current versions of the Amplify JS packages are listed below. Please verify your issue against the latest version(s) of the relevant package(s).
Click to expand version list diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/2.feature_request.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/ISSUE_TEMPLATE/2.feature_request.md diff --git a/.github/ISSUE_TEMPLATE/usage-question.md b/.github/ISSUE_TEMPLATE/3.usage-question.md similarity index 100% rename from .github/ISSUE_TEMPLATE/usage-question.md rename to .github/ISSUE_TEMPLATE/3.usage-question.md diff --git a/.github/ISSUE_TEMPLATE/rfc.md b/.github/ISSUE_TEMPLATE/4.rfc.md similarity index 100% rename from .github/ISSUE_TEMPLATE/rfc.md rename to .github/ISSUE_TEMPLATE/4.rfc.md diff --git a/.github/ISSUE_TEMPLATE/5.bug_report.md b/.github/ISSUE_TEMPLATE/5.bug_report.md new file mode 100644 index 00000000000..1e241d405bf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/5.bug_report.md @@ -0,0 +1,87 @@ +--- +name: Old Bug report +about: Create a report to help us improve +title: '' +labels: to-be-reproduced +assignees: '' +---**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: + +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Code Snippet** +Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. (Be sure to remove any sensitive data) + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**What is Configured?** +If applicable, please provide what is configured for Amplify CLI: + +- Which steps did you follow via Amplify CLI when configuring your resources. +- Which resources do you have configured? + - If applicable, please provide your `aws-exports` file: + ``` + const awsmobile = { + "aws_project_region": "us-east-1", + "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", + "aws_cognito_region": "us-east-1", + "aws_user_pools_id": "us-east-1_xxx", + "aws_user_pools_web_client_id": "xxxx", + "oauth": {} + }; + ``` + - If applicable, please provide your manual configuration example: + ``` + { + Auth: { + identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', + region: 'XX-XXXX-X', + identityPoolRegion: 'XX-XXXX-X', + userPoolId: 'XX-XXXX-X_abcd1234', + userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', + mandatorySignIn: false, + authenticationFlowType: 'USER_PASSWORD_AUTH', + oauth: { + domain: 'your_cognito_domain', + scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], + redirectSignIn: 'http://localhost:3000/', + redirectSignOut: 'http://localhost:3000/', + responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code + } + } + } + ``` +- If applicable, provide more configuration data, for example for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx` (Be sure to remove any sensitive data) + +
+ Environment + + + +``` +npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages +``` + +
+ +**Smartphone (please complete the following information):** + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. + +**_You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app._** diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index fc854e7c513..00000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: to-be-reproduced -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Code Snippet** -Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. (Be sure to remove any sensitive data) - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**What is Configured?** -If applicable, please provide what is configured for Amplify CLI: -* Which steps did you follow via Amplify CLI when configuring your resources. -* Which resources do you have configured? - * If applicable, please provide your `aws-exports` file: - ``` - const awsmobile = { - "aws_project_region": "us-east-1", - "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", - "aws_cognito_region": "us-east-1", - "aws_user_pools_id": "us-east-1_xxx", - "aws_user_pools_web_client_id": "xxxx", - "oauth": {} - }; - ``` - * If applicable, please provide your manual configuration example: - ``` - { - Auth: { - identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', - region: 'XX-XXXX-X', - identityPoolRegion: 'XX-XXXX-X', - userPoolId: 'XX-XXXX-X_abcd1234', - userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', - mandatorySignIn: false, - authenticationFlowType: 'USER_PASSWORD_AUTH', - oauth: { - domain: 'your_cognito_domain', - scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], - redirectSignIn: 'http://localhost:3000/', - redirectSignOut: 'http://localhost:3000/', - responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code - } - } - } - ``` -* If applicable, provide more configuration data, for example for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx` (Be sure to remove any sensitive data) - - -
- Environment - - - -``` -npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages -``` - -
- -**Smartphone (please complete the following information):** - -- Device: [e.g. iPhone6] -- OS: [e.g. iOS8.1] -- Browser [e.g. stock browser, safari] -- Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. - -**_You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app._** \ No newline at end of file From dbcc023d8b376969ed2f7b8a66a88a2619c04f54 Mon Sep 17 00:00:00 2001 From: siegerts Date: Thu, 18 Mar 2021 12:56:29 -0400 Subject: [PATCH 2/3] fix auto format --- .github/ISSUE_TEMPLATE/5.bug_report.md | 4 +++- .prettierignore | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/5.bug_report.md b/.github/ISSUE_TEMPLATE/5.bug_report.md index 1e241d405bf..fd26f14f260 100644 --- a/.github/ISSUE_TEMPLATE/5.bug_report.md +++ b/.github/ISSUE_TEMPLATE/5.bug_report.md @@ -4,7 +4,9 @@ about: Create a report to help us improve title: '' labels: to-be-reproduced assignees: '' ----**Describe the bug** +--- + +**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** diff --git a/.prettierignore b/.prettierignore index dd4fc362a9c..e92f704c401 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,3 +9,4 @@ package-lock.json www .stencil PULL_REQUEST_TEMPLATE.md +ISSUE_TEMPLATE/*.md From 2bf6d3f7431a6ce94d2bac68aa74a2668be40a1e Mon Sep 17 00:00:00 2001 From: siegerts Date: Thu, 18 Mar 2021 12:57:36 -0400 Subject: [PATCH 3/3] update(issue form) remove prod checkbox --- .github/ISSUE_TEMPLATE/1.bug_report.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.yaml b/.github/ISSUE_TEMPLATE/1.bug_report.yaml index fa2e40d2d37..72360b8b835 100644 --- a/.github/ISSUE_TEMPLATE/1.bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/1.bug_report.yaml @@ -10,7 +10,7 @@ body: - type: markdown attributes: value: | - For reference, the current versions of the Amplify JS packages are listed below. Please verify your issue against the latest version(s) of the relevant package(s). + For reference, the current versions of the Amplify JS packages are listed below. Please verify your issue against the latest version(s) of the relevant package(s):
Click to expand version list @@ -59,13 +59,6 @@ body: attributes: value: | --- - - type: checkboxes - attributes: - label: Is this a production issue? - description: | - Are you experiencing this issue with a production application where end users are affected? - options: - - label: (check box if yes) - type: markdown attributes: value: |