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

Fixes a usage of deprecated 'http.enabled' to the new 'api.enabled' #13380

Merged
merged 2 commits into from
Nov 15, 2021

Conversation

andsel
Copy link
Contributor

@andsel andsel commented Nov 2, 2021

Release notes

[rn:skip]

What does this PR do?

With #13308 configuration namespace that started with http. was renamed to api., this commit fix a usage left behind.
Use the new api.enabled setting in one place instead of the deprecated http.enable.

Why is it important/What is the impact to the user?

Avoid polluting Logstash logs with warning messages like:

[WARN ][logstash.settings        ] The value of setting `api.enabled` has been queried by its deprecated alias `http.enabled`. Code should be updated to query `api.enabled` instead

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

yaauie
yaauie previously requested changes Nov 5, 2021
Copy link
Member

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

One typo in the spec. Once resolved this looks good, and will need to be backported to 8.0, and 7.16.

@andsel andsel requested a review from yaauie November 8, 2021 08:03
@andsel andsel force-pushed the fix/missed_api_enabled_renames branch from 15e1a92 to a440731 Compare November 8, 2021 08:07
@yaauie yaauie dismissed their stale review November 11, 2021 17:41

requested changes were resolved

Copy link
Member

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

LGTM 🦖

@andsel andsel force-pushed the fix/missed_api_enabled_renames branch from a440731 to e78f19d Compare November 15, 2021 08:11
@andsel andsel merged commit 88c80eb into elastic:main Nov 15, 2021
andsel added a commit to andsel/logstash that referenced this pull request Nov 15, 2021
…lastic#13380)

With elastic#13308 configuration namespace that started with `http.` was renamed to `api.`, this commit fix a usage left behind.
Use the new `api.enabled` setting in one place instead of the deprecated `http.enable`.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
(cherry picked from commit 88c80eb)
andsel added a commit to andsel/logstash that referenced this pull request Nov 15, 2021
…lastic#13380)

With elastic#13308 configuration namespace that started with `http.` was renamed to `api.`, this commit fix a usage left behind.
Use the new `api.enabled` setting in one place instead of the deprecated `http.enable`.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
(cherry picked from commit 88c80eb)
andsel added a commit that referenced this pull request Nov 16, 2021
…api.enabled' (#13380) (#13407)

With #13308 configuration namespace that started with `http.` was renamed to `api.`, this commit fix a usage left behind.
Use the new `api.enabled` setting in one place instead of the deprecated `http.enable`.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
(cherry picked from commit 88c80eb)
andsel added a commit that referenced this pull request Nov 16, 2021
… 'api.enabled' (#13380) (#13408)

With #13308 configuration namespace that started with `http.` was renamed to `api.`, this commit fix a usage left behind.
Use the new `api.enabled` setting in one place instead of the deprecated `http.enable`.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
(cherry picked from commit 88c80eb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants