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

correlation rule search, delete and edit api #476

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

sbcd90
Copy link
Collaborator

@sbcd90 sbcd90 commented Jul 11, 2023

Description

correlation rule search, delete and edit api

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.

@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #476 (1171e84) into main (faccf6c) will decrease coverage by 0.05%.
The diff coverage is 25.25%.

@@             Coverage Diff              @@
##               main     #476      +/-   ##
============================================
- Coverage     28.23%   28.18%   -0.05%     
- Complexity      906      940      +34     
============================================
  Files           235      236       +1     
  Lines          9443     9863     +420     
  Branches       1081     1118      +37     
============================================
+ Hits           2666     2780     +114     
- Misses         6545     6841     +296     
- Partials        232      242      +10     
Impacted Files Coverage Δ
...rch/securityanalytics/action/GetAlertsRequest.java 0.00% <0.00%> (ø)
...h/securityanalytics/action/GetFindingsRequest.java 0.00% <0.00%> (ø)
...rch/securityanalytics/action/IndexRuleRequest.java 0.00% <ø> (ø)
...search/securityanalytics/alerts/AlertsService.java 21.90% <0.00%> (ø)
...rrelation/index/codec/CorrelationCodecService.java 0.00% <0.00%> (ø)
...ch/securityanalytics/findings/FindingsService.java 36.48% <0.00%> (ø)
...indexmanagment/DetectorIndexManagementService.java 0.00% <0.00%> (ø)
...ecurityanalytics/logtype/BuiltinLogTypeLoader.java 2.27% <0.00%> (+2.27%) ⬆️
...earch/securityanalytics/logtype/MappingSchema.java 0.00% <0.00%> (ø)
...search/securityanalytics/mapper/MapperService.java 0.00% <0.00%> (-4.29%) ⬇️
... and 19 more

... and 2 files with indirect coverage changes

);
}

@Override
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {
log.debug(String.format(Locale.ROOT, "%s %s", request.method(), SecurityAnalyticsPlugin.CORRELATION_RULES_BASE_URI));

String id = request.param("rule_id", CorrelationRule.NO_ID);
String id = request.param("correlation_rule_id", CorrelationRule.NO_ID);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a breaking change from previous version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this piece of code was not used in previous releases. today while writing integ tests i found this error. so changed this.

@sbcd90 sbcd90 merged commit 61715cd into opensearch-project:main Jul 11, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 11, 2023
Signed-off-by: Subhobrata Dey <[email protected]>
(cherry picked from commit 61715cd)
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