-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NU-1979] Scenario statuses refactor: scenario status and deployment …
…statuses are decoupled (#7566)
- Loading branch information
Showing
132 changed files
with
3,126 additions
and
3,101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...pi/src/main/scala/pl/touk/nussknacker/engine/api/deployment/DeploymentStatusDetails.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package pl.touk.nussknacker.engine.api.deployment | ||
|
||
import pl.touk.nussknacker.engine.api.process.VersionId | ||
import pl.touk.nussknacker.engine.deployment.DeploymentId | ||
|
||
// TODO replace by simple tuple DeploymentId -> DeploymentStatus after fixing TODOs | ||
case class DeploymentStatusDetails( | ||
status: StateStatus, | ||
// deploymentId is optional because some deployment managers (k8s) don't support it | ||
deploymentId: Option[DeploymentId], | ||
// version might be unavailable in some failing cases. It is used during checking if deployed version is the same | ||
// as expected by user - see InconsistentStateDetector. | ||
// TODO it should be an attribute of "following deploy" StateStatuses: DuringDeploy, Running and Finished | ||
version: Option[VersionId], | ||
) { | ||
|
||
def deploymentIdUnsafe: DeploymentId = | ||
deploymentId.getOrElse(throw new IllegalStateException(s"deploymentId is missing")) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.