Skip to content

Index template cleanup#317

Merged
sbcd90 merged 13 commits intoopensearch-project:mainfrom
petardz:index-template-cleanup
Feb 22, 2023
Merged

Index template cleanup#317
sbcd90 merged 13 commits intoopensearch-project:mainfrom
petardz:index-template-cleanup

Conversation

@petardz
Copy link
Copy Markdown
Contributor

@petardz petardz commented Jan 24, 2023

Description

We're deleting all unused templates(v2) and componentTemplates on detector DELETE

Issues Resolved

#312

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 January 24, 2023 19:05
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 19, 2023

Codecov Report

Merging #317 (e9e8312) into main (b3ea840) will decrease coverage by 0.99%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #317      +/-   ##
============================================
- Coverage     36.87%   35.89%   -0.99%     
  Complexity      887      887              
============================================
  Files           179      186       +7     
  Lines          7032     7224     +192     
  Branches        857      870      +13     
============================================
  Hits           2593     2593              
- Misses         4202     4394     +192     
  Partials        237      237              
Impacted Files Coverage Δ
...rch/securityanalytics/SecurityAnalyticsPlugin.java 0.00% <0.00%> (ø)
...securityanalytics/mapper/IndexTemplateManager.java 0.00% <0.00%> (ø)
...h/securityanalytics/mapper/IndexTemplateUtils.java 0.00% <0.00%> (ø)
...search/securityanalytics/mapper/MapperService.java 4.61% <0.00%> (ø)
...ytics/transport/TransportDeleteDetectorAction.java 0.00% <0.00%> (ø)
...ensearch/securityanalytics/util/DetectorUtils.java 0.00% <0.00%> (ø)
...earch/securityanalytics/util/RuleTopicIndices.java 0.00% <0.00%> (ø)
...yanalytics/action/GetAllRuleCategoriesRequest.java 0.00% <0.00%> (ø)
... and 5 more

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

@eirsep
Copy link
Copy Markdown
Member

eirsep commented Feb 20, 2023

Appreciate sanitary fixes but let's not make them with bug fixes or feature PRs as it is cumbersome to track what's the actual change and what is simply an indentation fix or a sanitary change for readaiblity. plz raise such changes in different PR.

Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
…me; replaced v1 template with v2 template for query index template

Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
@petardz petardz force-pushed the index-template-cleanup branch from 6e89bd3 to e9e8312 Compare February 21, 2023 00:19
@sbcd90 sbcd90 merged commit 52afd47 into opensearch-project:main Feb 22, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
(cherry picked from commit 52afd47)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
(cherry picked from commit 52afd47)
sbcd90 pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
sbcd90 pushed a commit that referenced this pull request Feb 22, 2023
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
eirsep pushed a commit to eirsep/security-analytics that referenced this pull request Apr 3, 2023
Signed-off-by: Petar Dzepina <petar.dzepina@gmail.com>
riysaxen-amzn pushed a commit to riysaxen-amzn/security-analytics that referenced this pull request Feb 20, 2024
…PI call (opensearch-project#317)

* create detector if mapping creation succeeds

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>

* updated creation api call sequence

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>

Signed-off-by: Amardeepsingh Siglani <amardeep7194@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.

5 participants