[Build] deprecate renamed configurations#493
Conversation
|
👍🏼 or 👎🏼 if this should go into this should definitely be backported into |
|
✅ DCO Check Passed 45057bd |
tmarkley
left a comment
There was a problem hiding this comment.
Can we add tests for the config changes?
45057bd to
647d98c
Compare
|
✅ DCO Check Passed 647d98c |
647d98c to
134686c
Compare
|
✅ DCO Check Passed 134686c |
While renaming after the fork, configurations were renamed and replaced with keywords related to OpenSearch. This meant that anyone who migrated to OpenSearch Dashboards who had configured their YAML file no longer were able to carry over those changes and run the application. This prevented the application from starting due to unknown config keys. Although, this still does not allow the application to work out of the box because people will need to make sure then rename their kibana.yml to opensearch_dashboards.yml, but once they do they do not need to modify the content of the config. Added unit tests to test on the server configs. Issues resolved: opensearch-project#440 Partially resolves: opensearch-project#334 Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
134686c to
25eb06f
Compare
|
✅ DCO Check Passed 25eb06f |
Added the best I can, specifically related to the core server configs. |
|
Re-running tests, full suite should be done in an hour. |
|
Tests all passing on the CI. |
| const deprecations: ConfigDeprecationProvider = ({ renameFromRoot }) => [ | ||
| renameFromRoot('elasticsearch.sniffOnStart', 'opensearch.sniffOnStart'), | ||
| renameFromRoot('elasticsearch.sniffInterval', 'opensearch.sniffInterval'), | ||
| renameFromRoot('elasticsearch.sniffOnConnectionFault', 'opensearch.sniffOnConnectionFault'), | ||
| renameFromRoot('elasticsearch.hosts', 'opensearch.hosts'), | ||
| renameFromRoot('elasticsearch.username', 'opensearch.username'), | ||
| renameFromRoot('elasticsearch.password', 'opensearch.password'), | ||
| renameFromRoot('elasticsearch.requestHeadersWhitelist', 'opensearch.requestHeadersWhitelist'), | ||
| renameFromRoot('elasticsearch.customHeaders', 'opensearch.customHeaders'), | ||
| renameFromRoot('elasticsearch.shardTimeout', 'opensearch.shardTimeout'), | ||
| renameFromRoot('elasticsearch.requestTimeout', 'opensearch.requestTimeout'), | ||
| renameFromRoot('elasticsearch.pingTimeout', 'opensearch.pingTimeout'), | ||
| renameFromRoot('elasticsearch.logQueries', 'opensearch.logQueries'), | ||
| renameFromRoot('elasticsearch.optimizedHealthcheckId', 'opensearch.optimizedHealthcheckId'), | ||
| renameFromRoot('elasticsearch.ssl', 'opensearch.ssl'), | ||
| renameFromRoot('elasticsearch.apiVersion', 'opensearch.apiVersion'), | ||
| renameFromRoot('elasticsearch.healthCheck', 'opensearch.healthCheck'), | ||
| renameFromRoot('elasticsearch.ignoreVersionMismatch', 'opensearch.ignoreVersionMismatch'), |
There was a problem hiding this comment.
Will these need to be updated any time we introduce a new setting?
There was a problem hiding this comment.
When a new setting is added you dont need to add it here, I added your optimizedHealthcheckId just thinking there are so many configs for the engine that somebody might accidentally add the setting here. I can remove it though since it is completely new. Let me know what you think.
While renaming after the fork, configurations were renamed and replaced with keywords related to OpenSearch. This meant that anyone who migrated to OpenSearch Dashboards who had configured their YAML file no longer were able to carry over those changes and run the application. This prevented the application from starting due to unknown config keys. Although, this still does not allow the application to work out of the box because people will need to make sure then rename their kibana.yml to opensearch_dashboards.yml, but once they do they do not need to modify the content of the config. Added unit tests to test on the server configs. Issues resolved: #440 Partially resolves: #334 Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
While renaming after the fork, configurations were renamed and replaced with keywords related to OpenSearch. This meant that anyone who migrated to OpenSearch Dashboards who had configured their YAML file no longer were able to carry over those changes and run the application. This prevented the application from starting due to unknown config keys. Although, this still does not allow the application to work out of the box because people will need to make sure then rename their kibana.yml to opensearch_dashboards.yml, but once they do they do not need to modify the content of the config. Added unit tests to test on the server configs. Issues resolved: #440 Partially resolves: #334 Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Description
While renaming after the fork, configurations were renamed
and replaced with keywords related to OpenSearch.
This meant that anyone who migrated to OpenSearch Dashboards
who had configured their YAML file no longer were able to
carry over those changes and run the application. This
prevented the application from starting due to unknown config
keys. Although, this still does not allow the application to
work out of the box because people will need to make sure
then rename their kibana.yml to opensearch_dashboards.yml,
but once they do they do not need to modify the content
of the config.
Signed-off-by: Kawika Avilla kavilla414@gmail.com
Issues Resolved
#440
Partial: #334
Check List