Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@ import org.opensearch.notifications.action.CreateNotificationConfigAction
import org.opensearch.notifications.action.DeleteNotificationConfigAction
import org.opensearch.notifications.action.GetChannelListAction
import org.opensearch.notifications.action.GetNotificationConfigAction
import org.opensearch.notifications.action.GetNotificationEventAction
import org.opensearch.notifications.action.GetPluginFeaturesAction
import org.opensearch.notifications.action.PublishNotificationAction
import org.opensearch.notifications.action.SendNotificationAction
import org.opensearch.notifications.action.SendTestNotificationAction
import org.opensearch.notifications.action.UpdateNotificationConfigAction
import org.opensearch.notifications.index.ConfigIndexingActions
import org.opensearch.notifications.index.EventIndexingActions
import org.opensearch.notifications.index.NotificationConfigIndex
import org.opensearch.notifications.index.NotificationEventIndex
import org.opensearch.notifications.resthandler.NotificationChannelListRestHandler
import org.opensearch.notifications.resthandler.NotificationConfigRestHandler
import org.opensearch.notifications.resthandler.NotificationEventRestHandler
import org.opensearch.notifications.resthandler.NotificationFeaturesRestHandler
import org.opensearch.notifications.resthandler.NotificationStatsRestHandler
import org.opensearch.notifications.resthandler.SendTestMessageRestHandler
Expand Down Expand Up @@ -105,10 +101,8 @@ class NotificationPlugin : ActionPlugin, Plugin(), NotificationCoreExtension {
this.clusterService = clusterService
PluginSettings.addSettingsUpdateConsumer(clusterService)
NotificationConfigIndex.initialize(client, clusterService)
NotificationEventIndex.initialize(client, clusterService)
ConfigIndexingActions.initialize(NotificationConfigIndex, UserAccessManager)
SendMessageActionHelper.initialize(NotificationConfigIndex, NotificationEventIndex, UserAccessManager)
EventIndexingActions.initialize(NotificationEventIndex, UserAccessManager)
SendMessageActionHelper.initialize(NotificationConfigIndex, UserAccessManager)
return listOf()
}

Expand All @@ -135,10 +129,6 @@ class NotificationPlugin : ActionPlugin, Plugin(), NotificationCoreExtension {
NotificationsActions.GET_NOTIFICATION_CONFIG_ACTION_TYPE,
GetNotificationConfigAction::class.java
),
ActionPlugin.ActionHandler(
NotificationsActions.GET_NOTIFICATION_EVENT_ACTION_TYPE,
GetNotificationEventAction::class.java
),
ActionPlugin.ActionHandler(
NotificationsActions.GET_CHANNEL_LIST_ACTION_TYPE,
GetChannelListAction::class.java
Expand Down Expand Up @@ -173,7 +163,6 @@ class NotificationPlugin : ActionPlugin, Plugin(), NotificationCoreExtension {
log.debug("$LOG_PREFIX:getRestHandlers")
return listOf(
NotificationConfigRestHandler(),
NotificationEventRestHandler(),
NotificationFeaturesRestHandler(),
NotificationChannelListRestHandler(),
SendTestMessageRestHandler(),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal class SendTestNotificationAction @Inject constructor(
channelIds,
object : ActionListener<SendNotificationResponse> {
override fun onResponse(sendNotificationResponse: SendNotificationResponse) {
log.info("$LOG_PREFIX:SendTestNotificationAction-send:${sendNotificationResponse.notificationId}")
log.info("$LOG_PREFIX:SendTestNotificationAction-send:${sendNotificationResponse.notificationEvent}")
listener.onResponse(sendNotificationResponse)
}

Expand Down

This file was deleted.

This file was deleted.

Loading