Skip to content

Commit

Permalink
Fix actions by legacy cluster endpoints (#21)
Browse files Browse the repository at this point in the history
* Fix actions by legacy cluster endpoints

Signed-off-by: Sruti Parthiban <[email protected]>

* Update upstream to use 1.0

Signed-off-by: Sruti Parthiban <[email protected]>
  • Loading branch information
sruti1312 authored Jun 1, 2021
1 parent 762286f commit 1357d86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.x'
ref: '1.0'
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal -Dbuild.version_qualifier=rc1 -Dbuild.snapshot=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,14 @@ protected RestChannelConsumer prepareRequest(final RestRequest request, final No
clusterSettingHandler.getCurrentClusterSettingValue());

if (value instanceof Boolean) {
if (request.path().contains(RCA_CLUSTER_CONFIG_PATH)) {
if (request.path().contains(RCA_CLUSTER_CONFIG_PATH)
|| request.path().contains(LEGACY_RCA_CLUSTER_CONFIG_PATH)) {
clusterSettingHandler.updateRcaSetting((Boolean) value);
} else if (request.path().contains(LOGGING_CLUSTER_CONFIG_PATH)) {
} else if (request.path().contains(LOGGING_CLUSTER_CONFIG_PATH)
|| request.path().contains(LEGACY_LOGGING_CLUSTER_CONFIG_PATH)) {
clusterSettingHandler.updateLoggingSetting((Boolean) value);
} else if (request.path().contains(BATCH_METRICS_CLUSTER_CONFIG_PATH)) {
} else if (request.path().contains(BATCH_METRICS_CLUSTER_CONFIG_PATH)
|| request.path().contains(LEGACY_BATCH_METRICS_CLUSTER_CONFIG_PATH)) {
clusterSettingHandler.updateBatchMetricsSetting((Boolean) value);
} else {
clusterSettingHandler.updatePerformanceAnalyzerSetting((Boolean) value);
Expand Down

0 comments on commit 1357d86

Please sign in to comment.