Skip to content

Commit

Permalink
add case for SkippedDueToPreviousPartialDeploy (missing in #1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
twrichards committed Oct 9, 2023
1 parent 0d64d7c commit bf7114c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion riff-raff/app/notification/FailureNotificationContents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import deployment.{
NoDeploysFoundForStage,
ScheduledDeployNotificationError,
SkippedDueToPreviousFailure,
SkippedDueToPreviousWaitingDeploy
SkippedDueToPreviousWaitingDeploy,
SkippedDueToPreviousPartialDeploy
}
import magenta.DeployParameters

Expand Down Expand Up @@ -73,6 +74,18 @@ class FailureNotificationContents(prefix: String) {
contents,
teamTargetsSearch(record.uuid, record.parameters)
)
case SkippedDueToPreviousPartialDeploy(record) =>
val redeployAction =
Action("Redeploy manually", deployAgainUrl(record.uuid))
val contents = NotificationContents(
subject,
scheduledDeployError.message,
List(viewProblematicDeploy(record.uuid, "partial"), redeployAction)
)
NotificationContentsWithTargets(
contents,
teamTargetsSearch(record.uuid, record.parameters)
)
case SkippedDueToPreviousWaitingDeploy(record) =>
val contents = NotificationContents(
subject,
Expand Down

0 comments on commit bf7114c

Please sign in to comment.