From 52cab6df8b7dcabd6a90118ef5954d4eaba293ef Mon Sep 17 00:00:00 2001 From: crm-dhu Date: Fri, 10 May 2024 09:27:31 -0700 Subject: [PATCH] add ability to search by wf id --- .../scala/com/salesforce/mce/orchard/db/WorkflowQuery.scala | 2 +- version.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchard-core/src/main/scala/com/salesforce/mce/orchard/db/WorkflowQuery.scala b/orchard-core/src/main/scala/com/salesforce/mce/orchard/db/WorkflowQuery.scala index dfcd009..791dba8 100644 --- a/orchard-core/src/main/scala/com/salesforce/mce/orchard/db/WorkflowQuery.scala +++ b/orchard-core/src/main/scala/com/salesforce/mce/orchard/db/WorkflowQuery.scala @@ -94,7 +94,7 @@ object WorkflowQuery { t: WorkflowTable => t.terminatedAt.asc } - val base = WorkflowTable().filter(r => r.name.like(like) && r.status =!= Status.Deleted) + val base = WorkflowTable().filter(r => (r.id.like(like) || r.name.like(like)) && r.status =!= Status.Deleted) val query = if (statuses.isEmpty) base else base.filter(r => r.status.inSet(statuses)) diff --git a/version.sbt b/version.sbt index 497a787..dc6570f 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "0.23.1" +ThisBuild / version := "0.23.2"