Skip to content

Commit

Permalink
Same for update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
pschoenfelder committed Jun 27, 2019
1 parent c80ab68 commit 528b548
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public SingularityRequestParent cancelDeploy(SingularityUser user, String reques
)
public SingularityRequestParent updatePendingDeploy(
@Parameter(hidden = true) @Auth SingularityUser user,
@Context HttpServletRequest requestContext,
@RequestBody(required = true) SingularityUpdatePendingDeployRequest updateRequest) {
return maybeProxyToLeader(requestContext, SingularityRequestParent.class, updateRequest, () -> updatePendingDeploy(user, updateRequest));
}

public SingularityRequestParent updatePendingDeploy(SingularityUser user, SingularityUpdatePendingDeployRequest updateRequest) {
SingularityRequestWithState requestWithState = fetchRequestWithState(updateRequest.getRequestId(), user);

authorizationHelper.checkForAuthorization(requestWithState.getRequest(), user, SingularityAuthorizationScope.WRITE);
Expand Down

0 comments on commit 528b548

Please # to comment.