Skip to content

Conversation

@Lindsay-00
Copy link
Contributor

Description

This PR introduces the Delete Rule API Logic.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Lingxi Chen added 2 commits May 1, 2025 16:48
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@Lindsay-00 Lindsay-00 requested a review from a team as a code owner May 2, 2025 09:13
@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2025

❌ Gradle check result for 5129a79: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

❌ Gradle check result for c6a1825: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

❌ Gradle check result for f37990f: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

@ruai0511 ruai0511 left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

❌ Gradle check result for 1669731: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@Lindsay-00
Copy link
Contributor Author

@jainankitk For Feature Type we're keeping it to get the RulePersistenceService from the Registry class

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2025

❌ Gradle check result for 5e38cb0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@jainankitk
Copy link
Contributor

@Lindsay-00 - Can you resolve the failing precommit and other checks?

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2025

❌ Gradle check result for 0d33419: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@jainankitk
Copy link
Contributor

@Lindsay-00 - Precommit is still failing. Maybe you can try running it locally to verify? Also, can you add changelog entry?

Lingxi Chen added 2 commits May 12, 2025 13:47
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

❌ Gradle check result for 2120016: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@jainankitk
Copy link
Contributor

@Lindsay-00 - Failures look related, can you check:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/) (2 failures / +2)

    [org.opensearch.rule.service.IndexStoredRulePersistenceServiceTests.testDeleteRule_notFound](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/junit/org.opensearch.rule.service/IndexStoredRulePersistenceServiceTests/testDeleteRule_notFound/)
    [org.opensearch.rule.service.IndexStoredRulePersistenceServiceTests.testDeleteRule_successful](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/junit/org.opensearch.rule.service/IndexStoredRulePersistenceServiceTests/testDeleteRule_successful/)

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

❌ Gradle check result for f1f0783: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@Lindsay-00
Copy link
Contributor Author

@Lindsay-00 - Failures look related, can you check:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/) (2 failures / +2)

    [org.opensearch.rule.service.IndexStoredRulePersistenceServiceTests.testDeleteRule_notFound](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/junit/org.opensearch.rule.service/IndexStoredRulePersistenceServiceTests/testDeleteRule_notFound/)
    [org.opensearch.rule.service.IndexStoredRulePersistenceServiceTests.testDeleteRule_successful](https://build.ci.opensearch.org/job/gradle-check/57992/testReport/junit/org.opensearch.rule.service/IndexStoredRulePersistenceServiceTests/testDeleteRule_successful/)

Thanks for pointing it out! Just fixed them.

@github-actions
Copy link
Contributor

❌ Gradle check result for f1f0783: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for 7f90f40: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for 7f90f40: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for 7f90f40: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

❌ Gradle check result for 7f90f40: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@jainankitk
Copy link
Contributor

@Lindsay-00 - Can you check the build log for issues? - https://build.ci.opensearch.org/job/gradle-check/58062/console. cc: @kaushalmahi12

Lingxi Chen added 2 commits May 19, 2025 11:11
Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

❌ Gradle check result for 1ea4330: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
@github-actions
Copy link
Contributor

❕ Gradle check result for cddf074: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 15 lines in your changes missing coverage. Please review.

Project coverage is 72.52%. Comparing base (998ae73) to head (cddf074).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
...org/opensearch/rule/rest/RestDeleteRuleAction.java 30.00% 7 Missing ⚠️
...ule/service/IndexStoredRulePersistenceService.java 60.00% 3 Missing and 3 partials ⚠️
...in/java/org/opensearch/rule/DeleteRuleRequest.java 89.47% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18184      +/-   ##
============================================
+ Coverage     72.48%   72.52%   +0.03%     
- Complexity    67357    67385      +28     
============================================
  Files          5488     5492       +4     
  Lines        311023   311076      +53     
  Branches      45217    45218       +1     
============================================
+ Hits         225444   225606     +162     
+ Misses        67282    67063     -219     
- Partials      18297    18407     +110     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jainankitk jainankitk merged commit 54af445 into opensearch-project:main May 20, 2025
30 checks passed
tandonks pushed a commit to tandonks/OpenSearch that referenced this pull request Jun 1, 2025
…t#18184)

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Co-authored-by: Lingxi Chen <lingxich@amazon.com>
neuenfeldttj added a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
…t#18184)

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Co-authored-by: Lingxi Chen <lingxich@amazon.com>Signed-off-by: TJ Neuenfeldt <tjneu@amazon.com>
neuenfeldttj pushed a commit to neuenfeldttj/OpenSearch that referenced this pull request Jun 26, 2025
…t#18184)

Signed-off-by: Lingxi Chen <lingxich@amazon.com>
Co-authored-by: Lingxi Chen <lingxich@amazon.com>
@ruai0511 ruai0511 deleted the delete-rule-api-pr-v2 branch July 9, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants