Skip to content

Commit

Permalink
revert paths to opendistro to keep cluster permissions same with ODFE (
Browse files Browse the repository at this point in the history
…opensearch-project#218)

Signed-off-by: David Cui <davidcui@amazon.com>
  • Loading branch information
davidcui1225 authored and zhongnansu committed Nov 9, 2021
1 parent b1690af commit 3e35304
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class CreateReportDefinitionAction @Inject constructor(
actionFilters,
::CreateReportDefinitionRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/definition/create"
private const val NAME = "cluster:admin/opendistro/reports/definition/create"
internal val ACTION_TYPE = ActionType(NAME, ::CreateReportDefinitionResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class GetAllReportDefinitionsAction @Inject constructor(
actionFilters,
::GetAllReportDefinitionsRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/definition/list"
private const val NAME = "cluster:admin/opendistro/reports/definition/list"
internal val ACTION_TYPE = ActionType(NAME, ::GetAllReportDefinitionsResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class GetAllReportInstancesAction @Inject constructor(
actionFilters,
::GetAllReportInstancesRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/instance/list"
private const val NAME = "cluster:admin/opendistro/reports/instance/list"
internal val ACTION_TYPE = ActionType(NAME, ::GetAllReportInstancesResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class GetReportDefinitionAction @Inject constructor(
actionFilters,
::GetReportDefinitionRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/definition/get"
private const val NAME = "cluster:admin/opendistro/reports/definition/get"
internal val ACTION_TYPE = ActionType(NAME, ::GetReportDefinitionResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class GetReportInstanceAction @Inject constructor(
actionFilters,
::GetReportInstanceRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/instance/get"
private const val NAME = "cluster:admin/opendistro/reports/instance/get"
internal val ACTION_TYPE = ActionType(NAME, ::GetReportInstanceResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class InContextReportCreateAction @Inject constructor(
actionFilters,
::InContextReportCreateRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/menu/download"
private const val NAME = "cluster:admin/opendistro/reports/menu/download"
internal val ACTION_TYPE = ActionType(NAME, ::InContextReportCreateResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class OnDemandReportCreateAction @Inject constructor(
actionFilters,
::OnDemandReportCreateRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/definition/on_demand"
private const val NAME = "cluster:admin/opendistro/reports/definition/on_demand"
internal val ACTION_TYPE = ActionType(NAME, ::OnDemandReportCreateResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class UpdateReportDefinitionAction @Inject constructor(
actionFilters,
::UpdateReportDefinitionRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/definition/update"
private const val NAME = "cluster:admin/opendistro/reports/definition/update"
internal val ACTION_TYPE = ActionType(NAME, ::UpdateReportDefinitionResponse)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal class UpdateReportInstanceStatusAction @Inject constructor(
actionFilters,
::UpdateReportInstanceStatusRequest) {
companion object {
private const val NAME = "cluster:admin/opensearch/reports/instance/update_status"
private const val NAME = "cluster:admin/opendistro/reports/instance/update_status"
internal val ACTION_TYPE = ActionType(NAME, ::UpdateReportInstanceStatusResponse)
}

Expand Down

0 comments on commit 3e35304

Please sign in to comment.