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

Rest apis #6

Open
wants to merge 7 commits into
base: feature/composite-monitors-rest-secure-api-pr
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Added workflow rest api integration test
Signed-off-by: Stevan Buzejic <[email protected]>
stevanbz authored and eirsep committed May 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 63d96f6b22983a1bcf715afa6c6a60390ab9b49d
Original file line number Diff line number Diff line change
@@ -76,10 +76,6 @@ interface SecureTransportAction {
}

fun <T : Any> validateUserBackendRoles(user: User?, actionListener: ActionListener<T>): Boolean {
if (!filterByEnabled || user == null) {
return true
}

if (filterByEnabled) {
if (user == null) {
actionListener.onFailure(
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ import org.opensearch.action.search.SearchResponse
import org.opensearch.action.support.ActionFilters
import org.opensearch.action.support.HandledTransportAction
import org.opensearch.action.support.WriteRequest.RefreshPolicy
import org.opensearch.alerting.DeleteMonitorService
import org.opensearch.alerting.model.MonitorMetadata
import org.opensearch.alerting.model.WorkflowMetadata
import org.opensearch.alerting.opensearchapi.addFilter