Feat: add workflow name for frontend (#2787)

This commit is contained in:
Tianxin Dong
2021-11-24 20:18:27 +08:00
committed by GitHub
parent 99d473df2a
commit f1eef83809
2 changed files with 12 additions and 10 deletions
+6 -5
View File
@@ -624,11 +624,12 @@ type DetailWorkflowRecordResponse struct {
// WorkflowRecord workflow record
type WorkflowRecord struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
StartTime time.Time `json:"startTime,omitempty"`
Status string `json:"status"`
Steps []common.WorkflowStepStatus `json:"steps,omitempty"`
Name string `json:"name"`
Namespace string `json:"namespace"`
WorkflowName string `json:"workflowName"`
StartTime time.Time `json:"startTime,omitempty"`
Status string `json:"status"`
Steps []common.WorkflowStepStatus `json:"steps,omitempty"`
}
// ApplicationDeployRequest the application deploy or update event request
+6 -5
View File
@@ -640,11 +640,12 @@ func (w *workflowUsecaseImpl) checkRecordRunning(ctx context.Context, appModel *
func convertFromRecordModel(record *model.WorkflowRecord) *apisv1.WorkflowRecord {
return &apisv1.WorkflowRecord{
Name: record.Name,
Namespace: record.Namespace,
StartTime: record.StartTime,
Status: record.Status,
Steps: record.Steps,
Name: record.Name,
Namespace: record.Namespace,
WorkflowName: record.WorkflowName,
StartTime: record.StartTime,
Status: record.Status,
Steps: record.Steps,
}
}