mirror of
https://github.com/typeable/octopod.git
synced 2024-11-22 16:56:29 +03:00
Don't consider pending deployments archived (#42)
* Don't consider pending deployments archived * unpack deployment info
This commit is contained in:
parent
ffbcfaf0bb
commit
92ee8d3df4
@ -173,7 +173,11 @@ data DeploymentFullInfo = DeploymentFullInfo
|
||||
deriving (FromJSON, ToJSON) via Snake DeploymentFullInfo
|
||||
|
||||
isDeploymentArchived :: DeploymentFullInfo -> Bool
|
||||
isDeploymentArchived = isArchivedStatus . recordedStatus . getField @"status"
|
||||
isDeploymentArchived DeploymentFullInfo {status = s} = case s of
|
||||
DeploymentNotPending s -> isArchivedStatus s
|
||||
-- if the deployment is currently undergoing some process,
|
||||
-- then it is not considered archived
|
||||
DeploymentPending _ -> False
|
||||
|
||||
data DeploymentUpdate = DeploymentUpdate
|
||||
{ newTag :: DeploymentTag
|
||||
|
Loading…
Reference in New Issue
Block a user