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

Handle Not Found deprovision exceptions as successful deletions #805

Merged

Conversation

dbwiddis
Copy link
Member

Description

Treats a NOT_FOUND exception on deprovisioning agents and models as successful deprovision.

Related Issues

Fixes #803

Check List

  • New functionality includes testing.
  • 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.

Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 75.69%. Comparing base (761edd9) to head (e708990).

Files Patch % Lines
...search/flowframework/workflow/DeleteAgentStep.java 75.00% 0 Missing and 2 partials ⚠️
...search/flowframework/workflow/DeleteModelStep.java 75.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #805      +/-   ##
============================================
- Coverage     75.76%   75.69%   -0.07%     
- Complexity      833      834       +1     
============================================
  Files            88       88              
  Lines          4035     4045      +10     
  Branches        371      373       +2     
============================================
+ Hits           3057     3062       +5     
- Misses          824      828       +4     
- Partials        154      155       +1     

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

@dbwiddis dbwiddis merged commit 034dff7 into opensearch-project:main Jul 25, 2024
20 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 25, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 034dff7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 25, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 034dff7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis dbwiddis deleted the deprovision-success-on-delete branch July 25, 2024 20:28
dbwiddis pushed a commit that referenced this pull request Jul 25, 2024
…deletions (#806)

Handle Not Found deprovision exceptions as successful deletions (#805)


(cherry picked from commit 034dff7)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
owaiskazi19 pushed a commit that referenced this pull request Jul 25, 2024
… deletions (#807)

Handle Not Found deprovision exceptions as successful deletions (#805)


(cherry picked from commit 034dff7)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch backport 2.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] DeleteModelStep and DeleteAgentStep don't handle NOT_FOUND exceptions
3 participants