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 null or empty check only when empty workflow id passed. #1139

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

eirsep
Copy link
Member

@eirsep eirsep commented Sep 13, 2023

add workflow null or empty check only when empty workflow id passed in transport get alerts request.

In Rest get alert action, add empty string singleton list for workflow ids when none is passed. This is to support returning non-Audit alerts on Alert Dashboard.

…change Rest get alert handler to add empty string singleton list for workflow ids when none is passed

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
@AWSHurneyt AWSHurneyt merged commit d6fd871 into opensearch-project:main Sep 13, 2023
12 of 14 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 13, 2023
…1139)

* add workflow null or empty check only when empty workflow id passed. change Rest get alert handler to add empty string singleton list for workflow ids when none is passed

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>

* extract check into method

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>

---------

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
(cherry picked from commit d6fd871)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 13, 2023
…1139)

* add workflow null or empty check only when empty workflow id passed. change Rest get alert handler to add empty string singleton list for workflow ids when none is passed

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>

* extract check into method

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>

---------

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
(cherry picked from commit d6fd871)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
lezzago pushed a commit that referenced this pull request Sep 13, 2023
…1139) (#1150)

* add workflow null or empty check only when empty workflow id passed. change Rest get alert handler to add empty string singleton list for workflow ids when none is passed



* extract check into method



---------


(cherry picked from commit d6fd871)

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
lezzago pushed a commit that referenced this pull request Sep 13, 2023
…1139) (#1149)

* add workflow null or empty check only when empty workflow id passed. change Rest get alert handler to add empty string singleton list for workflow ids when none is passed



* extract check into method



---------


(cherry picked from commit d6fd871)

Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants