Skip to content

Commit

Permalink
Add useReferenceDisks as passthrough for SubmissionRequest [CROM-6662] (
Browse files Browse the repository at this point in the history
  • Loading branch information
breilly2 committed Nov 19, 2020
1 parent 4ffd833 commit 080afb6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/main/resources/swagger/api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8553,6 +8553,9 @@ components:
type: boolean
description: Whether or not to delete intermediate output files when the
workflow completes. See Cromwell docs for more information.
useReferenceDisks:
type: boolean
description: Whether or not to use pre-built disks for common genome references
workflowFailureMode:
type: string
description: What happens after a task fails. Choose from ContinueWhilePossible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ object ModelJsonProtocol extends WorkspaceJsonSupport with SprayJsonSupport {

implicit val impEntityMetadata = jsonFormat3(EntityMetadata)
implicit val impModelSchema = jsonFormat1(EntityModel)
implicit val impSubmissionRequest = jsonFormat8(SubmissionRequest)
implicit val impSubmissionRequest = jsonFormat9(SubmissionRequest)

implicit val impEntityUpdateDefinition = jsonFormat3(EntityUpdateDefinition)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ case class SubmissionRequest(
expression: Option[String],
useCallCache: Option[Boolean],
deleteIntermediateOutputFiles: Option[Boolean],
useReferenceDisks: Option[Boolean],
workflowFailureMode: Option[String])

case class RawlsGroupMemberList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ object MockWorkspaceServer {
expression = Option(randomAlpha()),
useCallCache = Option(randomBoolean()),
deleteIntermediateOutputFiles = Option(randomBoolean()),
useReferenceDisks = Option(randomBoolean()),
workflowFailureMode = Option(randomElement(List("ContinueWhilePossible", "NoNewCalls")))
)
)

val mockInvalidSubmission = SubmissionRequest(
methodConfigurationNamespace = Option.empty,
methodConfigurationName = Option.empty,
Expand All @@ -73,6 +74,7 @@ object MockWorkspaceServer {
expression = Option.empty,
useCallCache = Option.empty,
deleteIntermediateOutputFiles = Option.empty,
useReferenceDisks = Option.empty,
workflowFailureMode = Option.empty
)

Expand Down

0 comments on commit 080afb6

Please sign in to comment.