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

fix(AWS API Gateway): Ensure proper apiId resolution #10221

Merged
merged 1 commit into from Nov 10, 2021

Conversation

pgrzesik
Copy link
Contributor

@pgrzesik pgrzesik commented Nov 10, 2021

Closes: #10220

related: #10177

cc @vicary

@vicary
Copy link
Contributor

vicary commented Nov 10, 2021

@pgrzesik Thanks heaps!

@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #10221 (5ccc594) into master (1829550) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10221   +/-   ##
=======================================
  Coverage   85.38%   85.38%           
=======================================
  Files         339      339           
  Lines       13836    13836           
=======================================
  Hits        11814    11814           
  Misses       2022     2022           
Impacted Files Coverage Δ
.../compile/events/apiGateway/lib/hack/updateStage.js 95.06% <ø> (ø)

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 1829550...5ccc594. Read the comment docs.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Why this was not picked by test, which is supposed to test that case?

@pgrzesik
Copy link
Contributor Author

Why this was not picked by test, which is supposed to test that case?

When investigating, I've realized that it's not really possible to test it with unit tests, as the use case where the apiName has to be generated and is not available in compiled CloudFormation does not happen if no plugins are involved so the test wasn't really covering that case. I've changed the test to be more generic and left it as we don't have too many runServerless tests that cover that part of logic.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Thanks for explanations, makes sense

@pgrzesik pgrzesik merged commit 95f3a56 into master Nov 10, 2021
@pgrzesik pgrzesik deleted the fix-api-id-resolution-in-update-stage branch November 10, 2021 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest build V2.66.0 is causing deployment failures for services using serverless prod
3 participants