File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 45
45
with :
46
46
repository : temporalio/docker-compose
47
47
path : docker-compose
48
- ref : v1.17.5 # TODO: Upgrade to 1.18 - has a bug where search attributes are not deleted
49
48
if : ${{ startsWith(matrix.os, 'ubuntu') }}
50
49
51
50
- name : Start Temporal Server
Original file line number Diff line number Diff line change @@ -877,10 +877,14 @@ export class WorkflowClient {
877
877
executionTime : optionalTsToDate ( raw . workflowExecutionInfo ! . executionTime ) ,
878
878
closeTime : optionalTsToDate ( raw . workflowExecutionInfo ! . closeTime ) ,
879
879
memo : await decodeMapFromPayloads ( this . client . dataConverter , raw . workflowExecutionInfo ! . memo ?. fields ) ,
880
- searchAttributes : mapFromPayloads (
881
- searchAttributePayloadConverter ,
882
- raw . workflowExecutionInfo ! . searchAttributes ?. indexedFields ?? { }
883
- ) as SearchAttributes ,
880
+ searchAttributes : Object . fromEntries (
881
+ Object . entries (
882
+ mapFromPayloads (
883
+ searchAttributePayloadConverter ,
884
+ raw . workflowExecutionInfo ! . searchAttributes ?. indexedFields ?? { }
885
+ ) as SearchAttributes
886
+ ) . filter ( ( [ _ , v ] ) => v && v . length > 0 ) // Filter out empty arrays returned by pre 1.18 servers
887
+ ) ,
884
888
parentExecution : raw . workflowExecutionInfo ?. parentExecution
885
889
? {
886
890
workflowId : raw . workflowExecutionInfo . parentExecution . workflowId ! ,
Original file line number Diff line number Diff line change @@ -668,7 +668,6 @@ export function runIntegrationTests(codec?: PayloadCodec): void {
668
668
const { BinaryChecksums, ...rest } = searchAttributes ;
669
669
t . deepEqual ( rest , {
670
670
CustomBoolField : [ true ] ,
671
- CustomIntField : [ ] , // clear
672
671
CustomKeywordField : [ 'durable code' ] ,
673
672
CustomTextField : [ 'is useful' ] ,
674
673
CustomDatetimeField : [ date ] ,
You can’t perform that action at this time.
0 commit comments