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

changes to return empty search response for custom rules #231

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

raj-chak
Copy link
Contributor

@raj-chak raj-chak commented Jan 5, 2023

Signed-off-by: Raj Chakravarthi [email protected]

Description

This returns an empty search response (status 200) when there are no custom rules configured instead of throwing an exception. Integration test also written.

Issues Resolved

#205

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.

@raj-chak raj-chak requested a review from a team January 5, 2023 00:02
@raj-chak raj-chak changed the title changes to return empty serach response for custom rules changes to return empty search response for custom rules Jan 5, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #231 (21e7559) into main (d663a79) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main     #231      +/-   ##
============================================
- Coverage     38.97%   38.96%   -0.01%     
  Complexity      892      892              
============================================
  Files           176      176              
  Lines          6746     6747       +1     
  Branches        823      823              
============================================
  Hits           2629     2629              
- Misses         3876     3877       +1     
  Partials        241      241              
Impacted Files Coverage Δ
...analytics/transport/TransportSearchRuleAction.java 0.00% <0.00%> (ø)

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

@eirsep eirsep merged commit 2fcbdba into opensearch-project:main Jan 5, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 5, 2023
Signed-off-by: Raj Chakravarthi <[email protected]>

Signed-off-by: Raj Chakravarthi <[email protected]>
(cherry picked from commit 2fcbdba)
sbcd90 pushed a commit that referenced this pull request Jan 5, 2023
eirsep pushed a commit to eirsep/security-analytics that referenced this pull request Apr 3, 2023
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