-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Block delete model requests if an index uses the model (…
…#1745) * Block delete model requests if an index uses the model (#1722) * Block delete model requests if an index uses the model Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Add test Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Add changelog entry Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Change tests that were deleting a model in use Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Debug Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Add extra check to fix incorrect exception Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Remove println Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Change model_id search from contains to parsing response map Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Remove * import Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Combine delete model exceptions Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Move check to UpdateModelGraveyardTransportAction Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Optimize code logic Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Modify method names and throw exception in outer method Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Add test with cases for UpdateModelGraveyardTransportAction Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Fix spotless Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Refactor code and other minor optimizations Signed-off-by: Ryan Bogan <rbogan@amazon.com> --------- Signed-off-by: Ryan Bogan <rbogan@amazon.com> (cherry picked from commit 1c4a131) * Fix compile Signed-off-by: Ryan Bogan <rbogan@amazon.com> --------- Signed-off-by: Ryan Bogan <rbogan@amazon.com> Co-authored-by: Ryan Bogan <rbogan@amazon.com>
- Loading branch information
1 parent
cd311af
commit 0738439
Showing
11 changed files
with
436 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.