Skip to content

mapper topics fix; Index Rule category validation#123

Merged
eirsep merged 2 commits intoopensearch-project:mainfrom
petardz:updatemapping-fix
Nov 10, 2022
Merged

mapper topics fix; Index Rule category validation#123
eirsep merged 2 commits intoopensearch-project:mainfrom
petardz:updatemapping-fix

Conversation

@petardz
Copy link
Copy Markdown
Contributor

@petardz petardz commented Nov 8, 2022

Signed-off-by: Petar Dzepina petar.dzepina@gmail.com

Description

Fixed GetIndexMappings API to return proper errors for incorrect rule_topic. Added proper error handling for category param for IndexRule 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.

@petardz petardz requested a review from a team November 8, 2022 22:35
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 9, 2022

Codecov Report

Merging #123 (33f4850) into main (1b36aa1) will decrease coverage by 0.10%.
The diff coverage is 14.81%.

@@             Coverage Diff              @@
##               main     #123      +/-   ##
============================================
- Coverage     39.29%   39.18%   -0.11%     
- Complexity      889      890       +1     
============================================
  Files           176      176              
  Lines          6665     6701      +36     
  Branches        809      815       +6     
============================================
+ Hits           2619     2626       +7     
- Misses         3807     3833      +26     
- Partials        239      242       +3     
Impacted Files Coverage Δ
...rch/securityanalytics/action/IndexRuleRequest.java 0.00% <0.00%> (ø)
...indexmanagment/DetectorIndexManagementService.java 0.00% <0.00%> (ø)
...search/securityanalytics/mapper/MapperService.java 34.35% <0.00%> (-0.81%) ⬇️
...rityanalytics/util/SecurityAnalyticsException.java 36.66% <0.00%> (-9.17%) ⬇️
...alytics/config/monitors/DetectorMonitorConfig.java 53.84% <35.29%> (-1.71%) ⬇️
...search/securityanalytics/alerts/AlertsService.java 21.90% <50.00%> (ø)
...ch/securityanalytics/findings/FindingsService.java 39.70% <50.00%> (ø)
...g/opensearch/securityanalytics/model/Detector.java 70.24% <0.00%> (-0.35%) ⬇️
.../opensearch/securityanalytics/util/IndexUtils.java 61.36% <0.00%> (+0.89%) ⬆️

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

eirsep
eirsep previously approved these changes Nov 9, 2022
petardz and others added 2 commits November 10, 2022 01:00
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
@eirsep eirsep merged commit 4fba8fc into opensearch-project:main Nov 10, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2022
* conflict resolve

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

* IT fixes

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Co-authored-by: Petar Dzepina <petar.dzepina@vroom.com>
(cherry picked from commit 4fba8fc)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2022
* conflict resolve

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

* IT fixes

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Co-authored-by: Petar Dzepina <petar.dzepina@vroom.com>
(cherry picked from commit 4fba8fc)
eirsep pushed a commit that referenced this pull request Nov 10, 2022
* conflict resolve

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

* IT fixes

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Co-authored-by: Petar Dzepina <petar.dzepina@vroom.com>
(cherry picked from commit 4fba8fc)

Co-authored-by: Petar Dzepina <petar.dzepina@gmail.com>
eirsep pushed a commit that referenced this pull request Nov 10, 2022
* conflict resolve

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

* IT fixes

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>

Signed-off-by: Petar Dzepina <petar.dzepina@vroom.com>
Co-authored-by: Petar Dzepina <petar.dzepina@vroom.com>
(cherry picked from commit 4fba8fc)

Co-authored-by: Petar Dzepina <petar.dzepina@gmail.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