Skip to content

Commit

Permalink
Merge branch 'master' into plugin_interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantas Šidlauskas authored Apr 24, 2024
2 parents 4e1ab9e + 5052d08 commit 4c49cac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions common/persistence/pinot/pinot_visibility_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1058,20 +1058,20 @@ func getListWorkflowExecutionsByStatusQuery(tableName string, request *p.Interna
query.filters.addEqual(DomainID, request.DomainUUID)
query.filters.addEqual(IsDeleted, false)

status := "0"
status := 0
switch request.Status.String() {
case "COMPLETED":
status = "0"
status = 0
case "FAILED":
status = "1"
status = 1
case "CANCELED":
status = "2"
status = 2
case "TERMINATED":
status = "3"
status = 3
case "CONTINUED_AS_NEW":
status = "4"
status = 4
case "TIMED_OUT":
status = "5"
status = 5
}

query.filters.addEqual(CloseStatus, status)
Expand Down
12 changes: 6 additions & 6 deletions common/persistence/pinot/pinot_visibility_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ func TestGetListWorkflowExecutionsByStatusQuery(t *testing.T) {
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '0'
AND CloseStatus = 0
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand All @@ -1558,7 +1558,7 @@ LIMIT 0, 10
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '1'
AND CloseStatus = 1
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand All @@ -1581,7 +1581,7 @@ LIMIT 0, 10
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '2'
AND CloseStatus = 2
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand All @@ -1604,7 +1604,7 @@ LIMIT 0, 10
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '3'
AND CloseStatus = 3
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand All @@ -1627,7 +1627,7 @@ LIMIT 0, 10
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '4'
AND CloseStatus = 4
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand All @@ -1650,7 +1650,7 @@ LIMIT 0, 10
FROM %s
WHERE DomainID = 'bfd5c907-f899-4baf-a7b2-2ab85e623ebd'
AND IsDeleted = false
AND CloseStatus = '5'
AND CloseStatus = 5
AND CloseTime BETWEEN 1547596872371 AND 2547596872371
Order BY StartTime DESC
LIMIT 0, 10
Expand Down

0 comments on commit 4c49cac

Please sign in to comment.