-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Remove component settings from AbstractComponent #9919
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
Conversation
Today we have two ways of getting a setting, either with the full settings key or with only the last part of the key where the prefix is implicit depending on the package the class is in via component settings. this is trappy as well as confusing for users and can break easily if a class is moved to a new package since the prefix then implicitly changes. This commit removes the component settings from the codebase.
Note that this will have of course consequences in plugins. Now that we use full path for setting names, could we define static final String for those? |
@dadoonet there are no consequences in plugins you always had to specify the full key in the settings. |
+1 to have just one way to get settings. |
+1 the bwc issues that can happen from moving a class makes component settings trappy. |
Forgot to say that I'm +1 as well. |
Related to elastic/elasticsearch#9919 Closes #36.
Related to elastic/elasticsearch#9919 Closes #44.
Related to elastic/elasticsearch#9919 Closes #182.
Related to elastic/elasticsearch#9919 Closes elastic#72. (cherry picked from commit db888a5)
Related to elastic/elasticsearch#9919 Closes #35.
…ponent Update settings filter to match elastic/elasticsearch#9748 Remove component settings from AbstractComponent as seen in elastic/elasticsearch#9919 Closes elastic#71. Closes elastic#72.
…ponent Update settings filter to match elastic/elasticsearch#9748 Remove component settings from AbstractComponent as seen in elastic/elasticsearch#9919 Closes #71. Closes #72. (cherry picked from commit cd7b8d4)
…ponent Update settings filter to match elastic/elasticsearch#9748 Remove component settings from AbstractComponent as seen in elastic/elasticsearch#9919 Closes #71. Closes #72. (cherry picked from commit cd7b8d4)
Related to elastic/elasticsearch#9919 Closes #50.
Related to elastic/elasticsearch#9919 Closes #50. (cherry picked from commit c70e32d)
Related to elastic/elasticsearch#9919 Closes #50. (cherry picked from commit c70e32d)
Today we have two ways of getting a setting, either with the full settings key or with only
the last part of the key where the prefix is implicit depending on the package the class is in via
component settings. this is trappy as well as confusing for users and can break easily if a class is moved
to a new package since the prefix then implicitly changes.
This commit removes the component settings from the codebase.