Skip to content

Commit

Permalink
Fix domain updating via grpc (#4418)
Browse files Browse the repository at this point in the history
  • Loading branch information
vytautas-karpavicius authored Aug 25, 2021
1 parent 6dec5aa commit 76573a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion common/types/mapper/proto/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4025,7 +4025,6 @@ func ToUpdateDomainRequest(t *apiv1.UpdateDomainRequest) *types.UpdateDomainRequ
request := types.UpdateDomainRequest{
Name: t.Name,
SecurityToken: t.SecurityToken,
EmitMetric: common.BoolPtr(true), // DEPRECATED - defaults to true
}
fs := newFieldSet(t.UpdateMask)

Expand Down
2 changes: 1 addition & 1 deletion common/types/mapper/proto/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ func TestTimerStartedEventAttributes(t *testing.T) {
}
}
func TestUpdateDomainRequest(t *testing.T) {
for _, item := range []*types.UpdateDomainRequest{nil, {EmitMetric: common.BoolPtr(true)}, &testdata.UpdateDomainRequest} {
for _, item := range []*types.UpdateDomainRequest{nil, {}, &testdata.UpdateDomainRequest} {
assert.Equal(t, item, ToUpdateDomainRequest(FromUpdateDomainRequest(item)))
}
}
Expand Down
1 change: 0 additions & 1 deletion common/types/testdata/service_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ var (
OwnerEmail: common.StringPtr(DomainOwnerEmail),
Data: DomainData,
WorkflowExecutionRetentionPeriodInDays: common.Int32Ptr(DomainRetention),
EmitMetric: common.BoolPtr(DomainEmitMetric),
BadBinaries: &BadBinaries,
HistoryArchivalStatus: &ArchivalStatus,
HistoryArchivalURI: common.StringPtr(HistoryArchivalURI),
Expand Down

0 comments on commit 76573a2

Please sign in to comment.