You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/03/27 01:49:20 UTC

(incubator-devlake) branch be-logs-api-2 updated: fix: modify variable name format

This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch be-logs-api-2
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/be-logs-api-2 by this push:
     new ed0183e1e fix: modify variable name format
ed0183e1e is described below

commit ed0183e1e7ba107439d36d9892d9a8e472ae7cc6
Author: abeizn <zi...@merico.dev>
AuthorDate: Wed Mar 27 09:49:08 2024 +0800

    fix: modify variable name format
---
 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,