Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of NotificationEvent Request, Response and SearchResults #153

Merged
merged 2 commits into from
Apr 5, 2022
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 @@ -18,8 +18,6 @@ import org.opensearch.commons.notifications.action.GetChannelListRequest
import org.opensearch.commons.notifications.action.GetChannelListResponse
import org.opensearch.commons.notifications.action.GetNotificationConfigRequest
import org.opensearch.commons.notifications.action.GetNotificationConfigResponse
import org.opensearch.commons.notifications.action.GetNotificationEventRequest
import org.opensearch.commons.notifications.action.GetNotificationEventResponse
import org.opensearch.commons.notifications.action.GetPluginFeaturesRequest
import org.opensearch.commons.notifications.action.GetPluginFeaturesResponse
import org.opensearch.commons.notifications.action.LegacyPublishNotificationRequest
Expand All @@ -28,7 +26,6 @@ import org.opensearch.commons.notifications.action.NotificationsActions.CREATE_N
import org.opensearch.commons.notifications.action.NotificationsActions.DELETE_NOTIFICATION_CONFIG_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.GET_CHANNEL_LIST_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.GET_NOTIFICATION_CONFIG_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.GET_NOTIFICATION_EVENT_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.GET_PLUGIN_FEATURES_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.LEGACY_PUBLISH_NOTIFICATION_ACTION_TYPE
import org.opensearch.commons.notifications.action.NotificationsActions.SEND_NOTIFICATION_ACTION_TYPE
Expand Down Expand Up @@ -119,24 +116,6 @@ object NotificationsPluginInterface {
)
}

/**
* Get notification events.
* @param client Node client for making transport action
* @param request The request object
* @param listener The listener for getting response
*/
fun getNotificationEvent(
client: NodeClient,
request: GetNotificationEventRequest,
listener: ActionListener<GetNotificationEventResponse>
) {
client.execute(
GET_NOTIFICATION_EVENT_ACTION_TYPE,
request,
wrapActionListener(listener) { response -> recreateObject(response) { GetNotificationEventResponse(it) } }
)
}

/**
* Get notification plugin features.
* @param client Node client for making transport action
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ object NotificationsActions {
*/
const val GET_NOTIFICATION_CONFIG_NAME = "cluster:admin/opensearch/notifications/configs/get"

/**
* Get notification events transport action name.
*/
const val GET_NOTIFICATION_EVENT_NAME = "cluster:admin/opensearch/notifications/events/get"

/**
* Get notification plugin features transport action name.
*/
Expand Down Expand Up @@ -80,12 +75,6 @@ object NotificationsActions {
val GET_NOTIFICATION_CONFIG_ACTION_TYPE =
ActionType(GET_NOTIFICATION_CONFIG_NAME, ::GetNotificationConfigResponse)

/**
* Get notification events transport action type.
*/
val GET_NOTIFICATION_EVENT_ACTION_TYPE =
ActionType(GET_NOTIFICATION_EVENT_NAME, ::GetNotificationEventResponse)

/**
* Get notification plugin features transport action type.
*/
Expand Down
Loading