<#6267 [flyteadmin] add delete execution phase api...
# flyte-github
c
#6267 [flyteadmin] add delete execution phase api Pull request opened by taieeuu ## Tracking issue ## Why are the changes needed? This API provides users with a method to batch delete unnecessary execution records. It accepts the parameters project, domain, and phase, enabling the deletion of execution records that are no longer needed. ## What changes were proposed in this pull request? In the protobuf definition, define an RPC method called DeleteExecutionPhase that accepts project, domain, and phase parameters and uses the DELETE method for the deletion request. In both execution_manager and execution_repo, implement deletion logic that includes input validation and error handling. Unit tests are provided to ensure correct functionality under both successful and failure scenarios. ## How was this patch tested? "All tests passed successfully, and I have also added unit tests." And you can also test with postman ... tools . [image](https://private-user-images.githubusercontent.com/139771199/420564878-391d1d09-2bcf-4187-a536-20c47cbc87f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDE0MTMwNzAsIm5iZiI6MTc0MTQxMjc3MCwicGF0aCI6Ii8xMzk3NzExOTkvNDIwNTY0ODc4LTM5MWQxZDA5LTJiY2YtNDE4Ny1hNTM2LTIwYzQ3Y2JjODdmNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMzA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDMwOFQwNTQ2MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMzU3NTNjOTBiMzg3ZTA3MGFhNjkzYTc3NjQ2MDkwMzQ1OWI4Y2VhYmFkYjc4OWIxM2FkYmYzZDJlZmY2ZTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lhIelT8u7NIlKuamj3gVY5X5QwPWUEP4U0QwNAmkjNc) ### Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This PR implements a new API endpoint for batch deleting execution phases in Flyte, introducing protobuf message types with implementations in Go, TypeScript, and Rust. It updates execution manager and repository layers, improves encapsulation by replacing direct field access with getter methods, and switches from GET to DELETE methods with proper validation and error handling. Unit tests added: True Estimated effort to review (1-5, lower is better): 5 flyteorg/flyte