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

docs(appsync): correct the schema definition for the sample code #32889

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

azarboon
Copy link
Contributor

@azarboon azarboon commented Jan 13, 2025

Issue #32848

Closes #32848

Reason for this change
The current sample schema is incorrect and causes the stack deployment to fail.

Description of changes
I modified the sample GraphQL schema so that it is successfully deployed.

Describe any new or updated permissions being added
<!— What new or updated IAM permissions are needed to support the changes being introduced ? -->

Description of how you validated changes
I was able to successfully deploy the stack after making the changes I already proposed in the PR.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team January 13, 2025 14:36
@github-actions github-actions bot added bug This issue is a bug. p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Jan 13, 2025
@azarboon
Copy link
Contributor Author

@kaizencc, could you please review this PR? The previous one had some issues and required constant updates. I’ve created a new PR from a recently updated fork and a new branch. I hope this resolves the issues, and it works as expected this time.

fixed the typo
@azarboon
Copy link
Contributor Author

@pahud can you please review this PR?

@samson-keung
Copy link
Contributor

samson-keung commented Jan 17, 2025

@azarboon there are 2 issues, sort of.

About the first that you mentioned, where the PR keeps saying the branch is out-of-date. This is not a problem. The reason this happens is because the aws-cdk repo has a lot of commits all the time so PR branches are usually out-of-date very quickly. But that is okay. As long as the PR does not have conflicts with the new merged commits. Once the PR is approved to merge, we have automation set up that will update the PR with latest main branch automatically and handle the merge into main. So don't worry about it!

However, for this PR, I see there is an error on the Codecov check. To work around the issue, can you try closing this PR, then re-open a new one from the same branch you have?

@azarboon
Copy link
Contributor Author

@azarboon there are 2 issues, sort of.

About the first that you mentioned, where the PR keeps saying the branch is out-of-date. This is not a problem. The reason this happens is because the aws-cdk repo has a lot of commits all the time so PR branches are usually out-of-date very quickly. But that is okay. As long as the PR does not have conflicts with the new merged commits. Once the PR is approved to merge, we have automation set up that will update the PR with latest main branch automatically and handle the merge into main. So don't worry about it!

However, for this PR, I see there is an error on the Codecov check. To work around the issue, can you try closing this PR, then re-open a new one from the same branch you have?

@samson-keung Thanks for your response and explanation. Following your instructions, I’ve created a new PR (#32982). As discussed in another issue, I’m using Windows, so to minimize potential issues, I created the new PR via the GitHub UI. Unfortunately, I couldn’t reuse the previous branch and had to create a new one instead. The change is minimal and only affects the README file, so it shouldn’t impact any tests.

Let me know your advice.

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.48%. Comparing base (2b2443d) to head (4781427).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #32889   +/-   ##
=======================================
  Coverage   81.48%   81.48%           
=======================================
  Files         226      226           
  Lines       13768    13768           
  Branches     2416     2416           
=======================================
  Hits        11219    11219           
  Misses       2271     2271           
  Partials      278      278           
Flag Coverage Δ
suite.unit 81.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
packages/aws-cdk 80.89% <ø> (ø)
packages/aws-cdk-lib/core 82.10% <ø> (ø)

@azarboon
Copy link
Contributor Author

@azarboon there are 2 issues, sort of.

About the first that you mentioned, where the PR keeps saying the branch is out-of-date. This is not a problem. The reason this happens is because the aws-cdk repo has a lot of commits all the time so PR branches are usually out-of-date very quickly. But that is okay. As long as the PR does not have conflicts with the new merged commits. Once the PR is approved to merge, we have automation set up that will update the PR with latest main branch automatically and handle the merge into main. So don't worry about it!

However, for this PR, I see there is an error on the Codecov check. To work around the issue, can you try closing this PR, then re-open a new one from the same branch you have?

@samson-keung To prevent future misunderstandings, could you please elaborate on where you see the Codedev error? From my side, there are no failed automated checks. Please see the screenshot below for reference:

image

Additionally, here is the automated response from Codedev:

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.48%. Comparing base (2b2443d) to head (4781427).

Additional details and impacted files

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 4781427
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@samson-keung
Copy link
Contributor

@azarboon Thanks. I see that check re-ran after you updated the branch again. And this time it passed. The CodeBuild job also re-ran but since I have approved this PR, once the CodeBuild is done, this PR will be auto-merged.

Copy link
Contributor

mergify bot commented Jan 17, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e8e058c into aws:main Jan 17, 2025
20 checks passed
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2025
@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(appsync): Deployment Error 'getDemosConsistent' Field Not Found on Query Type
3 participants