Skip to content

Commit

Permalink
Removal of NotificationEvent Request, Response and SearchResults (#153)
Browse files Browse the repository at this point in the history
* Removal of NotificationEvent Request, Response , Search Results

Addition of NotificationEventDoc and Removal of NotificationEventInfo

Addition of NotificationEventDocTests

Signed-off-by: Jindal <[email protected]>

* Removing NotificationEventDoc and NotificationEventDocTests

Signed-off-by: Jindal <[email protected]>

Co-authored-by: Jindal <[email protected]>
Signed-off-by: Zelin Hao <[email protected]>
  • Loading branch information
2 people authored and zelinh committed Aug 18, 2022
1 parent ac8040a commit 96d5c1d
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 1,783 deletions.
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

0 comments on commit 96d5c1d

Please sign in to comment.