From 3e35304812d47f033f7e2d5a38514397eb4bd45c Mon Sep 17 00:00:00 2001 From: David Cui <53581635+davidcui1225@users.noreply.github.com> Date: Fri, 5 Nov 2021 09:46:33 -0700 Subject: [PATCH] revert paths to opendistro to keep cluster permissions same with ODFE (#218) Signed-off-by: David Cui --- .../reportsscheduler/action/CreateReportDefinitionAction.kt | 2 +- .../reportsscheduler/action/GetAllReportDefinitionsAction.kt | 2 +- .../reportsscheduler/action/GetAllReportInstancesAction.kt | 2 +- .../reportsscheduler/action/GetReportDefinitionAction.kt | 2 +- .../reportsscheduler/action/GetReportInstanceAction.kt | 2 +- .../reportsscheduler/action/InContextReportCreateAction.kt | 2 +- .../reportsscheduler/action/OnDemandReportCreateAction.kt | 2 +- .../reportsscheduler/action/UpdateReportDefinitionAction.kt | 2 +- .../reportsscheduler/action/UpdateReportInstanceStatusAction.kt | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/CreateReportDefinitionAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/CreateReportDefinitionAction.kt index 6f576959..95321ce3 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/CreateReportDefinitionAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/CreateReportDefinitionAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportDefinitionsAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportDefinitionsAction.kt index e2771746..202c5efb 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportDefinitionsAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportDefinitionsAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportInstancesAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportInstancesAction.kt index bf5dc96e..fe3ccb81 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportInstancesAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetAllReportInstancesAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportDefinitionAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportDefinitionAction.kt index 6c3aecdf..4d90e8fe 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportDefinitionAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportDefinitionAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportInstanceAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportInstanceAction.kt index a4b94389..ba12647a 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportInstanceAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/GetReportInstanceAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/InContextReportCreateAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/InContextReportCreateAction.kt index e7b0c426..5cc26e25 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/InContextReportCreateAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/InContextReportCreateAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/OnDemandReportCreateAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/OnDemandReportCreateAction.kt index 1af9858e..2d3261b5 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/OnDemandReportCreateAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/OnDemandReportCreateAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportDefinitionAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportDefinitionAction.kt index 13ba46e5..df0e78c7 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportDefinitionAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportDefinitionAction.kt @@ -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) } diff --git a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportInstanceStatusAction.kt b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportInstanceStatusAction.kt index daec6243..e344c85c 100644 --- a/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportInstanceStatusAction.kt +++ b/reports-scheduler/src/main/kotlin/org/opensearch/reportsscheduler/action/UpdateReportInstanceStatusAction.kt @@ -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) }