Skip to content

Commit 83aa193

Browse files
Removed TaskID from types.HistoryTaskV2Attributes (#4876)
1 parent f133d3c commit 83aa193

File tree

6 files changed

+0
-8
lines changed

6 files changed

+0
-8
lines changed

common/types/mapper/proto/shared.go

-2
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,6 @@ func FromHistoryTaskV2Attributes(t *types.HistoryTaskV2Attributes) *adminv1.Hist
592592
return nil
593593
}
594594
return &adminv1.HistoryTaskV2Attributes{
595-
TaskId: t.TaskID,
596595
DomainId: t.DomainID,
597596
WorkflowExecution: FromWorkflowRunPair(t.WorkflowID, t.RunID),
598597
VersionHistoryItems: FromVersionHistoryItemArray(t.VersionHistoryItems),
@@ -606,7 +605,6 @@ func ToHistoryTaskV2Attributes(t *adminv1.HistoryTaskV2Attributes) *types.Histor
606605
return nil
607606
}
608607
return &types.HistoryTaskV2Attributes{
609-
TaskID: t.TaskId,
610608
DomainID: t.DomainId,
611609
WorkflowID: ToWorkflowID(t.WorkflowExecution),
612610
RunID: ToRunID(t.WorkflowExecution),

common/types/mapper/thrift/replicator.go

-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ func FromHistoryTaskV2Attributes(t *types.HistoryTaskV2Attributes) *replicator.H
300300
return nil
301301
}
302302
return &replicator.HistoryTaskV2Attributes{
303-
TaskId: &t.TaskID,
304303
DomainId: &t.DomainID,
305304
WorkflowId: &t.WorkflowID,
306305
RunId: &t.RunID,
@@ -316,7 +315,6 @@ func ToHistoryTaskV2Attributes(t *replicator.HistoryTaskV2Attributes) *types.His
316315
return nil
317316
}
318317
return &types.HistoryTaskV2Attributes{
319-
TaskID: t.GetTaskId(),
320318
DomainID: t.GetDomainId(),
321319
WorkflowID: t.GetWorkflowId(),
322320
RunID: t.GetRunId(),

common/types/replicator.go

-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ func (v *GetReplicationMessagesResponse) GetMessagesByShard() (o map[int32]*Repl
307307

308308
// HistoryTaskV2Attributes is an internal type (TBD...)
309309
type HistoryTaskV2Attributes struct {
310-
TaskID int64 `json:"taskId,omitempty"`
311310
DomainID string `json:"domainId,omitempty"`
312311
WorkflowID string `json:"workflowId,omitempty"`
313312
RunID string `json:"runId,omitempty"`

common/types/testdata/replication.go

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ var (
129129
VersionHistory: &VersionHistory,
130130
}
131131
HistoryTaskV2Attributes = types.HistoryTaskV2Attributes{
132-
TaskID: TaskID,
133132
DomainID: DomainID,
134133
WorkflowID: WorkflowID,
135134
RunID: RunID,

host/ndc/integration_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,6 @@ func (s *NDCIntegrationTestSuite) applyEventsThroughFetcher(
24062406
TaskType: &taskType,
24072407
SourceTaskID: 1,
24082408
HistoryTaskV2Attributes: &types.HistoryTaskV2Attributes{
2409-
TaskID: 1,
24102409
DomainID: s.domainID,
24112410
WorkflowID: workflowID,
24122411
RunID: runID,

service/history/replication/task_ack_manager.go

-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ func (t *taskAckManagerImpl) generateHistoryReplicationTask(
529529
replicationTask := &types.ReplicationTask{
530530
TaskType: types.ReplicationTaskType.Ptr(types.ReplicationTaskTypeHistoryV2),
531531
HistoryTaskV2Attributes: &types.HistoryTaskV2Attributes{
532-
TaskID: task.FirstEventID,
533532
DomainID: task.DomainID,
534533
WorkflowID: task.WorkflowID,
535534
RunID: task.RunID,

0 commit comments

Comments
 (0)