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

Change ruleId if it exists #628

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

lezzago
Copy link
Member

@lezzago lezzago commented Oct 3, 2023

Description

If there are duplicate rules, the rules would overwrite each other when they are in different categories. This modifies the document id for the rule, so they dont overwrite each other.

Issues Resolved

#610

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 Oct 3, 2023

Codecov Report

Merging #628 (2bcacee) into main (3c9b23a) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main     #628      +/-   ##
============================================
- Coverage     25.04%   25.04%   -0.01%     
  Complexity      943      943              
============================================
  Files           255      255              
  Lines         11123    11126       +3     
  Branches       1242     1243       +1     
============================================
  Hits           2786     2786              
- Misses         8086     8089       +3     
  Partials        251      251              
Files Coverage Δ
...opensearch/securityanalytics/util/RuleIndices.java 0.00% <0.00%> (ø)

AWSHurneyt
AWSHurneyt previously approved these changes Oct 3, 2023
@lezzago lezzago marked this pull request as draft October 3, 2023 17:11
Signed-off-by: Ashish Agrawal <[email protected]>
@lezzago lezzago marked this pull request as ready for review October 3, 2023 23:36
@lezzago lezzago merged commit 03573e9 into opensearch-project:main Oct 4, 2023
11 of 15 checks passed
@lezzago lezzago deleted the handleduplicates branch October 4, 2023 18:13
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 4, 2023
Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 03573e9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 4, 2023
Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 03573e9)
lezzago added a commit that referenced this pull request Oct 4, 2023
Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 03573e9)

Co-authored-by: Ashish Agrawal <[email protected]>
lezzago added a commit that referenced this pull request Oct 4, 2023
Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 03573e9)

Co-authored-by: Ashish Agrawal <[email protected]>
@sbcd90 sbcd90 mentioned this pull request Oct 13, 2023
5 tasks
riysaxen-amzn pushed a commit to riysaxen-amzn/security-analytics that referenced this pull request Mar 25, 2024
…t#628) (opensearch-project#630)

* refactored DeleteMonitor Action to be synchronious

Signed-off-by: Petar Dzepina <[email protected]>

Signed-off-by: Petar Dzepina <[email protected]>
Co-authored-by: Petar Dzepina <[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