Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenlan-amzn committed May 21, 2021
1 parent e0aee49 commit b620606
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ internal class IndexManagementPlugin : JobSchedulerExtension, NetworkPlugin, Act

companion object {
const val PLUGIN_NAME = "opendistro-im"
const val IM_BASE_URI = "/_plugins"
const val ISM_BASE_URI = "$IM_BASE_URI/_ism"
const val ROLLUP_BASE_URI = "$IM_BASE_URI/_rollup"
const val PLUGINS_BASE_URI = "/_plugins"
const val ISM_BASE_URI = "$PLUGINS_BASE_URI/_ism"
const val ROLLUP_BASE_URI = "$PLUGINS_BASE_URI/_rollup"
const val POLICY_BASE_URI = "$ISM_BASE_URI/policies"
const val ROLLUP_JOBS_BASE_URI = "$ROLLUP_BASE_URI/jobs"
const val INDEX_MANAGEMENT_INDEX = ".opendistro-ism-config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class AttemptSnapshotStep(
.format(DateTimeFormatter.ofPattern("uuuu.MM.dd-HH:mm:ss.SSS", Locale.ROOT)))

val createSnapshotRequest = CreateSnapshotRequest()
.userMetadata(mapOf("snapshot_created" to "OpenSearch Index Management"))
.userMetadata(mapOf("snapshot_created" to "Open Distro for Elasticsearch Index Management"))
.indices(indexName)
.snapshot(snapshotName)
.repository(config.repository)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package org.opensearch.indexmanagement.refreshanalyzer
import org.opensearch.indexmanagement.IndexManagementPlugin.Companion.OPEN_DISTRO_BASE_URI
import org.opensearch.client.node.NodeClient
import org.opensearch.common.Strings
import org.opensearch.indexmanagement.IndexManagementPlugin.Companion.IM_BASE_URI
import org.opensearch.indexmanagement.IndexManagementPlugin.Companion.PLUGINS_BASE_URI
import org.opensearch.rest.BaseRestHandler
import org.opensearch.rest.RestHandler.Route
import org.opensearch.rest.RestHandler.ReplacedRoute
Expand Down Expand Up @@ -79,7 +79,7 @@ class RestRefreshSearchAnalyzerAction : BaseRestHandler() {
}

companion object {
const val REFRESH_SEARCH_ANALYZER_BASE_URI = "$IM_BASE_URI/_refresh_search_analyzers"
const val REFRESH_SEARCH_ANALYZER_BASE_URI = "$PLUGINS_BASE_URI/_refresh_search_analyzers"
const val LEGACY_REFRESH_SEARCH_ANALYZER_BASE_URI = "$OPEN_DISTRO_BASE_URI/_refresh_search_analyzers"
}
}

0 comments on commit b620606

Please sign in to comment.