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

[ML] Fix logger declaration in ML plugins #42222

Conversation

dimitris-athanasiou
Copy link
Contributor

This corrects what appears to have been a copy-paste error
where the logger for MachineLearning and DataFrame was wrongly
set to be that of XPackPlugin.

This corrects what appears to have been a copy-paste error
where the logger for `MachineLearning` and `DataFrame` was wrongly
set to be that of `XPackPlugin`.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@@ -94,7 +94,7 @@
public static final Set<String> HEADER_FILTERS = new HashSet<>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hendrikmuhs Also, this appears unused. Are there plans of using it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's been refactored out into ClientHelper.SECURITY_HEADER_FILTERS (if you search for usages of that you'll see it's used in the dataframe plugin), but the old duplicated variable has not been removed in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll remove it then in this PR.

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -94,7 +94,7 @@
public static final Set<String> HEADER_FILTERS = new HashSet<>(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's been refactored out into ClientHelper.SECURITY_HEADER_FILTERS (if you search for usages of that you'll see it's used in the dataframe plugin), but the old duplicated variable has not been removed in this file.

@dimitris-athanasiou dimitris-athanasiou merged commit 77b895f into elastic:master May 20, 2019
@dimitris-athanasiou dimitris-athanasiou deleted the fix-logger-declaration-in-some-ml-classes branch May 20, 2019 15:52
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request May 21, 2019
This corrects what appears to have been a copy-paste error
where the logger for `MachineLearning` and `DataFrame` was wrongly
set to be that of `XPackPlugin`.
dimitris-athanasiou added a commit that referenced this pull request May 21, 2019
This corrects what appears to have been a copy-paste error
where the logger for `MachineLearning` and `DataFrame` was wrongly
set to be that of `XPackPlugin`.
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
This corrects what appears to have been a copy-paste error
where the logger for `MachineLearning` and `DataFrame` was wrongly
set to be that of `XPackPlugin`.
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.

4 participants