Skip to content

Commit

Permalink
Add BuildIds predefined search attribute (#4624)
Browse files Browse the repository at this point in the history
**What changed?**
Add BuildIds predefined search attribute to 1.20.x

**Why?**
In a rollback scenario, after upgrading to 1.21 and then back to 1.20,
the new predefined search attribute BuildIds wouldn't be understood by
the older version and would block visibility tasks. Adding this to the
type map will make it able to process workflows with the search
attribute.

**How did you test it?**
manual rollback (cassandra+es, mysql, postgres)
  • Loading branch information
dnr committed Jul 13, 2023
1 parent 5f39fa0 commit f124796
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/searchattribute/defs.go
Expand Up @@ -46,6 +46,7 @@ const (
StateTransitionCount = "StateTransitionCount"
TemporalChangeVersion = "TemporalChangeVersion"
BinaryChecksums = "BinaryChecksums"
BuildIds = "BuildIds"
BatcherNamespace = "BatcherNamespace"
BatcherUser = "BatcherUser"
HistorySizeBytes = "HistorySizeBytes"
Expand Down Expand Up @@ -88,6 +89,7 @@ var (
predefined = map[string]enumspb.IndexedValueType{
TemporalChangeVersion: enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST,
BinaryChecksums: enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST,
BuildIds: enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST,
BatcherNamespace: enumspb.INDEXED_VALUE_TYPE_KEYWORD,
BatcherUser: enumspb.INDEXED_VALUE_TYPE_KEYWORD,
TemporalScheduledStartTime: enumspb.INDEXED_VALUE_TYPE_DATETIME,
Expand Down

0 comments on commit f124796

Please sign in to comment.