Skip to content

Commit

Permalink
It would seem our documentation is inaccurate BA-5828 (broadinstitute…
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffjentry authored Jul 18, 2019
1 parent 6ab134d commit 295005f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ object WorkflowQueryKey {

override def validate(grouped: Map[String, Seq[(String, String)]]): ErrorOr[List[String]] = {
val values = valuesFromMap(grouped).toList
/*
The inclusion of `WorkflowMetadataKeys.ParentWorkflowId` is for backwards compatibility. As of #4381
parentWorkflowId is always included, but we did not want to break old automated queries
*/
val allowedValues = Seq(WorkflowMetadataKeys.Labels, WorkflowMetadataKeys.ParentWorkflowId)
val nels: List[ErrorOr[String]] = values map { v => {
allowedValues.contains(v).fold(v.validNel[String], v.invalidNel[String])
Expand Down

0 comments on commit 295005f

Please sign in to comment.