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

Added check for empty action #709

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented Sep 7, 2023

Description

If user creates a detector without action using APIs, UX fails to render the detector correctly. This PR adds a check for empty action and renders a default empty state.

Check List

  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #709 (5e39a2f) into main (466ddb9) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #709      +/-   ##
==========================================
+ Coverage   31.48%   31.50%   +0.02%     
==========================================
  Files         150      150              
  Lines        4812     4812              
  Branches      802      802              
==========================================
+ Hits         1515     1516       +1     
+ Misses       3118     3117       -1     
  Partials      179      179              

see 1 file with indirect coverage changes

@amsiglan amsiglan merged commit 2e94054 into opensearch-project:main Sep 7, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2023
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 2e94054)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2023
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 2e94054)
amsiglan added a commit that referenced this pull request Sep 7, 2023
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 2e94054)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
amsiglan added a commit that referenced this pull request Sep 7, 2023
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 2e94054)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
amsiglan added a commit that referenced this pull request Mar 16, 2024
Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit 2e94054)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
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.

3 participants