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
…#218)

Signed-off-by: David Cui <[email protected]>
  • Loading branch information
davidcui1225 authored and zhongnansu committed Nov 9, 2021
1 parent c78d865 commit 60e385e
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 60e385e

Please sign in to comment.