Skip to content

docs: Improve documentation around deprecations #8665 - #8719

Merged
pgrzesik merged 5 commits into
serverless:masterfrom
vinothmdev:master
Jan 8, 2021
Merged

pgrzesik merged 5 commits into
serverless:masterfrom
vinothmdev:master

Conversation

@vinothmdev

Copy link
Copy Markdown
Contributor

Implemented the proposed in issue #8665. Please review.

Closes: #8665

@codecov

codecov Bot commented Jan 6, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #8719 (eb7f089) into master (30d89d1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8719   +/-   ##
=======================================
  Coverage   87.42%   87.42%           
=======================================
  Files         254      254           
  Lines        9615     9616    +1     
=======================================
+ Hits         8406     8407    +1     
  Misses       1209     1209           
Impacted Files Coverage Δ
lib/classes/CLI.js 93.03% <100.00%> (+0.03%) ⬆️

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 30d89d1...eb7f089. Read the comment docs.

@pgrzesik pgrzesik 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.

Thank you @vinothmdev 🎉 You're on a good path, please see my comments and let me know what you think

Comment thread lib/classes/CLI.js Outdated
this.consoleLog(chalk.dim('* Set SLS_DEBUG=* to see debugging logs'));
this.consoleLog(chalk.dim('* Set SLS_WARNING_DISABLE=* to hide warnings from the output'));
this.consoleLog(
chalk.dim('* Set SLS_DEPRECATION_DISABLE=* to disable deprications if required')

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.

I would rewrite it as * Set SLS_DEPRECATION_DISABLE=* to disable deprecation logs

Comment thread docs/deprecations.md Outdated

Please use `bin/serverless.js` instead. `bin/serverless` will be removed with v2.0.0

## To Disable specific Deprecations

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.

I think it would be better to move that section to the top of the document, right after # Serverless Framework Deprecations. I would also call this section: How to disable specific deprecations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe It would be better if it

How to disable specific deprecation logs

Comment thread docs/deprecations.md Outdated

## To Disable specific Deprecations

To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable.

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.

I would write this whole section in one paragraph, without putting it on new lines, so something like this:

To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable. Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations. If you want to disable specific depreciations set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`.

Comment thread docs/deprecations.md Outdated
Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations.
If you want to disable specific depreications set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`.

## List of Deprecation Codes

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.

Instead of listing the codes as a separate section, I believe it might be better to add Deprecation code: CODE in each existing section, for example:

<a name="AWS_ALB_ALLOW_UNAUTHENTICATED"><div>&nbsp;</div></a>

## AWS ALB `allowUnauthenticated`

Deprecation code: `AWS_ALB_ALLOW_UNAUTHENTICATED`

Please use `onUnauthenticatedRequest` instead. `allowUnauthenticated` will be removed with v2.0.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your feedback, I have made the changes according to them.

@pgrzesik pgrzesik 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.

Thanks 🙇 I only have a few small comments and we should be good to go 🙌

Comment thread docs/deprecations.md Outdated

## How to disable specific deprecation logs

To disable specific deprecations set `SLS_DEPRECATION_DISABLE` environment variable. Setting `SLS_DEPRECATION_DISABLE=*` will disable all deprecations. If you want to disable specific depreications set `SLS_DEPRECATION_DISABLE=CODE1,CODE2`.

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.

Typo: depreications -> deprecations

Comment thread docs/deprecations.md

## Support for `enableLocalInstallationFallback` setting is to be removed

Deprecation code: `DISABLE_LOCAL_INSTALLATION_FALLBACK_SETTING`

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.

Let's also add these codes below, for deprecations that were removed with v2.0.0, as some people might still be on lower versions for some reason

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have updated both the review comments. Please check and let me know your feedback. Thank you

@pgrzesik pgrzesik 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.

Well done @vinothmdev, thank you 👍

@pgrzesik pgrzesik changed the title Improve documentation around deprecations #8665 docs: Improve documentation around deprecations #8665 Jan 8, 2021
@pgrzesik
pgrzesik merged commit 1c48b64 into serverless:master Jan 8, 2021
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.42%. Comparing base (30d89d1) to head (eb7f089).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8719   +/-   ##
=======================================
  Coverage   87.42%   87.42%           
=======================================
  Files         254      254           
  Lines        9615     9616    +1     
=======================================
+ Hits         8406     8407    +1     
  Misses       1209     1209           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Improve documentation around deprecations

3 participants