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

Enabled creation detector without rules #143

Merged

Conversation

stevanbz
Copy link
Contributor

Signed-off-by: Stevan Buzejic stevan.buzejic@htecgroup.com

Description

Enabled empty detector (detector without rules) creation.
Added response handling on detector create request when the list of rules is empty.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

@stevanbz stevanbz requested a review from a team November 10, 2022 18:54
@stevanbz stevanbz force-pushed the bugfix/allow-empty-detector-creation branch from 44edb6e to a09dda4 Compare November 10, 2022 18:58
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2022

Codecov Report

Merging #143 (00ff567) into main (4fba8fc) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main     #143      +/-   ##
============================================
- Coverage     39.20%   39.12%   -0.09%     
+ Complexity      891      887       -4     
============================================
  Files           176      176              
  Lines          6701     6702       +1     
  Branches        815      815              
============================================
- Hits           2627     2622       -5     
- Misses         3833     3837       +4     
- Partials        241      243       +2     
Impacted Files Coverage Δ
...lytics/transport/TransportIndexDetectorAction.java 0.00% <0.00%> (ø)
...g/opensearch/securityanalytics/model/Detector.java 68.85% <0.00%> (-1.74%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
@stevanbz stevanbz force-pushed the bugfix/allow-empty-detector-creation branch from a09dda4 to 00ff567 Compare November 10, 2022 19:17
@eirsep eirsep merged commit 68231e9 into opensearch-project:main Nov 10, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Co-authored-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
(cherry picked from commit 68231e9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Co-authored-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
(cherry picked from commit 68231e9)
getsaurabh02 pushed a commit that referenced this pull request Nov 10, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Co-authored-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
(cherry picked from commit 68231e9)

Co-authored-by: Stevan Buzejic <30922513+stevanbz@users.noreply.github.com>
getsaurabh02 pushed a commit that referenced this pull request Nov 10, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Co-authored-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
(cherry picked from commit 68231e9)

Co-authored-by: Stevan Buzejic <30922513+stevanbz@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.

5 participants