Skip to content

Commit

Permalink
Removed TaskID from types.HistoryTaskV2Attributes (cadence-workflow#4876
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vytautas-karpavicius authored Jun 27, 2022
1 parent f133d3c commit 83aa193
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions common/types/mapper/proto/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ func FromHistoryTaskV2Attributes(t *types.HistoryTaskV2Attributes) *adminv1.Hist
return nil
}
return &adminv1.HistoryTaskV2Attributes{
TaskId: t.TaskID,
DomainId: t.DomainID,
WorkflowExecution: FromWorkflowRunPair(t.WorkflowID, t.RunID),
VersionHistoryItems: FromVersionHistoryItemArray(t.VersionHistoryItems),
Expand All @@ -606,7 +605,6 @@ func ToHistoryTaskV2Attributes(t *adminv1.HistoryTaskV2Attributes) *types.Histor
return nil
}
return &types.HistoryTaskV2Attributes{
TaskID: t.TaskId,
DomainID: t.DomainId,
WorkflowID: ToWorkflowID(t.WorkflowExecution),
RunID: ToRunID(t.WorkflowExecution),
Expand Down
2 changes: 0 additions & 2 deletions common/types/mapper/thrift/replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ func FromHistoryTaskV2Attributes(t *types.HistoryTaskV2Attributes) *replicator.H
return nil
}
return &replicator.HistoryTaskV2Attributes{
TaskId: &t.TaskID,
DomainId: &t.DomainID,
WorkflowId: &t.WorkflowID,
RunId: &t.RunID,
Expand All @@ -316,7 +315,6 @@ func ToHistoryTaskV2Attributes(t *replicator.HistoryTaskV2Attributes) *types.His
return nil
}
return &types.HistoryTaskV2Attributes{
TaskID: t.GetTaskId(),
DomainID: t.GetDomainId(),
WorkflowID: t.GetWorkflowId(),
RunID: t.GetRunId(),
Expand Down
1 change: 0 additions & 1 deletion common/types/replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ func (v *GetReplicationMessagesResponse) GetMessagesByShard() (o map[int32]*Repl

// HistoryTaskV2Attributes is an internal type (TBD...)
type HistoryTaskV2Attributes struct {
TaskID int64 `json:"taskId,omitempty"`
DomainID string `json:"domainId,omitempty"`
WorkflowID string `json:"workflowId,omitempty"`
RunID string `json:"runId,omitempty"`
Expand Down
1 change: 0 additions & 1 deletion common/types/testdata/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ var (
VersionHistory: &VersionHistory,
}
HistoryTaskV2Attributes = types.HistoryTaskV2Attributes{
TaskID: TaskID,
DomainID: DomainID,
WorkflowID: WorkflowID,
RunID: RunID,
Expand Down
1 change: 0 additions & 1 deletion host/ndc/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,6 @@ func (s *NDCIntegrationTestSuite) applyEventsThroughFetcher(
TaskType: &taskType,
SourceTaskID: 1,
HistoryTaskV2Attributes: &types.HistoryTaskV2Attributes{
TaskID: 1,
DomainID: s.domainID,
WorkflowID: workflowID,
RunID: runID,
Expand Down
1 change: 0 additions & 1 deletion service/history/replication/task_ack_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ func (t *taskAckManagerImpl) generateHistoryReplicationTask(
replicationTask := &types.ReplicationTask{
TaskType: types.ReplicationTaskType.Ptr(types.ReplicationTaskTypeHistoryV2),
HistoryTaskV2Attributes: &types.HistoryTaskV2Attributes{
TaskID: task.FirstEventID,
DomainID: task.DomainID,
WorkflowID: task.WorkflowID,
RunID: task.RunID,
Expand Down

0 comments on commit 83aa193

Please sign in to comment.