mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
Support CHASM Count "Group By" Filtering. ## What changed? * Adds implementation of CHASM Count Executions `Group By` Filter support. * Unifies `visibility_store.go` implementation to get count execution info. * Adds functional tests for validation. ## Why? Needed to unblock standalone activities, and fully support CHASM Count Execution requirements. ## How did you test it? - [X] built - [X] run locally and tested manually - [X] covered by existing tests - [X] added new unit test(s) - [X] added new functional test(s)
17 lines
528 B
Go
17 lines
528 B
Go
package store
|
|
|
|
import (
|
|
"maps"
|
|
|
|
enumspb "go.temporal.io/api/enums/v1"
|
|
"go.temporal.io/server/chasm"
|
|
"go.temporal.io/server/common/searchattribute"
|
|
)
|
|
|
|
func CombineTypeMaps(customTypeMap searchattribute.NameTypeMap, chasmTypeMap *chasm.VisibilitySearchAttributesMapper) searchattribute.NameTypeMap {
|
|
combinedTypeMap := make(map[string]enumspb.IndexedValueType)
|
|
maps.Copy(combinedTypeMap, customTypeMap.Custom())
|
|
maps.Copy(combinedTypeMap, chasmTypeMap.SATypeMap())
|
|
return searchattribute.NewNameTypeMap(combinedTypeMap)
|
|
}
|