Skip to content

feat(AWS API Gateway): Remove deprecation for old naming convention - #9160

Merged
pgrzesik merged 1 commit into
masterfrom
remove-api-gateway-naming-deprecation
Mar 22, 2021
Merged

pgrzesik merged 1 commit into
masterfrom
remove-api-gateway-naming-deprecation

Conversation

@pgrzesik

Copy link
Copy Markdown
Contributor

As discussed, this PR removes deprecation log for not opting in with new naming convention for API Gateway.

@codecov

codecov Bot commented Mar 22, 2021

Copy link
Copy Markdown

Codecov Report

Merging #9160 (b4e9bda) into master (2712f3b) will decrease coverage by 0.00%.
The diff coverage is n/a.

❗ Current head b4e9bda differs from pull request most recent head 5952ec3. Consider uploading reports for the commit 5952ec3 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9160      +/-   ##
==========================================
- Coverage   87.01%   87.01%   -0.01%     
==========================================
  Files         293      293              
  Lines       11285    11282       -3     
==========================================
- Hits         9820     9817       -3     
  Misses       1465     1465              
Impacted Files Coverage Δ
...ins/aws/package/compile/events/apiGateway/index.js 100.00% <ø> (ø)

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 2712f3b...5952ec3. Read the comment docs.

@pgrzesik
pgrzesik requested a review from medikoo March 22, 2021 11:56

@medikoo medikoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@pgrzesik
pgrzesik merged commit b530d6a into master Mar 22, 2021
@pgrzesik
pgrzesik deleted the remove-api-gateway-naming-deprecation branch March 22, 2021 13:20
@G-Rath

G-Rath commented Mar 23, 2021

Copy link
Copy Markdown
Contributor

@pgrzesik could we get a link to the discussion? I'm interested in knowing more about this as it now means I've now got to decide which naming convention to go with :)

@pgrzesik

Copy link
Copy Markdown
Contributor Author

Hey @G-Rath 👋 There's no link to the specific discussion, but as we're slowly prepping to next major release in a few months, we've determined that renaming of API Gateway that would be enforced by removing this deprecation: https://github.com/serverless/serverless/blob/master/docs/deprecations.md#api-gateway-naming-will-be-changed-to-service-stage is going to potentially make it hard to migrate for people with production workloads because it requires the replacement of API Gateway resource. As the benefits of that change are mostly cosmetic and organizational (it does not impact any actual functionalities, but makes the naming scheme more consistent with other resources), we've decided to not enforce that change with v3, hence the removal of the configured deprecation. You can still use provider.apiGateway.shouldStartNameWithService setting. Hope that clears it out at least a little bit - please let me know if you have any other questions or feedback 👍

@medikoo

medikoo commented Mar 24, 2021

Copy link
Copy Markdown
Contributor

@G-Rath Adding to what @pgrzesik said:

  • We've found that a lot of Framework users (ca 50%) have this deprecation shown and they do not address it for some reason
  • We consider Rest API a legacy way of configuring HTTP API's, and that users should rather rely on httpApi event (which we will push forward and promote more in a future). Technically it's wiser to ask users to move to httpAPI instead of asking them to apply a problematic reconfiguration of http - From my perspective it's the main reason that makes our revert of decision valid

philbates35 pushed a commit to philbates35/serverless that referenced this pull request Jan 27, 2023
The plan was to make the default shouldStartNameWithService to
be true in v3, but that decision was reverted in
serverless#9160 (comment)
and the default value in v3 is still actually false.
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.

3 participants