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

add workflow type field exists check in search monitors action to return both workflows and monitors on search #1026

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

eirsep
Copy link
Member

@eirsep eirsep commented Jul 13, 2023

add workflow type field exists check in search monitors action to return both workflows and monitors on search

Added test to verify Search Monitors API would return both workflows and monitors

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…unr both workflows and monitors on search

Signed-off-by: Surya Sashank Nistala <[email protected]>
… for search Associated monitors

Signed-off-by: Surya Sashank Nistala <[email protected]>
@eirsep eirsep added the backport 2.9 backports PRs to 2.9 label Jul 13, 2023
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #1026 (f3aa825) into 2.x (0add91f) will increase coverage by 0.09%.
The diff coverage is 88.00%.

@@             Coverage Diff              @@
##                2.x    #1026      +/-   ##
============================================
+ Coverage     72.56%   72.65%   +0.09%     
  Complexity      119      119              
============================================
  Files           160      160              
  Lines         10434    10447      +13     
  Branches       1571     1572       +1     
============================================
+ Hits           7571     7590      +19     
+ Misses         1968     1962       -6     
  Partials        895      895              
Impacted Files Coverage Δ
...search/alerting/resthandler/RestGetAlertsAction.kt 97.05% <80.00%> (-2.95%) ⬇️
...ch/alerting/transport/TransportGetMonitorAction.kt 87.05% <88.23%> (-0.13%) ⬇️
...alerting/transport/TransportSearchMonitorAction.kt 78.72% <100.00%> (+0.94%) ⬆️

... and 5 files with indirect coverage changes

@eirsep eirsep merged commit 064e5f5 into opensearch-project:2.x Jul 13, 2023
12 of 16 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 13, 2023
…urn both workflows and monitors on search (#1026)

* add workflow type field exists check in search monitors action to retunr both workflows and monitors on search

Signed-off-by: Surya Sashank Nistala <[email protected]>

* remove .get() invocation on future and replace with suspendUntil call for search Associated monitors

Signed-off-by: Surya Sashank Nistala <[email protected]>

* add workflowIds param in rest get alerts action

Signed-off-by: Surya Sashank Nistala <[email protected]>

---------

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 064e5f5)
eirsep added a commit that referenced this pull request Jul 14, 2023
…urn both workflows and monitors on search (#1026) (#1027)

* add workflow type field exists check in search monitors action to retunr both workflows and monitors on search

Signed-off-by: Surya Sashank Nistala <[email protected]>

* remove .get() invocation on future and replace with suspendUntil call for search Associated monitors

Signed-off-by: Surya Sashank Nistala <[email protected]>

* add workflowIds param in rest get alerts action

Signed-off-by: Surya Sashank Nistala <[email protected]>

---------

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 064e5f5)

Co-authored-by: Surya Sashank Nistala <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 25, 2023
…urn both workflows and monitors on search (#1026)

* add workflow type field exists check in search monitors action to retunr both workflows and monitors on search

Signed-off-by: Surya Sashank Nistala <[email protected]>

* remove .get() invocation on future and replace with suspendUntil call for search Associated monitors

Signed-off-by: Surya Sashank Nistala <[email protected]>

* add workflowIds param in rest get alerts action

Signed-off-by: Surya Sashank Nistala <[email protected]>

---------

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 064e5f5)
lezzago pushed a commit that referenced this pull request Jul 26, 2023
…urn both workflows and monitors on search (#1026) (#1053)

* add workflow type field exists check in search monitors action to retunr both workflows and monitors on search

Signed-off-by: Surya Sashank Nistala <[email protected]>

* remove .get() invocation on future and replace with suspendUntil call for search Associated monitors

Signed-off-by: Surya Sashank Nistala <[email protected]>

* add workflowIds param in rest get alerts action

Signed-off-by: Surya Sashank Nistala <[email protected]>

---------

Signed-off-by: Surya Sashank Nistala <[email protected]>
(cherry picked from commit 064e5f5)

Co-authored-by: Surya Sashank Nistala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport main backport 2.9 backports PRs to 2.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants