This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch release-v1.0 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 13ae38a8f5d5665de67274ff40745439ee0450d3 Author: abeizn <[email protected]> AuthorDate: Wed Mar 27 09:54:55 2024 +0800 fix: modify variable name format (#7222) --- backend/core/models/task.go | 18 +++++++++--------- backend/server/services/task.go | 4 ---- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/backend/core/models/task.go b/backend/core/models/task.go index ba6f3f4ca..fd1b7ffbf 100644 --- a/backend/core/models/task.go +++ b/backend/core/models/task.go @@ -100,18 +100,18 @@ func (Subtask) TableName() string { type SubtaskDetails struct { ID uint64 `json:"id"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - TaskID uint64 `json:"task_id"` + CreatedAt time.Time `json:"createdAt"` + UpdatedAt time.Time `json:"updatedAt"` + TaskID uint64 `json:"taskId"` Name string `json:"name"` Number int `json:"number"` - BeganAt *time.Time `json:"began_at"` - FinishedAt *time.Time `json:"finished_at"` - SpentSeconds int64 `json:"spent_seconds"` - FinishedRecords int `json:"finished_records"` + BeganAt *time.Time `json:"beganAt"` + FinishedAt *time.Time `json:"finishedAt"` + SpentSeconds int64 `json:"spentSeconds"` + FinishedRecords int `json:"finishedRecords"` Sequence int `json:"sequence"` - IsCollector bool `json:"is_collector"` - IsFailed bool `json:"is_failed"` + IsCollector bool `json:"isCollector"` + IsFailed bool `json:"isFailed"` Message string `json:"message"` } diff --git a/backend/server/services/task.go b/backend/server/services/task.go index 5640b7a6c..565442756 100644 --- a/backend/server/services/task.go +++ b/backend/server/services/task.go @@ -255,10 +255,6 @@ func GetSubTasksInfo(pipelineId uint64, shouldSanitize bool, tx dal.Dal) (*model var count int64 var status []string for _, task := range filterTasks { - // skip org plugin step - if task.Plugin == "org" { - continue - } subTaskResult := models.SubtasksInfo{ ID: task.ID, PipelineID: task.PipelineId,
