From 16caa81cc4451886575c81e9ebb746c8f77a3981 Mon Sep 17 00:00:00 2001 From: Rui Zhu Date: Wed, 20 Nov 2024 11:47:36 -0500 Subject: [PATCH] disable the ability to delete deploys through api --- .../java/com/pinterest/teletraan/resource/Deploys.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/resource/Deploys.java b/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/resource/Deploys.java index 4966fc3b8b..450aa6edaa 100644 --- a/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/resource/Deploys.java +++ b/deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/resource/Deploys.java @@ -152,14 +152,7 @@ public void update( LOG.info("{} successfully updated deploy {} with {}", userName, id, deployBean); } - @DELETE - @Timed - @ExceptionMetered - @Path("/{id : [a-zA-Z0-9\\-_]+}") - @ApiOperation(value = "Delete deploy info", notes = "Delete deploy info given a deploy id") - @RolesAllowed(TeletraanPrincipalRole.Names.WRITE) - @ResourceAuthZInfo(type = AuthZResource.Type.DEPLOY, idLocation = Location.PATH) - public void delete( + private void delete( @Context SecurityContext sc, @ApiParam(value = "Deploy id", required = true) @PathParam("id") String id) throws Exception {